Home Explore Blog CI



neovim

4th chunk of `runtime/doc/ft_rust.txt`
96cc28a34e349c059999cf678a09af4edc7f70130910e4ef0000000100000fa5
 large workspace, Cargo commands may take more time,
	plus the Syntastic error list may include all the crates in the
	workspace. >vim
            let g:rust_cargo_avoid_whole_workspace = 0
<
                                              *g:rust_cargo_check_all_targets*
                                              *b:rust_cargo_check_all_targets*
g:rust_cargo_check_all_targets ~
	When set to 1, the `--all-targets` option will be passed to cargo when
	Syntastic executes it, allowing the linting of all targets under the
	package.
	The default is 0.

                                              *g:rust_cargo_check_all_features*
                                              *b:rust_cargo_check_all_features*
g:rust_cargo_check_all_features ~
	When set to 1, the `--all-features` option will be passed to cargo when
	Syntastic executes it, allowing the linting of all features of the
	package.
	The default is 0.

                                                 *g:rust_cargo_check_examples*
                                                 *b:rust_cargo_check_examples*
g:rust_cargo_check_examples ~
	When set to 1, the `--examples` option will be passed to cargo when
	Syntastic executes it, to prevent the exclusion of examples from
	linting. The examples are normally under the `examples/` directory of
	the crate.
	The default is 0.

                                                    *g:rust_cargo_check_tests*
                                                    *b:rust_cargo_check_tests*
g:rust_cargo_check_tests ~
	When set to 1, the `--tests` option will be passed to cargo when
	Syntastic executes it, to prevent the exclusion of tests from linting.
	The tests are normally under the `tests/` directory of the crate.
	The default is 0.

                                                  *g:rust_cargo_check_benches*
                                                  *b:rust_cargo_check_benches*
g:rust_cargo_check_benches ~
	When set to 1, the `--benches` option will be passed to cargo when
	Syntastic executes it.  The benches are normally under the `benches/`
	directory of the crate.
	The default is 0.

------------------------------------------------------------------------------
Integration with auto-pairs                                    *rust-auto-pairs*

This plugin automatically configures the auto-pairs plugin not to duplicate
single quotes, which are used more often for lifetime annotations than for
single character literals.

                                                  *g:rust_keep_autopairs_default*
g:rust_keep_autopairs_default ~

	Don't override auto-pairs default for the Rust filetype. The default
	is 0.

==============================================================================
COMMANDS                                                       *rust-commands*

Invoking Cargo ~

This plug defines very simple shortcuts for invoking Cargo from with Vim.

:Cargo <args>                                                       *:Cargo*
                Runs `cargo` with the provided arguments.

:Cbuild <args>                                                     *:Cbuild*
                Shortcut for `cargo build` .

:Cclean <args>                                                     *:Cclean*
                Shortcut for `cargo clean` .

:Cdoc <args>                                                         *:Cdoc*
                Shortcut for `cargo doc` .

:Cinit <args>                                                       *:Cinit*
                Shortcut for `cargo init` .

:Crun <args>                                                         *:Crun*
                Shortcut for `cargo run` .

:Ctest <args>                                                       *:Ctest*
                Shortcut for `cargo test` .

:Cupdate <args>                                                   *:Cupdate*
                Shortcut for `cargo update` .

:Cbench <args>                                                     *:Cbench*
                Shortcut

Title: Rust Vim Plugin: Syntastic Options and Cargo Commands
Summary
This section describes various options for integrating with Syntastic, including enabling checks for all targets, features, examples, tests, and benchmarks using Cargo. It also covers integration with the auto-pairs plugin, providing an option to disable overriding default auto-pairing behavior. Finally, it outlines several convenient Vim commands for invoking Cargo, such as :Cargo, :Cbuild, :Cclean, :Cdoc, :Cinit, :Crun, :Ctest, :Cupdate, and :Cbench, which serve as shortcuts for common Cargo operations.