Cargo Features
[dependencies]
tetsy-scale-codec = { version = "2.0.1", default-features = false, features = ["std", "derive", "bit-vec", "fuzz", "chain-error", "full", "generic-array"] }
- default = std
-
The
stdfeature is set by default whenevertetsy-scale-codecis added withoutsomewhere in the dependency tree.default-features = false - std default fuzz? = chain-error, serde
-
Enables std of bitvec ^0.20.1 and byte-slice-cast
bitvec:
The standard library includes the allocator.
Affects
codec::IoReader,tetsy-scale-codec::alloc… - derive = tetsy-scale-codec-derive
- bit-vec = bitvec
- fuzz = arbitrary, std
- chain-error std
-
Make error fully descriptive with chaining error message.
Should not be used in a constrained environment. - 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 tetsy-scale-codec implementations for many types that can be found in std and/or alloc.
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.
- serde std
- tetsy-scale-codec-derive derive?
- bitvec bit-vec? std
-
Enables bitvec ^0.20.1
- generic-array implicit feature
-
Enables generic-array ^0.14.4
generic-array:
Generic types implementing functionality of arrays
- arbitrary fuzz?
-
Enables arbitrary ^0.4.1