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

Download history 142/week @ 2025-07-18 140/week @ 2025-07-25 123/week @ 2025-08-01 227/week @ 2025-08-08 232/week @ 2025-08-15 148/week @ 2025-08-22 145/week @ 2025-08-29 289/week @ 2025-09-05 157/week @ 2025-09-12 152/week @ 2025-09-19 233/week @ 2025-09-26 86/week @ 2025-10-03 170/week @ 2025-10-10 128/week @ 2025-10-17 142/week @ 2025-10-24 224/week @ 2025-10-31

713 downloads per month

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

27KB
508 lines

cargo-axplat

Crates.io CI

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