Cargo Features
[dependencies]
python_rt = { version = "0.1.0", default-features = false, features = ["grpc", "server", "client"] }
- default = client, grpc, server
-
These default features are set whenever
python_rt
is added without
somewhere in the dependency tree.default-features = false - grpc default client server = prost, prost-types, tonic
-
Affects
python_rt::proto
… - server default = grpc
- client default = grpc
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.
- tonic grpc
-
Enables tonic ^0.11.0
- prost-types grpc
-
Enables prost-types ^0.12
- prost grpc
-
Enables prost ^0.12