Cargo Features

[dependencies]
quantities = { version = "0.13.2", default-features = false, features = ["std", "serde", "mass", "length", "duration", "area", "volume", "speed", "acceleration", "force", "energy", "power", "frequency", "datavolume", "datathroughput", "temperature", "doc", "fpdec"] }
default = std

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

std default
serde

Enables serde, serde-as-str of optional fpdec ^0.10

mass doc? force?

Affects quantities::mass

length area? doc? energy? speed?

Affects quantities::length

duration acceleration? datathroughput? doc? frequency? power? speed?

Affects quantities::duration

area doc? volume? = length

Affects quantities::area

volume doc? = area

Affects quantities::volume

speed acceleration? doc? = duration, length

Affects quantities::speed

acceleration doc? force? = duration, speed

Affects quantities::acceleration

force doc? energy? = acceleration, mass

Affects quantities::force

energy doc? power? = force, length

Affects quantities::energy

power doc? = duration, energy

Affects quantities::power

frequency doc? = duration

Affects quantities::frequency

datavolume datathroughput? doc?

Affects quantities::datavolume

datathroughput doc? = datavolume, duration

Affects quantities::datathroughput

temperature doc?

Affects quantities::temperature

doc = acceleration, area, datathroughput, datavolume, duration, energy, force, frequency, length, mass, power, speed, temperature, volume

used for rustdoc only

Features from optional dependencies

fpdec implicit feature

Enables fpdec ^0.10

fpdec:

Decimal fixed-point arithmetic

Affects quantities::amnt_dec