cerniera 0.1.0

A ZIP archive encoder that never copies your data
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "cerniera"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A ZIP archive encoder that never copies your data"
readme = "README.md"
keywords = [
    "zip",
    "archive",
    "streaming",
    "zero-copy",
]
categories = [
    "compression",
    "encoding",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/M4SS-Code/cerniera"

[package.metadata.docs.rs]
all-features = true

[features]
default = ["std"]
jiff = ["dep:jiff"]
std = ["crc32fast/std"]

[lib]
name = "cerniera"
path = "src/lib.rs"

[[example]]
name = "deflate_zip"
path = "examples/deflate_zip.rs"
required-features = ["jiff"]

[[example]]
name = "sendfile_zip"
path = "examples/sendfile_zip.rs"
required-features = ["jiff"]

[[example]]
name = "write_zip"
path = "examples/write_zip.rs"

[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"

[dependencies.bytes]
version = "1"
default-features = false

[dependencies.crc32fast]
version = "1.2"
default-features = false

[dependencies.futures-core]
version = "0.3"
default-features = false

[dependencies.jiff]
version = "0.2"
optional = true
default-features = false

[dependencies.pin-project-lite]
version = "0.2"

[dev-dependencies.flate2]
version = "1"

[dev-dependencies.futures-util]
version = "0.3"
default-features = false

[dev-dependencies.jiff]
version = "0.2"

[dev-dependencies.memmap2]
version = "0.9"

[dev-dependencies.nix]
version = "0.31"
features = ["zerocopy"]

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
    "io-util",
    "fs",
]

[dev-dependencies.zip]
version = "8"
features = ["deflate-flate2"]
default-features = false

[lints.clippy]
await_holding_refcell_ref = "deny"
clone_on_ref_ptr = "warn"
map_unwrap_or = "warn"
module_name_repetitions = "allow"
needless_lifetimes = "warn"
needless_raw_string_hashes = "warn"
redundant_closure_for_method_calls = "warn"
semicolon_if_nothing_returned = "warn"
str_to_string = "warn"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unreachable_pub = "deny"
unsafe_code = "deny"