NEVER git commit or git add without asking.
posixutils-rs: Rust-native POSIX utilities (cp, mv, awk, sh, cc, make, vi, etc.) targeting POSIX.2024. Goal: clean, race-free, POSIX-compliant utilities.
Rust: 1.84.0+ | License: MIT | Platforms: Linux, macOS
cargo build --release # Build (ALWAYS full workspace, no -p)
cargo test --release # Test all (15+ min)
cargo test --release -p posixutils-text # Test single crate
cargo clippy # Lint (required)
cargo fmt --all -- --check # Format check (required)NEVER amend git commits.
Pre-commit checks,
- First re-review
git diff HEADin totality - Passes
cargo clippy --all-targetswith zero warnings (pre-existing warnings MUST be fixed)
Workspace by category: text/, fs/, process/, awk/, sh/, make/, editors/, plib/ (shared lib), ftw/ (race-free file walking).
Other: calc/, cc/, cron/, datetime/, dev/, display/, file/, m4/, mailx/, pax/, sccs/, screen/, sys/, tree/, users/, uucp/, xform/, i18n/.
- Zero warnings - clippy and compiler
- No
#[allow(dead_code)]- delete unused code - Minimal deps - prefer std; use clap, libc, regex, chrono
- Small functions - refactor large functions into helpers
Debug protocol:
Update EXISTING wrapper script in /tmp/*.sh, run via Bash tool.
DO NOT (1) create file with cat, (2) run bash from Bash tool
Integration tests use plib::testing::TestPlan. Test logic in $crate/tests/$category/mod.rs.
- POSIX.2024 first - spec before GNU/BSD extensions
- Minimalism - only widely-used extensions
- Race-free - especially file ops (see
ftw/) - Correctness > Readability > Performance