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.
1 parent d3a7025 commit 72f795dCopy full SHA for 72f795d
rust-mode.el
@@ -1502,6 +1502,16 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
1502
(interactive)
1503
(compile "cargo build"))
1504
1505
+(defun rust-run ()
1506
+ "Run using `cargo run`"
1507
+ (interactive)
1508
+ (compile "cargo run"))
1509
+
1510
+(defun rust-test ()
1511
+ "Test using `cargo test`"
1512
1513
+ (compile "cargo test"))
1514
1515
(defvar rust-mode-map
1516
(let ((map (make-sparse-keymap)))
1517
(define-key map (kbd "C-c C-f") 'rust-format-buffer)
0 commit comments