| Crates.io | mu_lib |
| lib.rs | mu_lib |
| version | 0.2.2 |
| created_at | 2025-02-24 03:45:01.323299+00 |
| updated_at | 2025-08-28 05:55:45.519372+00 |
| description | XCENA mu Library |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1566918 |
| size | 67,773 |
This Rust library provides a safe and idiomatic interface to the core MU Library, which is written in C++. It includes essential functionalities for developing with Rust in the MU programming environment.
rust mu_lib wraps various hardware and system features of the MU system, making them easily accessible from Rust code. It aims to enhance development productivity by ensuring memory safety and leveraging Rust's type system and error handling mechanisms.
This library is designed as a no_std crate and provides default global allocator and panic handler implementations out of the box.
This library requires the MU Rust toolchain which is based on rustc 1.86.0. It is required to use this specific version for compatibility.
no_std compatiblecargo +nightly-1.86.0-x86_64-unknown-linux-gnu build ${build_profile} -Z build-std=core,alloc --target=${path_to_target}/riscv64imfdxmetis-unknown-none-elf.json
By default, this library provides both global allocator and panic handler implementations. If you want to use your own implementations instead, you can disable the defaults and selectively enable specific features in your Cargo.toml:
[dependencies]
mu_lib = { version = "0.1.11", default-features = false, features = ["default_global_allocator"] }
[dependencies]
mu_lib = { version = "0.1.11", default-features = false, features = ["default_panic_handler"] }