5 unstable releases

new 0.4.1 May 3, 2024
0.4.0 Jul 21, 2023
0.3.1 Jul 21, 2023
0.3.0 Nov 25, 2021
0.2.2 Nov 25, 2021

#81 in Network programming

Download history 376399/week @ 2024-01-18 357143/week @ 2024-01-25 368280/week @ 2024-02-01 361116/week @ 2024-02-08 348823/week @ 2024-02-15 388649/week @ 2024-02-22 400214/week @ 2024-02-29 395208/week @ 2024-03-07 414727/week @ 2024-03-14 408371/week @ 2024-03-21 435942/week @ 2024-03-28 430569/week @ 2024-04-04 439540/week @ 2024-04-11 453368/week @ 2024-04-18 434757/week @ 2024-04-25 350696/week @ 2024-05-02

1,762,064 downloads per month
Used in 695 crates (10 directly)

MIT license

32KB
558 lines

Range header parsing

Latest workflow CratesIo

The main goals of this parser is:

  • Follow specification RFC-2616
  • Behave as expected MDN
  • Accuracy - parses headers strictly
  • Security - Never panics, ensured by fuzzing
  • Stability
  • No dependecies

Secondary goals are:

  • Speed
  • Information on why the header was rejected

The parser is strict. Any range where all parts are not syntactically correct and makes sense in the context of the underlying resource will be rejected.

Dev release checklist

  1. Make sure CI passes
  2. Run cargo fuzz cargo +nightly fuzz run random_string_input, at least a minute should be good enough. If it doesn't error out it has passed.
  3. Check msrv with for example cargo msrv, if a higher msrv is wanted/needed, bump it so that it's less than or equal to tower-http's
  4. Update changelog
  5. Update version
  6. Publish

No runtime deps