Cargo Features

RustSBI has no features set by default.

[dependencies]
rustsbi = { version = "0.4.0", features = ["machine", "forward"] }
machine

Run RustSBI on machine mode.
This feature enables to use RISC-V primitives on current machine mode environment If you are developing a cross-architecture virtual machine, consider disabling this feature to customize environment variables for RISC-V architecture like mvendorid, mimpid, etc.

Enables riscv ^0.11.1, machine of rustsbi-macros

forward

Enables the struct Forward. Struct Forward uses the current SBI environment to implement the RustSBI environment. This feature is only usable when current software runs on another SBI environment, e.g., hypervisors for RISC-V architecture.

Enables sbi-rt