[package]
name = "smol-tar"
version = "0.1.6"
edition = "2021"
authors = ["Alexey Naidyonov <alexey.naidyonov@gmail.com>"]
description = "Minimal async tar reader/writer for smol or tokio I/O"
homepage = "https://github.com/growler/smol-tar.rs"
repository = "https://github.com/growler/smol-tar.rs"
documentation = "https://docs.rs/smol-tar"
license = "MIT"
keywords = ["tar", "tarfile", "async"]
readme = "README.md"
include = [
    "src/**",
    "Cargo.toml",
    "README.md",
]
rust-version = "1.85"

[package.metadata.docs.rs]
features = ["futures"]

[features]
default = ["smol"]
smol = ["dep:async-lock", "dep:futures-io"]
tokio = ["dep:tokio", "dep:tokio-stream"]
futures = ["dep:futures"]

[dependencies]
futures-core = "0.3"
futures-sink = "0.3"
pin-project-lite = "0.2"
async-lock = { version = "3.4", optional = true }
futures-io = { version = "0.3", optional = true }
tokio = { version = "1", optional = true, features = ["fs", "io-util", "rt"] }
tokio-stream = { version = "0.1", optional = true }
futures = { version = "0.3", optional = true }

[dev-dependencies]
smol = "2.0"
futures = "0.3"
static_assertions = "1.1"
