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 whenever riscv is added without default-features = false somewhere in the dependency tree.

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