rhwp-codec-resource 0.1.1

Request-scoped fallible allocation and work hooks for rhwp PDF codecs
Documentation
  • Coverage
  • 27.78%
    10 out of 36 items documented0 out of 34 items with examples
  • Size
  • Source code size: 17.0 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 241.3 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • edwardkim/rhwp
    4163 810 295
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • edwardkim

rhwp-codec-resource

Internal fallible allocation and work hooks for the PDF codec forks in #8183. The caller enters a synchronous, thread-local scope with the originating request's budget. Nested scopes restore the previous budget on drop; guards cannot move to another thread. This is not a global allocator or a process heap/RSS limit.

The scoped feature requires std and works on Native and wasm32. With that feature disabled, helpers retain checked arithmetic and fallible allocation but do not install a request budget. The PDF importer uses scoped for opted-in codecs and checks its sticky request error before returning codec errors.