mime_guess icon indicating copy to clipboard operation
mime_guess copied to clipboard

Reliance on debug output

Open HookedBehemoth opened this issue 10 months ago • 0 comments

This library seems to rely on the debug output of Vecs. It's not advised to rely on that and compiling with -Zfmt-debug=none breaks table generation and calls to UniCase.

https://github.com/abonander/mime_guess/blob/d019881531d3a1aa7060e633e0ff70981f43df74/build.rs#L129-L133

How to recreate:

  1. RUSTFLAGS="-Zfmt-debug=none" cargo +nightly build
  2. get flooded with 44MiB of garbled errors.

HookedBehemoth avatar Apr 21 '25 22:04 HookedBehemoth