Cargo Features
[dependencies]
violin = { version = "0.3.0", default-features = false, features = ["nightly", "doc", "std", "alloc"] }
- default = alloc, std
-
These default features are set whenever
violin
is added without
somewhere in the dependency tree.default-features = false - nightly
-
Enable nightly or experiemental features
- doc
-
Used when compiling docs
- std default
-
Enable stdlib support
Affects
violin::Vector.magnitude
… - alloc default
-
Enable heap allocations
Affects
violin::heap
…
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.