Cargo Features

[dependencies]
langis = { version = "0.1.1", default-features = false, features = ["rand-std", "num-std", "num-libm"] }
default = num-std, rand-std

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

rand-std default

Enables std of rand ^0.7

rand:

Option (enabled by default): without "std" rand uses libcore; this option enables functionality expected to be available on a standard platform.

Affects langis::random

num-std default

Enables std of num-traits

Affects langis::Signal.ease, langis::Signal.lerp, langis::Signal.interpolate, langis::oscillator, langis::sine, langis::triangle, langis::sawtooth, langis::square, langis::simplex, noise::Simplex, num::Ease, num::Lerp, num::Interpolate, num::Phase, num::Oscillator, num::Sine, num::Sawtooth, num::Square, num::Triangle

num-libm

Enables libm of num-traits

Affects langis::Signal.ease, langis::Signal.lerp, langis::Signal.interpolate, langis::oscillator, langis::sine, langis::triangle, langis::sawtooth, langis::square, langis::simplex, noise::Simplex, num::Ease, num::Lerp, num::Interpolate, num::Phase, num::Oscillator, num::Sine, num::Sawtooth, num::Square, num::Triangle

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 rand-std

Enables rand ^0.7

Affects langis::random_complete, noise::Random

num-traits num-libm? num-std

Affects langis::num, langis::Signal.wrapping_add, langis::Signal.wrapping_sub, langis::Signal.wrapping_mul, langis::Signal.wrapping_shr, langis::Signal.wrapping_shl, langis::Signal.saturating_add, langis::Signal.saturating_sub, langis::Signal.saturating_mul, langis::Signal.checked_add, langis::Signal.checked_sub, langis::Signal.checked_mul, langis::Signal.checked_shr, langis::Signal.checked_shl, langis::Signal.inv, langis::Signal.mul_add