Crate better_limit_reader
source ·Expand description
§better-limit-reader
Exposes LimitReader
which is a limit reader, that protects against zip-bombs and other nefarious activities.
This crate is heavily inspired by Jon Gjengset’s “Crust of Rust” episode on the inner workings of git on YouTube (https://youtu.be/u0VotuGzD_w?si=oIuV9CITSWHJXKBu&t=3503) and mitigrating Zip-bombs.
Modules§
- Re-exports Traits and macros used by most projects. Add
use better_limit_reader::prelude::*;
to your code to quickly get started with LimitReader.
Macros§
- Implement provided Error type with a suitable
ErrorKind
Structs§
- The LimitReader reads into
buf
which is held within the record struct. LimitReader
’s output- Builder for
LimitReaderOutput
.
Enums§
- Error type for LimitReaderOutputBuilder
Type Aliases§
- Default result type for
LimitReader