A Rust language and style specification for the LaTeX-package listings
- place the
listings-rust.sty
wherelatex
can find it - import
listings
andlistings-rust
in your LaTeX document with\usepackage{listings, listings-rust}
- select the language
Rust
in thelstlistings
environment, e.g.\begin{lstlisting}[language=Rust] // your source code \end{lstlisting}
- optional: select one of the styles
colouredRust
orboxed
, e.g.\begin{lstlisting}[language=Rust, style=boxed] // your source code \end{lstlisting}
Currently there is only the style-file itself and the example document listings-style.tex
for documentation.