diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 531ddd1..5d66dd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - rust-toolchain: [nightly] + rust-toolchain: [nightly-2025-05-20, nightly] targets: [x86_64-unknown-linux-gnu, x86_64-unknown-none, riscv64gc-unknown-none-elf, aarch64-unknown-none-softfloat] steps: - uses: actions/checkout@v4 @@ -41,6 +41,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly + with: + toolchain: nightly-2025-05-20 - name: Build docs continue-on-error: ${{ github.ref != env.default-branch && github.event_name != 'pull_request' }} run: | diff --git a/Cargo.toml b/Cargo.toml index 26e4c62..57c6862 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,20 +5,24 @@ members = [ ] [workspace.package] -authors = ["aarkegz "] +authors = ["Su Mingxian "] edition = "2024" -license = "GPL-3.0-or-later OR Apache-2.0 OR MulanPSL-2.0" +license = "GPL-3.0-or-later OR Apache-2.0 OR MulanPubL-2.0 OR MulanPSL2" +repository = "https://github.com/arceos-hypervisor/axvisor_api" [package] name = "axvisor_api" description = "Basic API for components of the Hypervisor on ArceOS" version = "0.1.0" +keywords = ["axvisor", "api", "embedded"] +categories = ["embedded", "no-std"] authors.workspace = true edition.workspace = true license.workspace = true +repository.workspace = true [dependencies] -axvisor_api_proc = { path = "axvisor_api_proc", version = "*"} +axvisor_api_proc = { path = "axvisor_api_proc", version = "0.1.0"} crate_interface = "0.1" memory_addr = "0.4" diff --git a/README.md b/README.md index 1f57ae4..05303f1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # axvisor\_api (Experimental Next-Generation Axvisor API) +[![CI](https://github.com/arceos-hypervisor/axvisor_api/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/arceos-hypervisor/axvisor_api/actions/workflows/ci.yml) +[![License](https://img.shields.io/badge/License-MIT%20OR%20Apache--2.0-blue.svg)] \> [中文README](README.zh-cn.md) < diff --git a/axvisor_api_proc/Cargo.toml b/axvisor_api_proc/Cargo.toml index 3020003..e01ae41 100644 --- a/axvisor_api_proc/Cargo.toml +++ b/axvisor_api_proc/Cargo.toml @@ -1,9 +1,14 @@ [package] name = "axvisor_api_proc" version = "0.1.0" +description = "Procedural macros for the `axvisor_api` crate" +keywords = ["axvisor", "api", "embedded", "macros"] +categories = ["development-tools::procedural-macro-helpers"] authors.workspace = true edition.workspace = true license.workspace = true +repository.workspace = true + [lib] proc-macro = true diff --git a/axvisor_api_proc/README.md b/axvisor_api_proc/README.md new file mode 100644 index 0000000..c783c40 --- /dev/null +++ b/axvisor_api_proc/README.md @@ -0,0 +1,5 @@ +# axvisor-api-macros + +**Attribute Macros for Automated API Trait Generation and Cross-Module Binding** + +**DO NOT** use this crate directly, use the [axvisor_api] crate instead. \ No newline at end of file diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..d3d6b82 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,10 @@ +[toolchain] +profile = "minimal" +channel = "nightly-2025-05-20" +components = ["rust-src", "llvm-tools", "rustfmt", "clippy"] +targets = [ + "x86_64-unknown-none", + "riscv64gc-unknown-none-elf", + "aarch64-unknown-none-softfloat", + "loongarch64-unknown-none-softfloat", +] \ No newline at end of file