Repository navigation
remove-except v0.4.0
Compatibility and deletion safety
This minor release includes an intentional input-compatibility change. Review every item with --dry-run and without --summary before deleting; keep/delete decisions can differ from v0.3.0.
- Non-Unicode paths:
build_plannow rejects a normalized root or any scanned entry path that cannot be represented as Unicode, in human output and the public API as well as JSON. It returns no partial plan and reports a runtime error withoutValidationError. The CLI exits with code 1 before stdout, confirmation, or deletion, including with--force. Inputs that previously succeeded can now fail. Valid U+FFFD names remain supported; child symlink targets are not followed. - Ubuntu glob matching:
?and character classes match Unicode scalar values, not UTF-8 bytes. Combining sequences can require multiple wildcards. Case sensitivity and path-separator rules are preserved. Recursive globs keep matching newline-containing names; literal backslashes before hex-looking text remain literal. - Confirmation: An unterminated
yoryesat EOF now cancels with code 3 and deletes nothing. v0.3.0 documented Enter to confirm and EOF to cancel, but its distributed implementation accepted unterminated affirmative answers. Every input path now requires a newline-terminated affirmative line.
Display and documentation
- Tree previews keep directory subtrees contiguous, including retained parents and prefix-sharing siblings. Flat/JSON/plan order and deletion order are unchanged.
- Colored summary headings show
KEEP:in green andDELETE:in red. Uncolored wording is unchanged. - A private section enum replaces comparisons against display strings without changing output.
- Rust Doc examples use owned temporary fixtures instead of deleting predictable temporary paths.
- Documentation clarifies that a plan records observed entries: traversal is not atomic or locked and does not prevent concurrent changes. This is not a new locking or revalidation guarantee.
- Correct confirmation help indentation and synchronize bilingual behavior/migration descriptions and developer release documentation.
Distribution and verification
-
Windows x64:
remove-except-v0.4.0-x86_64-pc-windows-msvc.zip -
Linux x64:
remove-except-v0.4.0-x86_64-unknown-linux-gnu.tar.gz(built on Ubuntu 22.04; glibc 2.35+, supported on Ubuntu) -
Each archive has a matching
.sha256asset and contains the binary, both READMEs, and both project licenses. -
Before extracting or running, verify SHA-256 against the matching checksum file. Verify build provenance with:
gh attestation verify <archive-path> --repo tresuke/remove-except --signer-workflow tresuke/remove-except/.github/workflows/prepare-release.yml -
Binaries are built with pinned
cargo-auditableand audited withcargo auditfor both the lockfile and target binaries. Embedded dependency names/versions and attestations are not a guarantee of safety. -
Rust 1.88 remains the minimum for source builds. Windows/Ubuntu support, public API types, JSON schema version 1, and existing CLI options remain unchanged except for the input policy above.
-
No macOS, ARM64, musl, crates.io package, or docs.rs publication is provided.
-
The archived READMEs retain the previously available installation instructions at tag time. Current v0.4.0 installation links are synchronized on main after verified publication; published archives/tags are not replaced.
Included pull requests
- #15: Colored summary headings.
- #16: Newline-terminated confirmation and accurate version history.
- #17: Contiguous Tree subtrees and ordering regressions.
- #18: Unicode scalar glob semantics and newline/backslash regressions.
- #19: Safe Rust Doc fixtures and accurate plan guarantees.
- #20: Typed display section semantics.
- #21: Early non-Unicode path rejection.
Post-v0.3.0 installation and developer-release documentation also includes #13 and #14.