| Crates.io | chunkify |
| lib.rs | chunkify |
| version | 0.6.36 |
| created_at | 2025-04-12 15:28:39.635199+00 |
| updated_at | 2025-08-02 13:31:45.732419+00 |
| description | A simple and efficient chunking library for Rust. |
| homepage | |
| repository | https://github.com/crates-dev/chunkify.git |
| max_upload_size | |
| id | 1631030 |
| size | 31,335 |
A simple and efficient chunking library for Rust.
To use this crate, you can run cmd:
cargo add chunkify
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();
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request.
For any inquiries, please reach out to the author at root@ltpp.vip.