Syntax and ast API docs


#1

I’ve been reading this great tutorial on writing syntax extensions, but it appears that pretty much all of the syntax extension modules no longer have accessible API docs on rust-lang.org. Is this an oversight/bug or done on purpose? Is there some place else I should be looking?

Thanks,
Andrew


#2

http://manishearth.github.io/rust-internals-docs/rustc/

Also you can build them yourself from a fresh github repo clone, it just takes ages. Edit: The way to do this is

$ git clone https://github.com/rust-lang/rust.git && cd rust && ./configure --enable-compiler-docs && make docs

To update the docs, you can just git pull (from within the rust directory) instead of the clone stuff, then rebuild. Since I’ve got a lot of lookups, I actually do this every now and then. You can also use e.g. make -j 4 if you have a quad core CPU to speed up the build.


#3

Thanks @llogiq