libriscv_sys

Crates.iolibriscv_sys
lib.rslibriscv_sys
version0.1.0
created_at2025-12-19 17:47:36.701677+00
updated_at2025-12-19 17:47:36.701677+00
descriptionFFI bindings to libriscv, a fast RISC-V sandbox emulator
homepage
repositoryhttps://github.com/cijiugechu/libriscv_sys
max_upload_size
id1995195
size1,057,126
Cistus Creticus (cijiugechu)

documentation

README

libriscv_sys

Low-level Rust FFI bindings to libriscv, a fast RISC-V sandbox emulator. This is a -sys crate intended to be used by higher-level Rust wrappers.

Usage

Add the dependency:

[dependencies]
libriscv_sys = { version = "0.1" }

Call the C API:

use libriscv_sys::*;

fn main() {
    unsafe {
        let mut options: RISCVOptions = std::mem::zeroed();
        libriscv_set_defaults(&mut options);
    }
}

Features

  • bindgen: regenerate bindings at build time (requires libclang).
  • binary-translation: enable libriscv binary translation support.
Commit count: 0

cargo fmt