Crates.io | better-limit-reader |
lib.rs | better-limit-reader |
version | 3.0.0 |
source | src |
created_at | 2024-09-05 13:49:31.277767 |
updated_at | 2024-09-08 16:54:22.3534 |
description | Configurable limit reader that limits the number of bytes read from an underlying reader, supporting decompression from Gzip and Zlib compressed via `flate2` |
homepage | https://github.com/bsodmike/better-limit-reader-rs |
repository | https://github.com/bsodmike/better-limit-reader-rs |
max_upload_size | |
id | 1364641 |
size | 48,813 |
Exposes LimitReader which is a limit reader, that protects against zip-bombs and other nefarious activities that limits the number of bytes read from an underlying reader.
This crate is heavily inspired by Jon Gjengset’s “Crust of Rust” episode on the inner workings of git on YouTube and mitigrating Zip-bombs.
It has been said, the name is a bit boisterous, but at least it sets high ambitions for this wee crate.
Refer to the docs for further examples.
no_std
support (?); This needs planning via an issue on Github.This runs a release
build, runs tests and generates docs.
./build.sh
This project is tested against the most recent stable rust version.
This work is licensed under either of
at your option.