Open jyn514 opened 5 years ago
Hmm, I cloned the repo and ran I was compiling cargo +nightly build
and it works fine from there. Not sure why it behaves different when used in a library.mutagen
, not mutagen-plugin
. The plugin shows the same errors.
https://stackoverflow.com/questions/25561137/how-to-write-a-custom-attribute-that-injects-code-into-a-function#25563608 suggests using the syntax
crate instead, not sure if that's a workable solution.
I have an unfinished rewrite using the syn
and quote
crates, but stopped working on it due to some architectural discussions with @power-fungus that have not yet been resolved. Guess I should resume working on it.
When I try to run
cargo +nightly test
, I get a whole slew of errors:cargo +nightly --version
:cargo 1.37.0-nightly (545f35425 2019-05-23)
rustup run nightly rustc --version
:rustc 1.37.0-nightly (d132f544f 2019-06-07)
mutagen-plugin
version:v0.1.2
My code in
src/main.rs
:My code in
src/lex.rs
: