Cargo Features
[dependencies]
byte-unit = { version = "5.1.6", default-features = false, features = ["std", "serde", "rocket", "rust_decimal", "u128", "byte", "bit"] }
- default = byte, std
-
These default features are set whenever
byte-unit
is added without
somewhere in the dependency tree.default-features = false - std default rocket?
-
Enables std of optional rust_decimal and optional serde
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.Affects
common::round_fractional_part_f64
… - serde
-
Enables serde
- rocket = std
-
Enables rocket
- rust_decimal bit? byte
-
Enables rust_decimal
- u128
-
Affects
bit::Bit
,byte::Byte
… - byte default = rust_decimal
-
Affects
common::round_fractional_part_f64
,errors::ExceededBoundsError
,errors::ValueParseError
,errors::ParseError
,common::round_fractional_part_f64
… - bit = rust_decimal
-
Affects
common::round_fractional_part_f64
,errors::ExceededBoundsError
,errors::ValueParseError
,errors::ParseError
,common::round_fractional_part_f64
…