English | 中文
Introduction
A library providing type definitions for AArch64 system registers, including operation types, register types, and system register enumerations for the ARM64 architecture. Supports #![no_std] for bare-metal and OS kernel development.
This library exports three core enumeration types:
OperationType— AArch64 instruction operation types (1000+ instructions)RegistersType— General-purpose and vector registers (W/X/V/B/H/S/D/Q/Z/P, etc.)SystemRegType— System registers (debug, trace, performance counters, system control, etc.)
Each type implements Display, From<usize>, LowerHex, and UpperHex traits.
Quick Start
Requirements
- Rust nightly toolchain
- Rust components: rust-src, clippy, rustfmt
# Install rustup (if not installed)
|
# Install nightly toolchain and components
Run Check and Test
# 1. Clone the repository
# 2. Code check (format + clippy + build + doc generation)
# 3. Run tests
# Run all tests (unit tests + integration tests)
# Run unit tests only
# Run integration tests only
# List all available test suites
# Specify unit test target
Integration
Installation
Add to your Cargo.toml:
[]
= "0.1.1"
Example
use ;
Documentation
Generate and view API documentation:
Online documentation: docs.rs/aarch64_sysreg
Contributing
- Fork the repository and create a branch
- Run local check:
./scripts/check.sh - Run local tests:
./scripts/test.sh - Submit PR and pass CI checks
License
Licensed under the Apache License, Version 2.0. See LICENSE for details.