tkaitchuck / constrandom

Macro to generate random constants in Rust https://xkcd.com/221/
Apache License 2.0
73 stars 14 forks source link

Make macro Rust stable compatible again #18

Closed vmx closed 4 years ago

vmx commented 4 years ago

Remove the #![feature(proc_macro_quote)] (which is nightly only) with a manual implementation.

This implementation uses call_site() instead of def_site() for the span, as def_site() is also a nightly feature.

Fixes #17.

tkaitchuck commented 4 years ago

@vmx Released as 0.1.11