Cargo Features

dashu-ratio = { version = "0.4.1", default-features = false, features = ["std", "serde", "zeroize", "num-order", "num-traits", "num-traits_v02", "rand", "rand_v08", "dashu-float"] }
default = dashu-float, num-order, std

These default features are set whenever dashu-ratio is added without default-features = false somewhere in the dependency tree.

std default

Enables std of dashu-base and dashu-int


stable dependencies

Enables serde, serde of dashu-int


Enables zeroize, zeroize of dashu-int

num-order default

Enables num-modular and num-order

num-traits = num-traits_v02

unstable dependencies

num-traits_v02 num-traits?

Enables num-traits, num-traits_v02 of dashu-int

rand = rand_v08
rand_v08 rand?

Enables rand_v08 of dashu-int and rand

unstable dependencies

Affects third_party::rand

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

dashu-float default