We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 54a9c3d + 72f795d commit 8cd18ccCopy full SHA for 8cd18cc
rust-mode.el
@@ -1511,6 +1511,16 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
1511
(interactive)
1512
(compile "cargo build"))
1513
1514
+(defun rust-run ()
1515
+ "Run using `cargo run`"
1516
+ (interactive)
1517
+ (compile "cargo run"))
1518
+
1519
+(defun rust-test ()
1520
+ "Test using `cargo test`"
1521
1522
+ (compile "cargo test"))
1523
1524
(defvar rust-mode-map
1525
(let ((map (make-sparse-keymap)))
1526
(define-key map (kbd "C-c C-f") 'rust-format-buffer)
0 commit comments