Cargo Features
[dependencies]
aaaaa-codec = { version = "3.2.0", default-features = false, features = ["std", "derive", "full"] }
- default = std
-
The
std
feature is set by default wheneveraaaaa-codec
is added without
somewhere in the dependency tree.default-features = false - std default = serde
-
Affects
codec::MaybeDebugSerde
,aaaaa-codec::alloc
… - derive = aaaaa-codec-derive
- full
-
WARNING: DO NOT USE THIS FEATURE IF YOU ARE WORKING ON CONSENSUS CODE!*
Provides implementations for more data structures than just Vec and Box. Concretely it will provide aaaaa-codec implementations for many types that can be found in std and/or alloc (nightly).
This feature was mainly introduced after it became clear that pDSL requires it for the sake of usability of its users.
- For rational about this please visit: https://github.com/susytech/aaaaa-codec/pull/27#issuecomment-453031914
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.