4 releases
Uses new Rust 2024
| 0.2.2 | Jul 5, 2025 |
|---|---|
| 0.2.1 | Jul 2, 2025 |
| 0.2.0 | Jul 2, 2025 |
| 0.1.0 | Jun 13, 2025 |
#389 in Cargo plugins
713 downloads per month
27KB
508 lines
cargo-axplat
A cargo subcommand to manage hardware platform packages using axplat.
Install
$ cargo install --locked cargo-axplat
Usage
Usage: cargo axplat [COMMAND]
Commands:
new Create a new platform package
add Add platform package dependencies to a Cargo.toml manifest file
info Display information about a platform package
help Print this message or the help of the given subcommand(s)
Options:
-V, --version Print version
-h, --help Print help
Examples
1. Create a new platform package
It will create a new platform package named axplat-aarch64-my-plat in the current directory:
$ cargo axplat new axplat-aarch64-my-plat --arch aarch64
Creating library `axplat-aarch64-my-plat` package
note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2. Add the platform package as dependency
Run in your project directory:
$ cd my-project
$ cargo axplat add axplat-aarch64-my-plat --path ../axplat-aarch64-my-plat
Adding axplat-aarch64-my-plat (local) to dependencies
Updating crates.io index
Adding axplat-aarch64-my-plat v0.1.0 (/home/user/axplat-aarch64-my-plat)
It will add axplat-aarch64-my-plat as a dependency in your project's Cargo.toml file:
[dependencies]
axplat-aarch64-my-plat = { path = "./axplat-aarch64-my-plat" }
3. Display information about the platform package
$ cargo axplat info axplat-aarch64-my-plat
platform: axplat-aarch64-my-plat
arch: aarch64
version: 0.1.0
source: path+file:///home/user/axplat-aarch64-my-plat#0.1.0
config_path: /home/user/axplat-aarch64-my-plat/axconfig.toml
Dependencies
~6–8MB
~140K SLoC