Cargo Features

[dependencies]
xmrs = { version = "0.9.4", default-features = false, features = ["std", "demo", "libm", "micromath", "import", "import_amiga", "import_it", "import_s3m", "import_sid", "import_xm", "rand8", "rand16", "rand64"] }
default = micromath

The micromath feature is set by default whenever xmrs is added without default-features = false somewhere in the dependency tree.

std

Enables std of bincode, num_enum, and serde

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

demo = clap, import
libm

math features

Enables libm of num-traits

libm wrapper

micromath default

Enables micromath

import demo? = import_amiga, import_it, import_s3m, import_xm

import features

import_amiga import?

Affects import::amiga

import_it import?

Affects import::it

import_s3m import?

Affects import::s3m

import_sid

Affects import::sid

import_xm import?

Affects import::xm

rand8

xorshift rng features (rand32 is always enabled)

Affects xorshift::XorShift8

rand16

Affects xorshift::XorShift16

rand64

Affects xorshift::XorShift64

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.

clap demo?
num-traits libm?