Cargo question. We depend on `tonic` with several ...
# development
h
Cargo question. We depend on
tonic
with several features in
process_execution/Cargo.toml
. I want to depend on it in the top-level
Cargo.toml
now so that I can use in
src/context.rs
. Should I include all the same features? Or only what is actually used in
src/context.rs
?
w
Should list only the features you use
👍 1
h
I would say only include the features you need in
src/context.rs
. I think this will not actually make the final compilation output any smaller, but it will make it clearer what features we're using in what places
👍 2
w
During compilation, features are additive: so all of the features for the lib in all of its dependents end up enabled
👍 1