Cargo Features
[dependencies]
protokit_build = { version = "0.2.0", default-features = false, features = ["protoc", "parser", "descriptors"] }
- default = protoc
-
The
protoc
feature is set by default wheneverprotokit_build
is added without
somewhere in the dependency tree.default-features = false - protoc default = descriptors
-
Affects
protokit_build::ProtocContext
,protokit_build::Build.ctx
… - parser = protokit_proto
-
Affects
protokit_build::ParserContext
,protokit_build::Build.ctx
… - descriptors protoc
-
Enables descriptors of protokit_desc
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.