mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 02:54:25 +00:00
Moves Craft Anything's crates/formats/src/tarcpio.rs (main 090188d7) into a shared crate with its unit tests, the TAR integration tests from crates/formats/tests, and the archive builders those tests use. The public API is unchanged; CpioChecksum and cpio_with_checksum become public so the app's firmware scanner can keep sharing its checksum allowance. The pax record handling is split out of the walker (same checks, same warnings) to stay under the workspace's cognitive-complexity limit. Serialize is behind an optional `serde` feature. Co-authored-by: Brandon Thomas <echelon@gmail.com> Co-authored-by: Afloat <ShuffleMonkey@163.com> Co-authored-by: BFlat <bombayapirat@gmail.com> Co-authored-by: RRFZ <247457381+Plastic-time@users.noreply.github.com> Co-authored-by: NetterSilver <133535268+Silvertree2010@users.noreply.github.com>
19 lines
591 B
TOML
19 lines
591 B
TOML
[package]
|
|
name = "craft-tar"
|
|
description = "TAR (v7, ustar, GNU long names and base-256 sizes, pax overrides) and cpio (newc, crc, odc) member walkers for hostile input: list members and where their data lies, without extracting. From Craft Anything."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
# `serde`: `Serialize` on the listing types, for apps that report listings as JSON.
|
|
serde = { workspace = true, optional = true }
|
|
|
|
[features]
|
|
serde = ["dep:serde"]
|