Crates.io | pooled-writer |
lib.rs | pooled-writer |
version | 0.3.0 |
source | src |
created_at | 2022-03-04 20:09:57.86119 |
updated_at | 2022-12-23 13:11:39.445999 |
description | Library for using N threads to write to M compressed files/writers. |
homepage | https://github.com/fulcrumgenomics/pooled-writer |
repository | https://github.com/fulcrumgenomics/pooled-writer |
max_upload_size | |
id | 543659 |
size | 40,025 |
A pooled writer and compressor.
This library is intended for scenarios where the number of writers you have is >= the number of threads you want to use for writing.
Note that this is an alpha release and the API could change drastically in future releases.
Please see the generated Rust Docs.
Add the following to your Cargo.toml
dependencies section, updating the version number as needed.
[dependencies]
pooled-writer = "*"
By default this will come with a BGZF compressor. If that is not needed then add the default-features = true
specifier to the dependency declaration above (i.e. pooled-writer = {version = "*", default-features = false}
).
Assuming you have cloned the repo and are in the top level:
cargo test
# The following test is more comprehensive and may take up to 10 minutes to run
cargo test -- --ignored
This assumes that you have installed cargo-release
via cargo install cargo-release
and have set up credentials with crates.io
.
cargo release <patch|minor|major>