Cargo Features
[dependencies]
amplify = { version = "5.0.0-beta.1", default-features = false, features = ["std", "alloc", "all", "apfloat_std", "apfloat_alloc", "c_raw", "hex", "apfloat", "proc_attr", "derive", "serde", "getrandom"] }
- default = derive, hex, std
-
These default features are set whenever
amplify
is added without
somewhere in the dependency tree.default-features = false - std default all? c_raw? serde? = alloc
-
Enables std of amplify_num
Affects
confinement::TinyHashSet
,confinement::SmallHashSet
,confinement::MediumHashSet
,confinement::LargeHashSet
,confinement::ConfinedHashSet
,confinement::NonEmptyHashSet
,confinement::TinyHashMap
,confinement::SmallHashMap
,confinement::MediumHashMap
,confinement::LargeHashMap
,confinement::ConfinedHashMap
,confinement::NonEmptyHashMap
,collection::flags
… - alloc std
-
Enables alloc of amplify_num
Affects
collection::confinement
… - all = apfloat, apfloat_std, c_raw, derive, proc_attr, rand, serde, std, stringly_conversions
- apfloat_std all?
-
Enables std of amplify_apfloat
- apfloat_alloc
-
Enables alloc of amplify_apfloat
- c_raw all? = libc, std
- hex default
-
Enables hex of amplify_num
- apfloat all? = amplify_apfloat
- proc_attr all? = amplify_syn
- derive default all? = amplify_derive
- serde all? = serde_crate, std, stringly_conversions
-
Enables serde_str_helpers of stringly_conversions, serde of amplify_num and ascii
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.
- libc c_raw?
- amplify_derive derive
- amplify_syn proc_attr?
- amplify_apfloat apfloat? apfloat_alloc? apfloat_std?
- rand all?
- serde_crate serde?
-
Enables serde
This strange naming is a workaround for not being able to define required features for a dependency See https://github.com/rust-lang/api-guidelines/issues/180 for the explanation and references.
- stringly_conversions all? serde?
- getrandom wasm32 implicit feature
-
Enables getrandom
getrandom:
A small cross-platform library for retrieving random data from system source