Cargo Features
[dependencies]
riscv = { version = "0.12.1", default-features = false, features = ["s-mode", "critical-section-single-hart", "riscv-macros"] }
- default = riscv-macros
-
The
riscv-macros
feature is set by default wheneverriscv
is added without
somewhere in the dependency tree.default-features = false - s-mode
- critical-section-single-hart
-
Enables restore-state-bool of critical-section
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.
- riscv-macros default