[package]
edition = "2021"
rust-version = "1.76"
name = "compression-rs"
version = "0.2.4"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
"src/**/*",
"examples/**/*",
"tests/**/*",
"swift-bridge/Package.swift",
"swift-bridge/Sources/**/*",
"build.rs",
"Cargo.toml",
"README.md",
"LICENSE-*",
"CHANGELOG.md",
"COVERAGE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's Compression and AppleArchive APIs on macOS"
homepage = "https://github.com/doom-fish/compression-rs"
readme = "README.md"
keywords = [
"compression",
"applearchive",
"macos",
"lzfse",
"brotli",
]
categories = [
"compression",
"api-bindings",
"os::macos-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/compression-rs"
[package.metadata.docs.rs]
all-features = true
default-target = "aarch64-apple-darwin"
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[badges.maintenance]
status = "actively-developed"
[features]
default = []
raw-ffi = []
[lib]
name = "compression"
crate-type = ["lib"]
path = "src/lib.rs"
[[example]]
name = "01_roundtrip"
path = "examples/01_roundtrip.rs"
[[example]]
name = "02_compression_encode_one_shot"
path = "examples/02_compression_encode_one_shot.rs"
[[example]]
name = "03_compression_decode_one_shot"
path = "examples/03_compression_decode_one_shot.rs"
[[example]]
name = "04_aa_archive_stream_roundtrip"
path = "examples/04_aa_archive_stream_roundtrip.rs"
[[example]]
name = "05_aa_byte_stream_pipeline"
path = "examples/05_aa_byte_stream_pipeline.rs"
[[example]]
name = "06_aa_entry_stream_path_list"
path = "examples/06_aa_entry_stream_path_list.rs"
[[example]]
name = "07_aa_field_key_set"
path = "examples/07_aa_field_key_set.rs"
[[example]]
name = "08_aa_header_roundtrip"
path = "examples/08_aa_header_roundtrip.rs"
[[example]]
name = "09_aa_entry_blobs"
path = "examples/09_aa_entry_blobs.rs"
[[example]]
name = "10_aea_roundtrip"
path = "examples/10_aea_roundtrip.rs"
[[example]]
name = "11_aa_custom_stream_callbacks"
path = "examples/11_aa_custom_stream_callbacks.rs"
[[test]]
name = "aa_archive_stream_tests"
path = "tests/aa_archive_stream_tests.rs"
[[test]]
name = "aa_byte_stream_tests"
path = "tests/aa_byte_stream_tests.rs"
[[test]]
name = "aa_entry_blob_tests"
path = "tests/aa_entry_blob_tests.rs"
[[test]]
name = "aa_entry_stream_tests"
path = "tests/aa_entry_stream_tests.rs"
[[test]]
name = "aa_field_key_tests"
path = "tests/aa_field_key_tests.rs"
[[test]]
name = "aa_header_tests"
path = "tests/aa_header_tests.rs"
[[test]]
name = "aea_tests"
path = "tests/aea_tests.rs"
[[test]]
name = "compression_decode_tests"
path = "tests/compression_decode_tests.rs"
[[test]]
name = "compression_encode_tests"
path = "tests/compression_encode_tests.rs"
[[test]]
name = "compression_stream_tests"
path = "tests/compression_stream_tests.rs"
[[test]]
name = "custom_stream_tests"
path = "tests/custom_stream_tests.rs"
[dependencies]
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
[profile.release]
debug = 2
strip = "none"