- Fix some more clippy warnings in generated code.
- Update to work without requiring "std" feature of capnp base crate.
- Refer to
core
instead ofstd
in generated code. - Remove deprecated
ToClient
structs from generated code.
- Add
CompilerCommand.capnp_executable()
. - Remove obsolete
RustEdition
enum.
- Generate code for new capnp::capability::FromServer trait.
- Add
parentModule
annotation to allow generated code to be included in a submodule.
- Add rust.capnp file with
name
annotation for renaming items in generated Rust code.
- Remove deprecated item.
- Avoid generating some superfluous parenthesis.
- Remove unused experimental
schema
module. - Bump minimum supported rustc version to 1.39.0.
- Include the string "@generated" generated code.
- Don't write output files if their content is unchanged.
- Allow CompilerCommand to work even when OUT_DIR is not set.
- Simplify handling of pointer defaults.
- Use new const fn ::capnp::word() instead of capnp_word!() macro.
- Remove deprecated items.
- Use dyn keyword for trait objects.
- Deprecate edition() configuration. Apparently the code we generate for Rust 2018 also works for Rust 2015 now.
- Update to 2018 edition.
- Update minimum required rustc version to 1.35.
- Fix bug in code generation for generic interfaces.
- Add support for pointer field defaults.
- Generate impls of new IntoInternalStructReader trait, to support set_with_caveats.
- Update deprecation attributes, to satisfy clippy.
- Rename a bunch of as_reader() methods to into_reader(), to satisfy clippy.
- Add support for Rust 2018.
- Fix a bunch of clippy warnings.
- Remove deprecated items.
- Deprecate borrow() in favor of reborrow().
- Support List(Interface).
- Eliminate
use
statements in generated code to avoid naming conflicts.
- Improve error message for snake_case method names.
- Eliminate floating point literals in match statements.
- Implement enum defaults.
- Emit "UNIMPLEMENTED" warnings on struct and list defaults.
- Implement struct, list, and enum constants.
- Fix bug where schemas with non-trivial relative filesystem paths could fail to compile.
- Fix bug where
initn_*()
methods of generic unions failed to set the discriminant.
- Fix several formatting issues in generated code.
- Remove some unneccesary trait bounds in generated code.
- Add
import_path()
andno_std_import()
options toCompilerCommand
.
- Remove deprecated
compile()
andcompile_with_src_prefixes()
functions.
- Fix bug that prevented compilation of interfaces with generic superclasses.
- More robust error handling.
- Deprecate
compile()
andcompile_with_src_prefixes()
in favor ofCompilerCommand
.
capnpc -orust ./foo/bar/baz.capnp
now correctly writes to./foo/bar/baz_capnp.rs
rather than just./baz_capnp.rs
. If you were depending on the old behavior you can use the--src-prefix
flag for finer-grained control of the output location.
- Nicer formatting for floating point literals.
- Fix bug that prevented pipelining on an AnyPointer field.