- 02 Apr, 2016 1 commit
-
-
Liam Staskawicz authored
fixes #304
-
- 06 Aug, 2015 1 commit
-
-
Kenton Varda authored
The library allows for registering special handlers for specific types or fields. This is particluarly useful for overriding the way `Data` is encoded (since many approaches exist) or supporting encodings like EJSON or Q which extend JSON with special types encoded as objects with field names perfixed by dollar signs. Not integrated into build system yet (but builds nicely with Ekam). I think this is going to need to be a separate library, e.g. libcapnp-json, because clearly a lot of Cap'n Proto users don't need it at all. For the moment, this was written for use inside Sandstorm. There is no current need for a decoder, so I have not written that yet and have no immediate plans to do so. But it will be added before any official Cap'n Proto release, certainly. A simple recursive descent parser should be easy...
-
- 29 Jan, 2015 1 commit
-
-
Kenton Varda authored
-
- 30 Dec, 2014 1 commit
-
-
Kenton Varda authored
A compatibility layer is provided to ease migration.
-
- 29 Dec, 2014 1 commit
-
-
David Renshaw authored
-
- 30 Nov, 2014 1 commit
-
-
Kenton Varda authored
-
- 22 Nov, 2014 1 commit
-
-
Kenton Varda authored
This prevents the compiler from reporting warnings in these headers while compiling application code. Hopefully this will stem the never-ending stream of complaints from people who enable pedantic warnings.
-
- 26 Oct, 2014 1 commit
-
-
Kenton Varda authored
To use, pass --disable-reflection to the configure script. This produces a smaller runtime library. However, using it for this purpose is not recommended. The main purpose of lite mode is to define a subset of Cap'n Proto which might plausibly compile under MSVC. MSVC still lacks full support for constexpr and expression SFINAE; luckily, most of our use of these things relates to reflection, and not all users need reflection. Cap'n Proto lite mode inherits its name from Protocol Buffers' lite mode. However, there are some key differences: - Protobuf generated code included global constructors related to registering descriptors and extensions. For many people, this was the main reason to use lite mode: to get rid of these global constructors and achieve faster startup times. Cap'n Proto, on the other hand, never had global constructors in the first place. - Schemas are actually still available in lite mode, though only in their raw (Cap'n Proto structure) form. Only the schema API (which wraps the raw schemas in a more convenient interface) and reflection API (which offers a convenient way to use the schemas) are unavailable. - Lite mode is enabled in an application by defining CAPNP_LITE rather than by specifying an annotation in the schema file. This better-reflects real-world usage patterns, where you typically want to enable lite mode application-wide anyway. - We do not build the lite mode library by default. You must request it by passing --disable-reflection to the configure script. Before you can do that, you must have a prebuilt Cap'n Proto compiler binary available, since the compiler can't be built without reflection. - Relatedly, the lite mode library is built with the same name as the full library. This library is not intended to be installed. If anything it should be statically linked. But, mostly the option only exists on non-MSVC platform to give us a way to test that we haven't broken lite mode.
-
- 25 Oct, 2014 1 commit
-
-
Kenton Varda authored
See changes to test.capnp for example. Currently only supported through generated code, not in the dynamic API. Not exactly sure how to expose this in the dynamic API...
-
- 24 Oct, 2014 1 commit
-
-
Kenton Varda authored
-
- 23 Oct, 2014 1 commit
-
-
Kenton Varda authored
Note that embedded schema structures in generated code are still incorrect.
-
- 17 Oct, 2014 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
- 20 Jun, 2014 1 commit
-
-
Kenton Varda authored
For portions currently copyright by Kenton (most of it), transfer copyright to Sandstorm Development Group, Inc. (Kenton's company). The license change is practically meaningless, as MIT and BSD 2-clause are legally equivalent. However, the BSD 2-clause license is sometimes confused for its ugly siblings, BSD 3-clause and BSD 4-clause. The MIT license is more immediately recognizeable for what it is. Rémy Blank and Jason Choy (the two non-trivial contributors) are on record as approving this change: https://groups.google.com/d/msg/capnproto/xXDd2HUOCcc/gbe_COIuXKYJ
-
- 15 Oct, 2013 2 commits
-
-
Kenton Varda authored
Make Schema default constructors produce consistent, non-crashy values. This improves the dynamic interface's robustness, particularly when exceptions are disabled.
-
Kenton Varda authored
-
- 28 Aug, 2013 1 commit
-
-
Kenton Varda authored
Extend 'capnp const' to support evaluating field default values as well as inner members of a value.
-
- 25 Aug, 2013 1 commit
-
-
Kenton Varda authored
-
- 21 Aug, 2013 3 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
- 19 Aug, 2013 1 commit
-
-
Kenton Varda authored
-
- 15 Aug, 2013 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
Unnamed unions WIP. About to change MemberInfo format, which will require re-bootstrapping the code generator.
-
- 09 Aug, 2013 1 commit
-
-
Kenton Varda authored
-
- 07 Aug, 2013 1 commit
-
-
Kenton Varda authored
Pull TextBlob out of capnpc-capnp and into KJ as kj::StringTree. Use it in the stringification code to make that code cleaner and avoid using iostreams.
-
- 18 Jul, 2013 1 commit
-
-
Kenton Varda authored
Allow SchemaLoader to use a callback to lazily load schema nodes, including dependencies of loaded nodes.
-
- 24 Jun, 2013 1 commit
-
-
Kenton Varda authored
-
- 06 Jun, 2013 6 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
Improve const-correctness of readers and builders. We enforce transitive constness, meaning you should not be able to construct a mutable Builder from a const Builder (you can always convert them to Readers instead).
-
- 31 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 29 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 25 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 22 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 17 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 13 May, 2013 1 commit
-
-
Kenton Varda authored
-