Cargo Features
[dependencies]
sub-script = { version = "0.8.0", default-features = false, features = ["libp2p", "v12", "v13", "v14", "no_std", "std"] }
- default = libp2p, std, v12, v13, v14
-
These default features are set whenever
sub-script
is added without
somewhere in the dependency tree.default-features = false - libp2p default = bs58, libp2p-core
- v12 default
-
Enables v12 of frame-metadata ^14.0.0
- v13 default
-
Enables v13 of frame-metadata ^14.0.0
- v14 default = scale-info
-
Enables v14 of frame-metadata ^14.0.0
Affects
types::is_type_compact
,types::get_type_name
… - no_std
-
Polymesh
polymesh = [
"confidential_identity",
"confidential_identity_v1",
"cryptography_core",
"polymesh-primitives",
] - std default
-
Enables frame-metadata ^14.0.0 and std of frame-support ^3.0, sp-core ^3.0, sp-runtime ^3.0, and sp-version ^3.0
sp-core:
substrate
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.
- scale-info v14
-
Enables scale-info ^1.0
- bs58 libp2p
-
Enables bs58 ^0.4.0
libp2p
- libp2p-core libp2p
-
Enables libp2p-core ^0.32.1