Repository: rust-lang/rust-mode (language: rust)

Issue:
Some commands don't respect rust-cargo-bin
The `rust-compile`, `rust-test`, and `rust-run` commands just invoke cargo as `cargo` rather than using the customized value of `rust-cargo-bin`.


Discussion / hints:
I patched my rust-mode.el, all that is needed is a simple 

```
(defun rust-run ()
  "Run using `cargo run`"
  (interactive)
  (compile (concat rust-cargo-bin " run")))
```

etc.

Fix patch:
diff --git a/rust-mode.el b/rust-mode.el
index a5f658ab..c81f4212 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1513,17 +1513,17 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
 (defun rust-compile ()
   "Compile using `cargo build`"
   (interactive)
-  (compile "cargo build"))
+  (compile (format "%s build" rust-cargo-bin)))
 
 (defun rust-run ()
   "Run using `cargo run`"
   (interactive)
-  (compile "cargo run"))
+  (compile (format "%s run" rust-cargo-bin)))
 
 (defun rust-test ()
   "Test using `cargo test`"
   (interactive)
-  (compile "cargo test"))
+  (compile (format "%s test" rust-cargo-bin)))
 
 (defvar rust-mode-map
   (let ((map (make-sparse-keymap)))


Test patch: