# 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 = "2021"
rust-version = "1.74.0"
name = "sqsh-rs"
version = "0.1.2"
authors = ["Zachary Dremann <dremann@gmail.com>"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust wrapper around the libsqsh library"
readme = "README.md"
keywords = [
    "sqsh",
    "libsqsh",
    "compression",
    "archive",
]
categories = ["api-bindings"]
license = "BSD-2-Clause"
repository = "https://github.com/Dr-Emann/sqsh-rs"

[package.metadata.docs.rs]
features = ["zlib"]
no-default-features = true

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

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

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

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

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

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

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

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

[dependencies.bitflags]
version = "2.3"

[dependencies.bstr]
version = "1.5"

[dependencies.libc]
version = "0.2"

[dependencies.sqsh-sys]
version = "0.2"
default-features = false

[dev-dependencies.insta]
version = "1.30"

[features]
default = [
    "zlib",
    "lz4",
    "lzma",
    "zstd",
]
lz4 = ["sqsh-sys/lz4"]
lzma = ["sqsh-sys/lzma"]
zlib = ["sqsh-sys/zlib"]
zstd = ["sqsh-sys/zstd"]
