# 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 believe there's an error in this file please file an
# issue against the rust-lang/cargo repository. If you're
# editing this file be aware that the upstream Cargo.toml
# will likely look very different (and much more reasonable)

[package]
edition = "2018"
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"
homepage = "https://github.com/luizirber/niffler"
documentation = "https://docs.rs/niffler"
readme = "README.md"
license = "MIT/Apache-2.0"
repository = "https://github.com/luizirber/niffler"

[[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"]
[dependencies.bgzip]
version = "0.1"
optional = true

[dependencies.bzip2]
version = "0.4.1"
optional = true

[dependencies.cfg-if]
version = "1.0"

[dependencies.enum_primitive]
version = "0.1.1"

[dependencies.flate2]
version = "1.0"
optional = true

[dependencies.thiserror]
version = "1.0"

[dependencies.xz2]
version = "0.1"
optional = true
[dev-dependencies.criterion]
version = "0.3"

[dev-dependencies.tempfile]
version = "3"

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