feat(cli): move regular-file removal to Rust

Route the CLI backend's safe file-removal leaf through a narrow Rust status ABI while preserving C diagnostics, Windows read-only handling, and the existing return convention.

Test Plan: cargo test --manifest-path rust/cli/Cargo.toml; cargo clippy --manifest-path rust/cli/Cargo.toml; cargo clippy --manifest-path rust/cli/Cargo.toml --benches; cargo clippy --manifest-path rust/cli/Cargo.toml --tests; make -B -C programs -j2 zstd; make -C tests -j2 test-cli-tests (41 tests); make -B -C programs -j2 zstd-small zstd-frugal.
This commit is contained in:
2026-07-18 05:39:21 +02:00
parent 327272f8b3
commit 52c0eb4b9b
4 changed files with 138 additions and 13 deletions
+3
View File
@@ -11,6 +11,9 @@ mod datagen;
#[path = "../../src/dibio.rs"]
mod dibio;
#[cfg(feature = "cli")]
#[path = "../../src/fileio_backend.rs"]
mod fileio_backend;
#[cfg(feature = "cli")]
#[path = "../../src/fileio_prefs.rs"]
mod fileio_prefs;
#[cfg(any(feature = "benchmark", feature = "helpers"))]