ax-errno 0.4.7

Generic error code representation.
Documentation
  • Coverage
  • 100%
    231 out of 231 items documented5 out of 11 items with examples
  • Size
  • Source code size: 49.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.53 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 54s Average build duration of successful builds.
  • all releases: 46s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • rcore-os/tgoskits
    11 25 20
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • github:rcore-os:crates-io ZCShou

Crates.io Docs.rs Rust License

English | 中文

Introduction

ax-errno provides Generic error code representation. It is maintained as part of the TGOSKits component set and is intended for Rust projects that integrate with ArceOS, AxVisor, or related low-level systems software.

ax-errno was derived from https://github.com/arceos-org/axerrno

Quick Start

Installation

Add this crate to your Cargo.toml:

[dependencies]
ax-errno = "0.4.2"

Run Check and Test

# Enter the crate directory
cd components/axerrno

# Format code
cargo fmt --all

# Run clippy
cargo clippy --all-targets --all-features

# Run tests
cargo test --all-features

# Build documentation
cargo doc --no-deps

Integration

Example

use ax_errno as _;

fn main() {
    // Integrate `ax-errno` into your project here.
}

Documentation

Generate and view API documentation:

cargo doc --no-deps --open

Online documentation: docs.rs/ax-errno

Contributing

  1. Fork the repository and create a branch
  2. Run local format and checks
  3. Run local tests relevant to this crate
  4. Submit a PR and ensure CI passes

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.