Crates.io | async-compression |
lib.rs | async-compression |
version | 0.4.31 |
created_at | 2019-05-14 17:10:23.835669+00 |
updated_at | 2025-09-25 10:16:38.834471+00 |
description | Adaptors between compression crates and Rust's modern asynchronous IO types. |
homepage | |
repository | https://github.com/Nullus157/async-compression |
max_upload_size | |
id | 134350 |
size | 414,121 |
This crate provides adaptors between compression crates and Rust's modern asynchronous IO types.
When developing you will need to enable appropriate features for the different
test cases to run, the simplest is cargo test --all-features
, but you can
enable different subsets of features as appropriate for the code you are
testing to avoid compiling all dependencies, e.g. cargo test --features tokio,gzip
.
To prepare for a pull request, you can run several other checks:
fmt
cargo fmt --all
cargo clippy --no-deps
build
cargo build --lib --all-features
nextest
cargo --locked nextest run --workspace --all-features
hack check
cargo hack check --workspace --feature-powerset --all-targets --skip 'all,all-algorithms,all-implementations'
wasm32
- Linux only
gh release download --repo WebAssembly/wasi-sdk --pattern 'wasi-sysroot-*.tar.gz'
mkdir -p wasi-sysroot
tar xf wasi-sysroot-*.tar.gz --strip-components=1 -C wasi-sysroot
rustup target add wasm32-wasip1-threads
export "CFLAGS_wasm32_wasip1_threads=--sysroot=\"${PWD}/wasi-sysroot\" -I\"${PWD}/wasi-sysroot/include/wasm32-wasip1-threads\" -L-I\"${PWD}/wasi-sysroot/lib/wasm32-wasip1-threads\""
cargo build --lib --features all-implementations,brotli,bzip2,deflate,gzip,lz4,lzma,xz,zlib,zstd,deflate64 --target wasm32-wasip1-threads
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.