- Repository:
BitConcepts/cpac - Tool name: CPAC (Constraint-Projected Adaptive Compression)
- License: CPSC Research & Evaluation License v1.0
cargo build --workspace # debug build
cargo build --release # release (fat LTO)
cargo test --workspace # all tests (413+)
cargo clippy --workspace -- -D warnings # lint (must pass)
cargo fmt --all -- --check # format check
cargo bench -p cpac-engine # criterion benchmarksAlways set before any cargo command in PowerShell:
$env:PATH = "$env:USERPROFILE\.cargo\bin;$env:PATH"Before committing, all of the following must pass:
cargo build --workspacecargo test --workspace(ignore pre-existing fuzz_equivalent failure)cargo clippy --workspace -- -D warningscargo fmt --all -- --check
- Conventional commit style preferred:
feat:,fix:,refactor:,docs:,bench: - Always include
Co-Authored-By: Oz <oz-agent@warp.dev>on AI-assisted commits - Never commit unless the user explicitly asks
- Minimum: 1.75 stable
- Tested: 1.93 stable (x86_64-pc-windows-msvc)
- Copyright header on every
.rsfile CpacErrorfor all errors, nounwrap()in library crates#[must_use]on compress/decompress and other Result-returning public APIs- Doc comments on all public items
- Unit tests in
#[cfg(test)] mod testswithin each source file
- No circular crate dependencies
cpac-typesis the leaf dependency (no internal deps)cpac-engineis the top-level API cratecpac-clidepends on engine + extensions, never the reverse- Feature gates for heavyweight optional deps (e.g.,
pqconcpac-crypto)
.cpac— compressed file.cpar— multi-file archive.cpac-enc— password-encrypted file.cpac-pqe— hybrid PQC-encrypted file.cpac-sig— ML-DSA-65 signature.cpac-pub/.cpac-sec— public/secret key files
- Main development:
main - Feature branches:
feature/<name> - Integration/staging:
develop
When starting work on this codebase, load:
AGENTS.md— codebase overview, conventions, gotchasWARP.md— this file (project rules)docs/SPEC.md— wire format referencedocs/ARCHITECTURE.md— system design