Cargo Features
[dependencies]
bigdecimal = { version = "0.4.6", default-features = false, features = ["std", "serde-json", "string-only"] }
- default = std
-
The
std
feature is set by default wheneverbigdecimal
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of num-bigint, num-integer, and num-traits
- serde-json = serde_json
-
serde:
Provide derive(Serialize, Deserialize) macros.
- string-only
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 serde-json?
-
Affects
bigdecimal::impl_serde
… - serde_json serde-json?
-
Enables serde_json
Allow direct parsing of JSON floats, for full arbitrary precision
Affects
impl_serde::arbitrary_precision
,impl_serde::arbitrary_precision_option
,bigdecimal::serde
,bigdecimal::impl_serde
…