Packaging petitcarnets
For distribution maintainers. petitcarnets is a Rust library crate with no binary, so it is packaged where a distribution packages Rust crates as source (Debian's librust-*-dev, Fedora's rust-*-devel).
| Question | Answer |
|---|---|
| Licence | MIT OR Apache-2.0; both texts ship in the crate (LICENSE-MIT, LICENSE-APACHE). Seven generated tables also carry their sources' notices (MIT, BSD-3-Clause, Unicode-3.0), shipped as THIRD-PARTY-NOTICES.md |
| Minimum Rust | 1.85 (edition 2024); raising it is a declared breaking change (POLICIES.md) |
| Dependencies | none, build or runtime; dev-dependencies none either |
| Features | bubbles (default): the components, no dependencies; --no-default-features builds the runtime alone |
| Platforms | Linux (glibc, musl), macOS, FreeBSD; Windows is not supported yet |
| Network at build or test time | none |
Building and testing offline
The crate needs nothing but rustc and cargo, so an offline build is the default:
The published .crate includes the sources, the examples and the fixtures the unit tests read (tests/fixtures/*.tsv), so cargo test on the unpacked crate runs the unit tests, the examples' builds and the doc tests, with no terminal attached (CI runs them the same way). The integration tests, golden files and the real-terminal suite (scripts/pty-smoke.sh) are in the repository, not the crate.
Verifying a download
Each release's .crate and its CycloneDX SBOM carry SLSA build provenance from the release workflow:
The workflow also checks that the .crate crates.io serves is the one it packages, byte for byte. Release tags are SSH-signed; the keys are in KEYS.asc:
C library
There is no C interface, and none is planned in this crate: a C ABI would be a separate satellite crate, decided when someone asks.