Contributing to Battery Pack
This section covers how to contribute to the cargo-bp tool itself.
If you’re looking to create your own battery pack crate, see Creating a Battery Pack instead.
Development setup
Clone the repository and build:
git clone https://github.com/battery-pack-rs/battery-pack.git
cd battery-pack
cargo build --workspace
Run the test suite:
cargo test --all --workspace
Repository structure
src/battery-pack/— thecargo-bpCLI and its helper cratesbattery-packs/— first-party battery packs (cli, error, ci, etc.)md/— this documentation (built with mdbook)md/spec/— the formal specificationmd/rfds/— design documents (Requests for Discussion)
Guides
- Ratatui testing guide — how to write snapshot tests for TUI components