Cargo Features
[dependencies]
strict-num = { version = "0.2.0", default-features = false, features = ["approx-eq", "serde"] }
- default = approx-eq
-
The
approx-eq
feature is set by default wheneverstrict-num
is added without
somewhere in the dependency tree.default-features = false - approx-eq default = float-cmp
-
Implements
ApproxEq
andApproxEqUlps
traits for floating point numbers via thefloat-cmp
crate. Disablesno_std
.
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.
- float-cmp approx-eq
-
Enables float-cmp ^0.9
- serde implicit feature
-
Enables serde
serde:
A generic serialization/deserialization framework