[package]
name = "niffler"
version = "2.3.0"
authors = ["Pierre Marijon <pierre@marijon.fr>", "Luiz Irber <luiz.irber@gmail.com>"]
description = "Simple and transparent support for compressed files"
license = "MIT/Apache-2.0"
repository = "https://github.com/luizirber/niffler"
homepage = "https://github.com/luizirber/niffler"
readme = "README.md"
documentation = "https://docs.rs/niffler"
edition = "2018"

[features]
default = ["bz2", "lzma", "gz", "bgz"]
bz2 = ["bzip2"]
lzma = ["xz2"]
gz = ["flate2"]
bgz = ["bgzip"]

[dependencies]
cfg-if = "1.0"
enum_primitive = "0.1.1"
thiserror = "1.0"
bzip2 = { version = "0.4.1", optional = true }
flate2 = { version = "1.0", optional = true }
xz2 = { version = "0.1", optional = true }
bgzip = { version = "0.1", optional = true }

[dev-dependencies]
tempfile = "3"
criterion = "0.3"

[[bench]]
name = "detect_format"
harness = false

[[bench]]
name = "gzip"
harness = false
required-features = ["gz"]

[[bench]]
name = "bzip2"
harness = false
required-features = ["bz2"]

[[bench]]
name = "lzma"
harness = false
required-features = ["xz2"]
