summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rust-mode.el5
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)