Cargo Features

[dependencies]
sp-arithmetic = { version = "26.0.0", default-features = false, features = ["std", "serde"] }
default = std

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

std default

Enables std of parity-scale-codec, num-traits, scale-info, serde, and sp-std

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

Affects per_things::PerThing.from_float, per_things::PerThing.from_fraction

serde std

Serde support without relying on std features.

Enables serde, serde of scale-info