35 releases (5 breaking)

Uses new Rust 2024

0.6.37 Oct 17, 2025
0.6.7 Jul 30, 2025

#4 in #http-file

Download history 163/week @ 2025-07-06 159/week @ 2025-07-13 42/week @ 2025-07-20 1928/week @ 2025-07-27 644/week @ 2025-08-03 52/week @ 2025-08-10 46/week @ 2025-08-17 41/week @ 2025-08-24 38/week @ 2025-08-31 36/week @ 2025-09-07 39/week @ 2025-09-14 13/week @ 2025-09-21 29/week @ 2025-09-28 29/week @ 2025-10-05 113/week @ 2025-10-12 103/week @ 2025-10-19

279 downloads per month
Used in 3 crates (via hyperlane-utils)

MIT license

18KB
236 lines

chunkify

Official Documentation

Api Docs

A simple and efficient chunking library for Rust.

Installation

To use this crate, you can run cmd:

cargo add chunkify

Use

use chunkify::*;

let chunk_strategy: ChunkStrategy<'_> = ChunkStrategy::new(
    0,
    "./uploads",
    "abcdefg",
    "test.txt",
    1,
    |file_id: &str, chunk_index: usize| format!("{file_id}.{chunk_index}"),
)
.unwrap();
chunk_strategy.save_chunk(b"test", 0).await.unwrap();
chunk_strategy.merge_chunks().await.unwrap();

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Contact

For any inquiries, please reach out to the author at root@ltpp.vip.

Dependencies

~5MB
~76K SLoC