I want to import the rust lexer in my code
use syntax;
fn main() { () }
but above code fails to compile
error: failed to resolve imports
testparse.rs:1:4: 1:11 error: unresolved import
testparse.rs:1 use syntax;
^~~~~~~
error: aborting due to 2 previous errors
Can I use libsyntax from user code? If I can, how can I import it?
You need to add the library:
extern mod syntax;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With