Rust installation is as easy as they say at https://www.rust-lang.org/learn/get-started But then it’s simply freaking new users out.
I wanted to print out an AST of some simple code. I googled for the snippet, created a project, guessed the dependency format in `Cargo.toml`, and boom. Syntax error. OK, `syn` crate fucks backward compatibility. I rewrote the code, tested it in the playground, copy-pasted it into my `foo.rs` and boom.
`Expr` cannot be formatted using `{:?}` because it doesn't implement `Debug`
1/2
Well, I googled the error message to no luck, I read through the documentation, and I must admit the code from the documentation example https://docs.rs/syn/2.0.38/syn/fn.parse_str.html simply does not compile.
OK, I went back to the playground and ran it from there. The promised AST for `foo(42)` looks like, well, `foo (42)` (notice the space.)
The language itself might (or might not) be brilliant, but the toolchain simply sucks.
Error messages are poor, and documentation is too succinct.
Would not recommend.
Well, I googled the error message to no luck, I read through the documentation, and I must admit the code from the documentation example https://docs.rs/syn/2.0.38/syn/fn.parse_str.html simply does not compile.
OK, I went back to the playground and ran it from there. The promised AST for `foo(42)` looks like, well, `foo (42)` (notice the space.)