Documentation for libsyntax & friends?

Google has a cache for syntax::ast and friends:

But the site isn’t up

Is there somewhere else we could look at the documentation for syntax::ast?


1 Like

Is there a reason it’s no longer on the official site?

It’s rustc_private (and marked as such). Thus, you must use nightly to work with it and add a feature flag to your code. Apart from us linting folks and phildawes (who now uses syntex), no one needs it, and it really bloats the documentation, to the tune of several megabytes, IIRC.

It should also be easy to build locally, right?

Yep: configure --enable-compiler-docs && make docs

It’s not difficult, it just takes forever. (I typically need these docs when updating plugins to a new rustc nightly, so I’d need to rebuild to get up-to-date docs.)

That’s not true. Any crate that defines a compiler plugin (not just lints) could also benefit from it, of which I maintain several. (There are others too, I think Servo has a few?)

Ok, I stand corrected. :blush: But the vast majority of Rustaceans won’t write any non-lint compiler plugin soon.

it could also be used for other things analysing syntax

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.