Parsing rust in rust?

73 points cat__lynn

In languages like Go or Python there is a builtin library to parse source code of that language, get an AST, do some transforms on it, and write it out again.

Is there a crate in rust to do that? How would I do that in rust?

Meaning: How would I transform rust code in rust?