# rustsbi/rustsbi

RISC-V Supervisor Binary Interface (RISC-V SBI) library in Rust; runs on M or HS mode; good support for embedded Rust ecosystem. For binary download see prototyper folder.

Repository: https://github.com/rustsbi/rustsbi
Canonical: https://ross.abutalabs.com/products/rustsbi
Language: Rust
License: MIT
License Family: permissive
Topics: rust, rustsbi, rust-embedded, riscv, sbi, sbi-specification, bare-metal
Last push: 2026-08-25T12:35:29+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 59, longevity 100
- inputs: {"age_days": 2245, "days_push": 8, "days_rel": 112, "gap_med": 145, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1306, forks 149 (observed 2026-08-28T04:04:18.927152+00:00)

## What it is
RustSBI is a RISC-V Supervisor Binary Interface (SBI) implementation library written in Rust, running in M-mode or HS-mode on bare-metal RISC-V hardware. It serves as firmware runtime for operating systems, hypervisors, and emulators, with binary images available via the RustSBI Prototyper.

## Use cases
- boot a RISC-V operating system kernel with SBI firmware
- build custom firmware for a RISC-V SoC or board
- develop a hypervisor or emulator that needs an SBI implementation
- run embedded Rust on bare-metal RISC-V hardware
- implement RISC-V SBI specification v2.0 in a firmware project

## When to choose
- you need a minimal, Rust-based SBI implementation for RISC-V M-mode or HS-mode
- you are building OS kernels, hypervisors, or emulators for RISC-V
- you want firmware that integrates with the Rust embedded ecosystem

## When to avoid
- you need firmware for non-RISC-V architectures like ARM or x86
- you want a full-featured bootloader like U-Boot rather than a minimal SBI runtime
- your project requires no-Rust toolchains only

## Facets
- artifact type: library
- maturity: active
- function: embedded, sdk, developer-tools
- domain: embedded-systems, operating-systems, hardware
- platform: embedded, rust, cross-platform
- tags: riscv, sbi, firmware, bare-metal, rust-embedded, bootloader

## Member repositories
- rustsbi/rustsbi (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:18.927152+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:50:58.851903+00:00, confidence not recorded.
  - readme: https://github.com/rustsbi/rustsbi (fetched 2026-08-28T04:04:18.927152+00:00, sha b891cff31ca8)
  - registry_crates: https://crates.io/api/v1/crates/rustsbi (fetched 2026-08-29T12:08:42.748404+00:00, sha 174585ef93ab)
- Data as of 2026-08-30T08:39:29.467469+00:00.
