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
,uncolouredRust
, orboxed
, e.g.Please note: uncolouredRust will render with no additional colours. Use of this fork rather than the main project will result in a lack of blue hghlights on more delimiters whilst using colouredRust and boxed modes.\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.