| Crates.io | libriscv_sys |
| lib.rs | libriscv_sys |
| version | 0.1.0 |
| created_at | 2025-12-19 17:47:36.701677+00 |
| updated_at | 2025-12-19 17:47:36.701677+00 |
| description | FFI bindings to libriscv, a fast RISC-V sandbox emulator |
| homepage | |
| repository | https://github.com/cijiugechu/libriscv_sys |
| max_upload_size | |
| id | 1995195 |
| size | 1,057,126 |
libriscv_sysLow-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.
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);
}
}
bindgen: regenerate bindings at build time (requires libclang).binary-translation: enable libriscv binary translation support.