[package] name = "archflow" version = "0.1.4" edition = "2021" license = "MIT" readme = "README.md" description = "Create a streamable Zip archive" categories = ["compression", "asynchronous", "web-programming"] keywords = ["async", "non-blocking", "zip", "tokio"] homepage = "https://github.com/plrigaux/archflow" [lib] name = "archflow" path = "src/lib.rs" [dependencies] tokio = { version = "1.35", features = ["io-util", "macros", "rt-multi-thread", "fs"]} crc32fast = "1.3" chrono = "0.4" async-compression = {version = "0.4", features = ["all-algorithms", "tokio"], optional = true } flate2 = { version = "1.0.28", default-features = false, features =["rust_backend"], optional = true } bzip2 = { version = "0.4.4", optional = true } xz2 = { version = "0.1.7", optional = true } zstd = { version = "0.13", optional = true } byteorder = { version = "1.5", optional = true } [dev-dependencies] tokio-util = { version = "0.7", default-features = false, features = ["io"] } hyper = { version = "0.14", default-features = false, features = ["tcp", "http1", "server", "stream"] } archflow = { path = ".", features = ["experimental"] } actix-web = "4" mime = "0.3.16" [[example]] name = "fs" path = "examples/fs.rs" [[example]] name = "hyper" path = "examples/hyper.rs" [[example]] name = "actix" path = "examples/actix.rs" [features] default = ["tokio", "std"] std = ["dep:flate2", "dep:zstd", "dep:xz2", "dep:bzip2"] tokio = ["dep:async-compression"] experimental = ["dep:byteorder"]