Cargo Features
[dependencies]
subxt-core = { version = "0.37.0", default-features = false, features = ["std", "substrate-compat"] }
- default = std
-
The
std
feature is set by default wheneversubxt-core
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of parity-scale-codec, frame-metadata, hex, impl-serde, primitive-types, scale-bits, scale-decode, scale-encode, scale-info, scale-value, serde, serde_json, subxt-metadata, and tracing
impl-serde:
Provides some deserialization, types like U256/H256 and hashing impls like twox/blake256:
Affects
error::CustomError
… - substrate-compat = sp-core, sp-runtime
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.
- sp-core substrate-compat?
-
Enables sp-core ^31.0.0
Included if the "substrate-compat" feature is enabled.
- sp-runtime substrate-compat?
-
Enables sp-runtime ^34.0.0