zesterer / ariadne

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

Derive some common traits #59

Closed goto-bus-stop closed 1 year ago

goto-bus-stop commented 1 year ago

Derive common traits on some of the simple structs in the crate. I have a use case where I need Source instances to be comparable (for use in a salsa-based project), and this should do the trick.

(I havent applied the traits to other useful things like Report which require more complicated bounds. I could do it if you'd prefer that)

zesterer commented 1 year ago

Thanks!

goto-bus-stop commented 1 year ago

@zesterer thanks for the merge! 😊 do you think ariadne is ready for a new release soon? we would like to use this in https://github.com/apollographql/apollo-rs/pull/414. if you would rather get more changes in before releasing i would be happy to help if possible.