Recently I've been trying to test some ideas for a proc_macro crate I'm building, and despite being able to load the proc_macro crate through the extern crate proc_macro, access to proc_macro APIs is followed by this error:
Out: thread 'main' panicked at 'procedural macro API is used outside of a procedural macro'
Perhaps there could be a command to enable or disable these APIs?
Recently I've been trying to test some ideas for a
proc_macrocrate I'm building, and despite being able to load theproc_macrocrate through theextern crate proc_macro, access toproc_macroAPIs is followed by this error:Perhaps there could be a command to enable or disable these APIs?