#cpu-architecture #hal #arceos

no-std axcpu

Privileged instruction and structure abstractions for various CPU architectures

9 releases

new 0.3.0-preview.4 Feb 10, 2026
0.3.0-preview.3 Feb 7, 2026
0.3.0-alpha.0 Jan 22, 2026
0.2.2 Jul 8, 2025
0.1.0-pre.2 May 12, 2025

#235 in Embedded development

Download history 155/week @ 2025-10-23 742/week @ 2025-10-30 345/week @ 2025-11-06 405/week @ 2025-11-13 686/week @ 2025-11-20 306/week @ 2025-11-27 227/week @ 2025-12-04 315/week @ 2025-12-11 691/week @ 2025-12-18 126/week @ 2025-12-25 47/week @ 2026-01-01 73/week @ 2026-01-08 194/week @ 2026-01-15 142/week @ 2026-01-22 158/week @ 2026-01-29 1523/week @ 2026-02-05

2,026 downloads per month
Used in 49 crates (15 directly)

GPL-3.0-or-later OR Apache-2…

160KB
4K SLoC

Rust 3.5K SLoC // 0.0% comments GNU Style Assembly 656 SLoC // 0.2% comments

axcpu

Crates.io Docs.rs CI

This crate provides privileged instruction and structure abstractions for various CPU architectures. It is designed to implement the hardware abstraction layer of an operating system kernel.

Supported Architectures

  • x86_64
  • AArch64
  • RISC-V
  • LoongArch64

Dependencies

~4.5MB
~53K SLoC