Cargo Features
[dependencies]
pallet-example-offchain-worker = { version = "35.0.0", default-features = false, features = ["std", "try-runtime"] }
- default = std
-
The
std
feature is set by default wheneverpallet-example-offchain-worker
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of parity-scale-codec, frame-support ^35.0.0, frame-system ^35.0.0, lite-json, log, scale-info, sp-core, sp-io ^37.0.0, sp-keystore, sp-runtime ^38.0.0, and sp-std
- try-runtime
-
Enables try-runtime of frame-support ^35.0.0, frame-system ^35.0.0, and sp-runtime ^38.0.0
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.