Cargo Features
containerd-shim-client has no features set by default.
[dependencies]
containerd-shim-client = { version = "0.1.2", features = ["generate_bindings"] }
- generate_bindings = ttrpc-codegen
-
In current implementation we check in all generated TTRPC code because of the following Rust limitations:
include!
doesn't handle well .rs files with attributes: https://github.com/rust-lang/rust/issues/18810cargo publish
will complain on modifiedsrc
directory if it's modified frombuild.rs
- https://github.com/rust-lang/cargo/issues/5073- There is now way to include the whole module from
OUT_DIR
, not just individual files.
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- ttrpc-codegen build generate_bindings?
-
Enables ttrpc-codegen ^0.3.0