use-archive-entry 0.1.0

Archive entry metadata primitives for RustUse
Documentation
  • Coverage
  • 100%
    32 out of 32 items documented1 out of 20 items with examples
  • Size
  • Source code size: 8.45 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 444.98 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s 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-entry

Generic archive entry metadata primitives.

This crate is part of the use-archive facade workspace. It models archive entries as normalized metadata only. It does not read archive containers, inspect filesystem entries, extract files, or apply extraction policies.

Example

use use_archive_entry::{ArchiveEntry, ArchiveEntryKind};

let entry = ArchiveEntry::new("docs/readme.md", ArchiveEntryKind::File).with_size(128);

assert_eq!(entry.path(), "docs/readme.md");
assert_eq!(entry.kind(), ArchiveEntryKind::File);
assert_eq!(entry.size(), Some(128));