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§
- prelude
- Re-exports Traits and macros used by most projects. Add
use better_limit_reader::prelude::*;
to your code to quickly get started withLimitReader
.
Macros§
- error_
from - Implement provided Error type with a suitable
ErrorKind
Structs§
- Limit
Reader - The
LimitReader
reads intobuf
which is held within the record struct. - Limit
Reader Output LimitReader
’s output- Limit
Reader Output Builder - Builder for
LimitReaderOutput
.
Enums§
- Limit
Reader Output Builder Error - Error type for LimitReaderOutputBuilder
Type Aliases§
- Limit
Reader Result - Default result type for
LimitReader