A Rust language and style specification for the LaTeX-package listings
- place the
listings-rust.stywherelatexcan find it - import
listingsandlistings-rustin your LaTeX document with\usepackage{listings, listings-rust} - select the language
Rustin thelstlistingsenvironment, e.g.\begin{lstlisting}[language=Rust] // your source code \end{lstlisting}
- optional: select one of the styles
colouredRustorboxed, 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.