libarchive_oxide-core 0.1.0

Frozen trait algebra and sans-IO core: Transform/Filter/Format/EntryReader/EntryWriter. no_std + alloc.
Documentation
  • Coverage
  • 100%
    152 out of 152 items documented0 out of 91 items with examples
  • Size
  • Source code size: 172.1 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.6 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • P4suta/libarchive_oxide
    1 0 11
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • P4suta

libarchive_oxide-core

crates.io docs.rs License: MIT OR Apache-2.0

The no_std + alloc, sans-IO core of libarchive_oxide: the frozen trait algebra and the uncompressed archive formats, with zero external dependencies.

This crate is the foundation the flagship libarchive_oxide builds on. It is an independent, from-scratch pure-Rust reimplementation of what C's libarchive does — not a binding, and not affiliated with the upstream libarchive project.

What it contains

  • The trait algebra — Transform, Filter, Format, EntryReader, EntryWriter, and the shared EntryMeta / EntryKind. Designed as a frozen whole so formats and the write path load without changing any trait.
  • The sans-IO pipeline — every transform is one allocation-free step(input, output) primitive; there is no I/O, no allocation policy, and no dyn in this crate.
  • Uncompressed formats, read and write — tar (ustar/pax/GNU), cpio (newc/odc), ar (GNU/BSD/SysV), and iso9660 (incl. Joliet).

It builds on bare metal (thumbv7em-none-eabi) with no allocator beyond alloc and no third-party crate in any dependency table. Compression codecs, std filesystem extraction, zip/7z, and auto-detection live in the flagship crate, which reuses mature pure-Rust codec crates.

Which crate do I want?

Most users want the std flagship libarchive_oxide instead — it re-exports this crate and adds codecs, extraction, and detection. Depend on libarchive_oxide-core directly only for no_std/embedded targets, or to build your own format on the raw algebra.

Features

Feature Default Effect
std no thin std adaptors (reserved; the crate is no_std + alloc by default)

MSRV

1.81 (requires core::error::Error, stabilized in Rust 1.81). This is the lowest floor in the workspace; zero external dependencies keep it there.

License

Licensed under either of MIT or Apache-2.0 at your option.