Cargo Features
[dependencies]
unimock = { version = "0.6.7", 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
somewhere in the dependency tree.default-features = false - std default fragile? mock-futures-io-0-3? mock-std? mock-tokio-1?
-
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 implementsync
module. in#![no_std]
mode. Please readcritical-section
docs carefully before enabling this feature.portable-atomic
feature is enabled for backwards compatibility. - 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