Cargo Features

[dependencies]
unimock = { version = "0.6.6", default-features = false, features = ["std", "pretty-print", "fragile", "spin-lock", "critical-section", "mock-core", "mock-std", "mock-futures-io-0-3", "mock-tokio-1", "mock-embedded-hal-1", "unstable-doc-cfg"] }
default = pretty-print, std

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

std default fragile? mock-futures-io-0-3? mock-std? mock-tokio-1?

Enables std of once_cell

once_cell:

Enables once_cell::sync module.

pretty-print default

Enables pretty_assertions

fragile = std

Enables fragile

spin-lock

Enables spin

critical-section

Enables critical-section of once_cell

once_cell:

Uses critical-section to implement sync and race modules. in #![no_std] mode. Please read critical-section docs carefully before enabling this feature.

mock-core mock-embedded-hal-1? mock-std?

Affects core::fmt, core::hash

mock-std = mock-core, std

Affects std::error, std::io, std::process

mock-futures-io-0-3 = std

Enables futures-io

Affects futures_0_3::io

mock-tokio-1 = std

Enables tokio

Affects tokio_1::io

mock-embedded-hal-1 = mock-core

Enables embedded-hal

Affects embedded_hal_1::delay, embedded_hal_1::digital, embedded_hal_1::i2c, embedded_hal_1::pwm, embedded_hal_1::spi

nightly-tests unstable-doc-cfg