# 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" name = "autocompress" version = "0.6.0" exclude = ["testfiles"] description = "Automatically select suitable decoder from magic bytes or encoder from file extension." homepage = "https://github.com/informationsea/autocompress-rs" readme = "README.md" keywords = [ "gzip", "zstd", "bzip2", "compress", "decompress", ] categories = [ "compression", "encoding", ] license = "Apache-2.0" repository = "https://github.com/informationsea/autocompress-rs" [package.metadata.docs.rs] rustdoc-args = [ "--cfg", "doc_cfg", ] [dependencies.bgzip] version = "0.3.1" optional = true default-features = false [dependencies.bzip2] version = "0.4.4" optional = true [dependencies.flate2] version = "1.0.26" optional = true default-features = false [dependencies.once_cell] version = "1.18.0" [dependencies.rayon] version = "1.8.0" optional = true [dependencies.thiserror] version = "1.0.40" [dependencies.tokio] version = "1.29.1" features = [ "io-util", "io-std", "sync", ] optional = true [dependencies.xz2] version = "0.1.7" optional = true [dependencies.zstd] version = "0.13.0" optional = true [dev-dependencies.anyhow] version = "1.0.71" [dev-dependencies.clap] version = "4" features = [ "derive", "cargo", ] [dev-dependencies.tokio] version = "1.29.1" features = ["full"] [features] additionaltest = [] bgzip = [ "dep:bgzip", "flate2", "bgzip/rust_backend", ] bgzip_libdeflater = [ "dep:bgzip", "flate2", "bgzip/libdeflater", ] bzip2 = ["dep:bzip2"] cloudflare_zlib = [ "flate2/cloudflare_zlib", "flate2", ] default = ["full"] flate2 = ["dep:flate2"] full = [ "bzip2", "gzip", "xz", "zstd", "bgzip", "tokio", "tokio_fs", "rayon", ] gzip = ["gzip_rust_backend"] gzip_rust_backend = [ "flate2/rust_backend", "flate2", ] rayon = ["dep:rayon"] tokio = ["dep:tokio"] tokio_fs = [ "tokio/fs", "tokio", ] xz = ["dep:xz2"] zlib = [ "flate2/zlib", "dep:flate2", ] zlib-ng = [ "flate2/zlib-ng", "dep:flate2", ] zlib-ng-compat = [ "flate2/zlib-ng-compat", "flate2", ] zstd = ["dep:zstd"]