Cargo Features

[dependencies]
bigdecimal = { version = "0.4.7", default-features = false, features = ["std", "serde-json", "string-only"] }
default = std

The std feature is set by default whenever bigdecimal is added without default-features = false somewhere in the dependency tree.

std default

Enables std of num-bigint, num-integer, and num-traits

serde-json = serde_json

Enables derive of serde

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