Cargo Features
[dependencies]
power-protobuf-lib = { version = "0.1.11", default-features = false, features = ["impl_prost", "impl_protobuf_rs", "derive_serde", "tagless", "simplize_rpc_params"] }
- default = derive_serde, impl_prost, simplize_rpc_params, tagless
-
These default features are set whenever
power-protobuf-lib
is added without
somewhere in the dependency tree.default-features = false - impl_prost default
-
impl_prost: use tonic/prost to implement the protobuf codec and grpc stuff.
- impl_protobuf_rs
-
impl_protobuf_rs: use 'stepancheg/rust-protobuf' to implement the protbuf codec.
- derive_serde default
-
enable serde macro derives
- tagless default
-
tagless: allows auto increduce tag number by previous tag, if the begging tag is not exists, initial value will be set defaultly (message begins with 1, enum begins with 0).
- simplize_rpc_params default