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 default-features = false somewhere in the dependency tree.

nightly

Enable nightly or experiemental features

doc

Used when compiling docs

std default

Enable stdlib support

Enables std of rand

Affects violin::Vector.magnitude

alloc default

Enable heap allocations

Enables alloc of rand

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.

rand alloc std