diff options
| author | Alyssa Ross <hi@alyssa.is> | 2020-12-04 15:03:24 +0000 |
|---|---|---|
| committer | brotzeit <brotzeitmacher@gmail.com> | 2020-12-04 16:27:12 +0100 |
| commit | ca415e9a7877538de5b34e9eaabf83ffb210b820 (patch) | |
| tree | e1763dba266f0d1ce9bc35cdab91e00e79b95842 | |
| parent | ca7d99c6fd90fc1e636aa9d4020a2f077786a0c3 (diff) | |
| download | rust-mode-ca415e9a7877538de5b34e9eaabf83ffb210b820.tar.gz | |
Add rust-check function
Because check exists and is so much faster, I only ever want to build
when I want to test the binary, in which case I'd use run. So I think
it's more useful to have a rust-check function available than it is to
even have rust-compile.
| -rw-r--r-- | rust-mode.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rust-mode.el b/rust-mode.el index 2c89b97..90fac82 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -1910,6 +1910,11 @@ Return the created process." default-directory))) (compile (apply #'format format-string args)))) +(defun rust-check () + "Compile using `cargo check`" + (interactive) + (rust--compile "%s check" rust-cargo-bin)) + (defun rust-compile () "Compile using `cargo build`" (interactive) |
