2020 :group 'rustic-cargo )
2121
2222(defcustom rustic-cargo-check-exec-command " check"
23- " Execute command to run cargo check."
23+ " Execute command to run ` cargo check' ."
2424 :type 'string
2525 :group 'rustic-cargo )
2626
2727(defcustom rustic-cargo-test-exec-command " test"
28- " Execute command to run cargo test."
28+ " Execute command to run ` cargo test' ."
2929 :type 'string
3030 :group 'rustic-cargo )
3131
3232(defcustom rustic-cargo-nextest-exec-command " nextest run"
33- " Execute command to run nextest."
33+ " Execute command to run ` nextest' ."
3434 :type 'string
3535 :group 'rustic-cargo )
3636
3737(defcustom rustic-cargo-run-exec-command " run"
38- " Execute command to run cargo run."
38+ " Execute command to run ` cargo run' ."
3939 :type 'string
4040 :group 'rustic-cargo )
4141
4242(defcustom rustic-cargo-build-exec-command " build"
43- " Execute command to run cargo build."
43+ " Execute command to run ` cargo build' ."
4444 :type 'string
4545 :group 'rustic-cargo )
4646
@@ -95,7 +95,7 @@ If nil then the project is simply created."
9595 :group 'rustic-cargo )
9696
9797(defcustom rustic-cargo-test-disable-warnings nil
98- " Don't show warnings when running ' cargo test'."
98+ " Don't show warnings when running ` cargo test'."
9999 :type 'boolean
100100 :group 'rustic-cargo )
101101
@@ -112,29 +112,29 @@ instead of applying the default arguments from `rustic-default-test-arguments'."
112112 :group 'rustic-cargo )
113113
114114(defcustom rustic-default-test-arguments " --benches --tests --all-features"
115- " Default arguments when running ' cargo test'."
115+ " Default arguments when running ` cargo test'."
116116 :type 'string
117117 :group 'rustic-cargo )
118118
119119(defcustom rustic-cargo-default-install-arguments '(" --path" " ." " --locked" )
120- " Default arguments when running ' cargo install'."
120+ " Default arguments when running ` cargo install'."
121121 :type '(list string)
122122 :group 'rustic-cargo )
123123
124124(defcustom rustic-cargo-check-arguments " --benches --tests --all-features"
125- " Default arguments when running ' cargo check'."
125+ " Default arguments when running ` cargo check'."
126126 :type 'string
127127 :group 'rustic-cargo )
128128
129129(defcustom rustic-cargo-build-arguments " "
130- " Default arguments when running ' cargo build'."
130+ " Default arguments when running ` cargo build'."
131131 :type 'string
132132 :group 'rustic-cargo )
133133
134134(defcustom rustic-cargo-auto-add-missing-dependencies nil
135135 " Automatically adds dependencies to Cargo.toml.
136- This way rustic checks new diagnostics for ' unresolved import'
137- errors and passes the crates to ' cargo add'.
136+ This way rustic checks new diagnostics for ` unresolved import'
137+ errors and passes the crates to ` cargo add'.
138138Currently only working with lsp-mode."
139139 :type 'boolean
140140 :group 'rustic-cargo )
@@ -166,12 +166,12 @@ Currently only working with lsp-mode."
166166 " Buffer name for test buffers." )
167167
168168(defvar rustic-test-arguments " "
169- " Holds arguments for ' cargo test', similar to `compilation-arguments`.
169+ " Holds arguments for ` cargo test', similar to `compilation-arguments`.
170170Tests that are executed by `rustic-cargo-current-test' will also be
171171stored in this variable." )
172172
173173(defvar rustic-test-history nil
174- " Holds previous arguments for ' cargo test', similar to `compile-arguments`." )
174+ " Holds previous arguments for ` cargo test', similar to `compile-arguments`." )
175175
176176(defvar rustic-cargo-test-mode-map
177177 (let ((map (make-sparse-keymap )))
@@ -203,7 +203,7 @@ If ARG is not nil, get input from minibuffer."
203203 (rustic-compilation c (list :buffer buf :process proc :mode mode))))
204204
205205(defun rustic-cargo-nextest-current-test ()
206- " Run ' cargo nextest run' for the test near point."
206+ " Run ` cargo nextest run' for the test near point."
207207 (interactive )
208208 (rustic-compilation-process-live)
209209 (-if-let (test-to-run (setq rustic-test-arguments
@@ -215,7 +215,7 @@ If ARG is not nil, get input from minibuffer."
215215
216216;;;### autoload
217217(defun rustic-cargo-test-run (&optional test-args )
218- " Start compilation process for ' cargo test' with optional TEST-ARGS."
218+ " Start compilation process for ` cargo test' with optional TEST-ARGS."
219219 (interactive )
220220 (rustic-compilation-process-live)
221221 (let* ((command (list (rustic-cargo-bin) rustic-cargo-test-exec-command))
@@ -227,7 +227,7 @@ If ARG is not nil, get input from minibuffer."
227227
228228;;;### autoload
229229(defun rustic-cargo-test (&optional arg )
230- " Run ' cargo test'.
230+ " Run ` cargo test'.
231231
232232If ARG is not nil, use value as argument and store it in
233233`rustic-test-arguments' . When calling this function from
@@ -253,7 +253,7 @@ If ARG is not nil, use value as argument and store it in
253253
254254;;;### autoload
255255(defun rustic-cargo-test-rerun (arg )
256- " Run ' cargo test' with `rustic-test-arguments' ."
256+ " Run ` cargo test' with `rustic-test-arguments' ."
257257 (interactive " P" )
258258 (let ((default-directory (or rustic-compilation-directory default-directory)))
259259 (setq rustic-test-arguments
@@ -284,7 +284,7 @@ If ARG is not nil, use value as argument and store it in
284284
285285;;;### autoload
286286(defun rustic-cargo-current-test ()
287- " Run ' cargo test' for the test near point."
287+ " Run ` cargo test' for the test near point."
288288 (interactive )
289289 (rustic-compilation-process-live)
290290 (-if-let (test-to-run (setq rustic-test-arguments
@@ -390,7 +390,7 @@ If ARG is not nil, use value as argument and store it in
390390
391391;;;### autoload
392392(defun rustic-cargo-outdated (&optional path )
393- " Use ' cargo outdated' to list outdated packages in `tabulated-list-mode' .
393+ " Use ` cargo outdated' to list outdated packages in `tabulated-list-mode' .
394394Execute process in PATH."
395395 (interactive )
396396 (rustic--inheritenv
@@ -627,7 +627,7 @@ exist, and the rest. Return a cons cell of the two parts."
627627 (cons existing-dir (apply 'file-name-concat (cons " " components)))))
628628
629629(defun rustic-create-project (project-path is-new &optional bin )
630- " Run either ' cargo new' if IS-NEW is non-nil, or ' cargo init' otherwise.
630+ " Run either ` cargo new' if IS-NEW is non-nil, or ` cargo init' otherwise.
631631Creates or initializes the directory at the path specified by PROJECT-PATH. If
632632BIN is not nil, create a binary application, otherwise a library."
633633 (let* ((cmd (if is-new " new" " init" ))
@@ -655,14 +655,14 @@ BIN is not nil, create a binary application, otherwise a library."
655655
656656;;;### autoload
657657(defun rustic-cargo-new (project-path &optional bin )
658- " Run ' cargo new' to start a new package in the path specified by PROJECT-PATH.
658+ " Run ` cargo new' to start a new package in the path specified by PROJECT-PATH.
659659If BIN is not nil, create a binary application, otherwise a library."
660660 (interactive " GProject path: " )
661661 (rustic-create-project project-path t bin))
662662
663663;;;### autoload
664664(defun rustic-cargo-init (project-path &optional bin )
665- " Run ' cargo init' to initialize a directory in the path specified by PROJECT-PATH.
665+ " Run ` cargo init' to initialize a directory in the path specified by PROJECT-PATH.
666666If BIN is not nil, create a binary application, otherwise a library."
667667 (interactive " DProject path: " )
668668 (rustic-create-project project-path nil bin))
@@ -676,10 +676,10 @@ If BIN is not nil, create a binary application, otherwise a library."
676676 " Buffer name for run buffers." )
677677
678678(defvar rustic-run-arguments " "
679- " Holds arguments for ' cargo run', similar to `compilation-arguments`." )
679+ " Holds arguments for ` cargo run', similar to `compilation-arguments`." )
680680
681681(defvar rustic-run-history nil
682- " Holds previous arguments for ' cargo run', similar to `compile-history`." )
682+ " Holds previous arguments for ` cargo run', similar to `compile-history`." )
683683
684684(defvar rustic-cargo-run-mode-map
685685 (let ((map (make-sparse-keymap )))
@@ -692,7 +692,7 @@ If BIN is not nil, create a binary application, otherwise a library."
692692
693693;;;### autoload
694694(defun rustic-cargo-run-command (&optional run-args )
695- " Start compilation process for ' cargo run' with optional RUN-ARGS."
695+ " Start compilation process for ` cargo run' with optional RUN-ARGS."
696696 (interactive )
697697 (rustic-compilation-process-live)
698698 (let* ((command (list (rustic-cargo-bin) rustic-cargo-run-exec-command))
@@ -704,7 +704,7 @@ If BIN is not nil, create a binary application, otherwise a library."
704704
705705;;;### autoload
706706(defun rustic-cargo-run (&optional arg )
707- " Run ' cargo run'.
707+ " Run ` cargo run'.
708708
709709If ARG is not nil, use value as argument and store it in `rustic-run-arguments' .
710710When calling this function from `rustic-popup-mode' , always use the value of
@@ -722,7 +722,7 @@ When calling this function from `rustic-popup-mode', always use the value of
722722
723723;;;### autoload
724724(defun rustic-cargo-run-rerun (arg )
725- " Run ' cargo run' with `rustic-run-arguments' ."
725+ " Run ` cargo run' with `rustic-run-arguments' ."
726726 (interactive " P" )
727727 (let ((default-directory (or rustic-compilation-directory default-directory)))
728728 (setq rustic-run-arguments
@@ -733,13 +733,13 @@ When calling this function from `rustic-popup-mode', always use the value of
733733 (rustic-cargo-run-command rustic-run-arguments)))
734734
735735(defun rustic--get-run-arguments ()
736- " Helper utility for getting arguments related to ' examples' directory."
736+ " Helper utility for getting arguments related to ` examples' directory."
737737 (let ((example-name (rustic-cargo-run-get-relative-example-name)))
738738 (when example-name
739739 (concat " --example " example-name))))
740740
741741(defun rustic-cargo-run-get-relative-example-name ()
742- " Run ' cargo run --example' if current buffer within a ' examples' directory."
742+ " Run ` cargo run --example' if current buffer within a ` examples' directory."
743743 (let* ((buffer-project-root (rustic-buffer-crate))
744744 (current-filename (if buffer-file-name
745745 buffer-file-name
@@ -777,7 +777,7 @@ in your project like `pwd'"
777777
778778;;;### autoload
779779(defun rustic-cargo-build (&optional arg )
780- " Run ' cargo build' for the current project, allow configuring
780+ " Run ` cargo build' for the current project, allow configuring
781781`rustic-cargo-build-arguments' when prefix argument (C-u) is enabled."
782782 (interactive " P" )
783783 (when arg
@@ -789,11 +789,11 @@ in your project like `pwd'"
789789 (list :clippy-fix t )))
790790
791791(defvar rustic-clean-arguments nil
792- " Holds arguments for ' cargo clean', similar to `compilation-arguments`." )
792+ " Holds arguments for ` cargo clean', similar to `compilation-arguments`." )
793793
794794;;;### autoload
795795(defun rustic-cargo-clean (&optional arg )
796- " Run ' cargo clean' for the current project.
796+ " Run ` cargo clean' for the current project.
797797
798798If ARG is not nil, use value as argument and store it in `rustic-clean-arguments' .
799799When calling this function from `rustic-popup-mode' , always use the value of
@@ -812,7 +812,7 @@ When calling this function from `rustic-popup-mode', always use the value of
812812
813813;;;### autoload
814814(defun rustic-cargo-check (&optional arg )
815- " Run ' cargo check' for the current project, allow configuring
815+ " Run ` cargo check' for the current project, allow configuring
816816`rustic-cargo-check-arguments' when prefix argument (C-u) is enabled."
817817 (interactive " P" )
818818 (when arg
@@ -824,7 +824,7 @@ When calling this function from `rustic-popup-mode', always use the value of
824824
825825;;;### autoload
826826(defun rustic-cargo-bench ()
827- " Run ' cargo bench' for the current project."
827+ " Run ` cargo bench' for the current project."
828828 (interactive )
829829 (rustic-run-cargo-command (list (rustic-cargo-bin) " bench" )))
830830
@@ -850,11 +850,11 @@ The documentation is built if necessary."
850850; ;; cargo edit
851851
852852(defvar rustic-cargo-dependencies " *cargo-add-dependencies*"
853- " Buffer that is used for adding missing dependencies with ' cargo add'." )
853+ " Buffer that is used for adding missing dependencies with ` cargo add'." )
854854
855855;;;### autoload
856856(defun rustic-cargo-add (&optional arg )
857- " Add crate to Cargo.toml using ' cargo add'.
857+ " Add crate to Cargo.toml using ` cargo add'.
858858If running with prefix command `C-u' , read whole command from minibuffer."
859859 (interactive " P" )
860860 (let* ((base (concat (rustic-cargo-bin) " add " ))
@@ -955,7 +955,7 @@ as string."
955955
956956;;;### autoload
957957(defun rustic-cargo-rm (&optional arg )
958- " Remove crate from Cargo.toml using ' cargo rm'.
958+ " Remove crate from Cargo.toml using ` cargo rm'.
959959If running with prefix command `C-u' , read whole command from minibuffer."
960960 (interactive " P" )
961961 (let* ((command (if arg
@@ -967,7 +967,7 @@ If running with prefix command `C-u', read whole command from minibuffer."
967967
968968;;;### autoload
969969(defun rustic-cargo-upgrade (&optional arg )
970- " Upgrade dependencies as specified in the local manifest file using ' cargo upgrade'.
970+ " Upgrade dependencies as specified in the local manifest file using ` cargo upgrade'.
971971If running with prefix command `C-u' , read whole command from minibuffer."
972972 (interactive " P" )
973973 (let* ((command (if arg
@@ -1009,7 +1009,7 @@ command from minibuffer."
10091009 " Buffer name for install buffers." )
10101010
10111011(defvar rustic-install-arguments " "
1012- " Holds arguments for ' cargo install', similar to `compilation-arguments`.
1012+ " Holds arguments for ` cargo install', similar to `compilation-arguments`.
10131013Installs that are executed by `rustic-cargo-current-install' will also be
10141014stored in this variable." )
10151015
@@ -1028,7 +1028,7 @@ stored in this variable.")
10281028
10291029;;;### autoload
10301030(defun rustic-cargo-install-rerun ()
1031- " Run ' cargo install' with `rustic-install-arguments' ."
1031+ " Run ` cargo install' with `rustic-install-arguments' ."
10321032 (interactive )
10331033 (rustic-compilation-start rustic-install-arguments
10341034 (list :buffer rustic-install-buffer-name
@@ -1037,7 +1037,7 @@ stored in this variable.")
10371037 :directory rustic-install-project-dir)))
10381038;;;### autoload
10391039(defun rustic-cargo-install (&optional arg )
1040- " Install rust binary using ' cargo install'.
1040+ " Install rust binary using ` cargo install'.
10411041If running with prefix command `C-u' , read whole command from minibuffer."
10421042 (interactive " P" )
10431043 (let* ((command (if arg
0 commit comments