First clone the project to create a local copy on your computer.
git clone [email protected]:dsforza96/mini-rust.git
cd mini-rustIf you don't have any SSH key associated to your account, clone it using the HTTPS link:
git clone https://github.com/dsforza96/mini-rust.git
cd mini-rustNow you can compile it using the SML interpreter:
sml
CM.make "mini-rust.cm";With mini-rust you can compile and execute simple programs written in a small sub-language of Rust focused on lifetimes. For example, if you want to execute the file dummy.rs contained in directory examples, you should invoke the command
Rust.run(Rust.compile("examples/dummy.rs"));For more informations read the documentation at docs/relazione.pdf.