This is Pygments syntax highlighting for Rust.
Rust's syntax isn't set in stone, so this will probably break sometime. Also I'm not sure that I got everything -- if you find anything that I missed, leave a note in the issues or fork and pull request.
pip install git+git://github.com/startling/pygments-rust.git
This uses Pygment's entry_points
, so you don't have to do anything special.
I liberally stole from both Rust's vim syntax highlighting and the language reference.