JonathanWoollett-Light / mime2

MIME types that are up to date.
1 stars 0 forks source link

Build fails in a nix build environment #1

Open matthiasbeyer opened 3 weeks ago

matthiasbeyer commented 3 weeks ago

https://github.com/JonathanWoollett-Light/mime2/blob/9287cfda74844e354e8703487bd64dbf227fdd1d/build.rs#L83C4-L83C66

This line panics when building code in a nix environment. I am not sure why the build.rs is required, so maybe you can shed some light onto this?

matthiasbeyer commented 3 weeks ago

For others running into this: I switched to the mediatype crate to solve my issue here.

JonathanWoollett-Light commented 4 hours ago

This should be fixed by https://github.com/JonathanWoollett-Light/mime2/commit/bc4d6731b3ba85d85d6881cf0eff9c220aadd36f as this avoids running the build script unless specified by setting an environment variable.