emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode ca415e9 470/486: Add rust-check function


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode ca415e9 470/486: Add rust-check function
Date: Sat, 7 Aug 2021 09:26:16 -0400 (EDT)

branch: elpa/rust-mode
commit ca415e9a7877538de5b34e9eaabf83ffb210b820
Author: Alyssa Ross <hi@alyssa.is>
Commit: brotzeit <brotzeitmacher@gmail.com>

    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.
---
 rust-mode.el | 5 +++++
 1 file changed, 5 insertions(+)

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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]