forked from rust-lang/rust-enhanced
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RustEnhanced.sublime-settings
25 lines (24 loc) · 1.14 KB
/
RustEnhanced.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
// Enable the syntax checking plugin, which will highlight any errors during build
"rust_syntax_checking": true,
"rust_syntax_checking_include_tests": true,
"rust_syntax_hide_warnings": false,
"rust_syntax_error_color": "#F00",
"rust_syntax_warning_color":"#FF0"
// If your cargo project has several build targets, it's possible to specify mapping of
// source code filenames to the target names to enable syntax checking.
// "projects": {
// // One entry per project. Key is a project name.
// "my_cool_stuff": {
// "root": "/path/to/my/cool/stuff/project", // without trailing /src
// // Targets will be used to replace {target} part in the syntax check command:
// // command = 'cargo rustc {target} -- <some options>'. If no one target matches
// // an empty string will be used.
// "targets": {
// "bin/foo.rs": "--bin foo", // format is "source_code_filename -> target_name"
// "bin/bar.rs": "--bin bar",
// "_default": "--lib" // or "--bin main"
// }
// }
// }
}