zesterer / ariadne

A fancy diagnostics & error reporting crate
https://crates.io/crates/ariadne
MIT License
1.61k stars 72 forks source link

Relax 'static lifetime on custom ReportKind name #44

Closed slavfox closed 1 year ago

slavfox commented 1 year ago

I'm in the process of writing a Python wrapper for ariadne, but ReportKind::Custom has a member with a 'static lifetime, making it impossible to use across FFI boundaries. This change relaxes the 'static lifetime, making it possible to use ReportKind::Custom across FFI.

zesterer commented 1 year ago

Thanks, very useful! Very interested to see the Python wrapper when it's finished, make sure to open a discussion about it!