diff options
-rw-r--r-- | README.md | 20 | ||||
-rwxr-xr-x | check | 1 |
2 files changed, 16 insertions, 5 deletions
@@ -27,15 +27,25 @@ See <https://subplot.liw.fi/> for the home page. ## Hacking Subplot Subplot is written using the Rust programming language, so the usual -workflow for Rust applies. To build run `cargo build`, to run tests in -Rust run `cargo test`. You probably need to install Rust using rustup: -the version packaged in a Linux distribution is likely too old. +workflow for Rust applies. + +* To build: `cargo build` +* To run tests: `cargo test` +* To format code: `cargo fmt` + +You probably need to install Rust using rustup: the version packaged +in a Linux distribution is likely too old. When you install Rust, +ensure you have the following installed: + +* `rustc` +* `cargo` +* `rustfmt` To run the whole test suite, including testing all examples and Subplot self tests, run `./check` at the root of the source tree. -You'll need to install build dependencies installed. On a system -running Debian or a derivative of it: +You'll need to install some build dependencies. On a system running +Debian or a derivative of it: ~~~sh $ sudo apt-get install build-essential git debhelper dh-cargo python3 \ @@ -343,6 +343,7 @@ def check_tooling(r): "pdflatex", "plantuml", "rustc", + "rustfmt", ] for command in commands: if not r.got_command(command): |