use-archive-path 0.1.0

Archive-internal path safety checks for RustUse
Documentation
  • Coverage
  • 100%
    11 out of 11 items documented1 out of 5 items with examples
  • Size
  • Source code size: 7.29 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 350.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-archive
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

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

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"));