use-archive-path 0.1.0

Archive-internal path safety checks for RustUse
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# use-archive-path

Archive-internal path safety checks.

This crate is part of the `use-archive` facade workspace. It provides platform-independent string checks for archive entry paths before extraction planning. It does not normalize filesystem paths, touch the filesystem, extract entries, or resolve symlinks.

## Example

```rust
use use_archive_path::is_safe_relative_archive_path;

assert!(is_safe_relative_archive_path("docs/readme.md"));
assert!(!is_safe_relative_archive_path("../secrets.env"));
assert!(!is_safe_relative_archive_path("/etc/passwd"));
assert!(!is_safe_relative_archive_path(r"C:\Users\name\secret.txt"));
```