You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* New Cargo build system.
* Fix wrapping of commands in GitHub flavored markdown.
* Minor fixes to unittests for Rust 1.16.
* Add support for "cargo check".
* Support clippy for on-save checking.
* Fix on-save syntax check running clippy multiple times.
* Add ability to configure cargo build features.
* Support setting environment variables.
This includes a dependency on shellenv to capture the user's environment from their login shell.
* Normalize paths when dealing with settings.
This fixes some problems running tests on Windows.
* Disable on-load message display for tests.
This was causing random breakage (particularly on Windows).
* Fix race condition in tests manifested on linux.
* Add support for custom build variants.
This includes some significant changes to how the current
package is selected. It should work a little better if you
have multiple packages.
* Add support for a default path/package.
* Add "Automatic" build variant.
* Stop looking for JSON output during Cargo build once compile is finished.
This fixes issues with "cargo run" if your program outputs { at the start of a line.
* Better fix for checking when we should stop looking for JSON output.
The previous fix caused issues with Clippy.
* Remove debug print left behind.
* Minor updates for rust 1.17.
* Change message tests to check the region of the message.
* Fix error highlighting for nested macros.
* Fix clearing of error regions.
* Add rust_phantom_style and rust_region_style config settings.
Fixes#182.
* Honor show_errors_inline config setting for Cargo build.
* Fix links in messages that are surrounded by angled brackets.
* Consolidate all Cargo config commands into a single command.
Add commands to configure extra arguments and environment variables.
* Document the new build configure command.
Also document the `default_path` option.
* On-save syntax checking now uses configuration settings from the build
system.
* Finish documenting all settings, and include link to new build docs.
* Fix Cargo environment variable config command when selecting "all build
commands".
* Only print warning about sublime-project when saving setings.
* Fix target detection for cdylib.
Adapted from #186, thanks @smbolton.
* Update tests for new messages in rust 1.18.
Copy file name to clipboardexpand all lines: README.md
+23-22
Original file line number
Diff line number
Diff line change
@@ -27,20 +27,12 @@ If you can't see `Rust Enhanced` its most likely because you're using Sublime Te
27
27
28
28
## Features
29
29
### Go To Definition
30
-
### Build functionality
31
-
Rust Enhanced has the following build functions:
32
-
- Cargo Check
33
-
- Cargo Run
34
-
- Cargo Script [Cargo Script is needed](https://github.com/DanielKeep/cargo-script)
35
-
- Cargo Test
36
-
- Cargo Bench
37
-
- Cargo Clean
38
-
- Cargo Release
39
-
- Cargo Document
40
-
- Cargo Clippy
41
-
- Rust
42
-
- Rust Run
30
+
### Cargo Build
31
+
Rust Enhanced has a custom build system tailored for running Cargo. It will display errors and warnings in line using Sublime's phantoms. It also supports a variety of configuration options to control how Cargo is run.
|`no-trans`| Runs the rustc compiler with the `-Zno-trans` option. This will be deprecated soon, however it has the benefit of supporting `#[test]` sections. |
69
+
|`check`| Uses `cargo check` (requires at least Rust 1.16). |
70
+
|`clippy`| Uses `cargo clippy`. This requires [Clippy](https://github.com/Manishearth/rust-clippy) to be installed. This also may be a little slower since it must check every target in your package. |
71
+
72
+
This will use the same configuration options as the "Check" and "Clippy" build variants (for example, extra environment variables, or checking with different features). See [the build docs](docs/build.md) for more information.
74
73
75
74
Projects with multiple build targets are supported too (--lib, --bin, --example, etc.). If a cargo project has several build targets, it will attempt to automatically detect the correct target. In some rare cases, you may need to manually specify which target a file belongs to. This can be done by adding a "projects" setting in `Rust.sublime-settings` with the following format:
76
75
@@ -93,9 +92,11 @@ Projects with multiple build targets are supported too (--lib, --bin, --example,
93
92
```
94
93
95
94
## Settings
96
-
You can customize the behaviour of sublime-rust by creating a settings file in your User package. This can be accessed from within SublimeText by going to the menu Preferences > Browse Packages.... Create a file named Rust.sublime-settings or alternatively copy the default settings file Packages/sublime-rust/Rust.sublime-settings to your User package and edit it to your liking.
95
+
To customize the settings, use the command from the Sublime menu:
Note: File names are case-sensitive on some platforms (e.g. Linux) so the file name should be exactly Rust.sublime-settings with capitalization preserved.
99
+
Additionally, you can customize settings per-project by adding settings to your `.sublime-project`file under the `"settings"` key.
0 commit comments