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
Copy file name to clipboardExpand all lines: docs/build.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,7 @@ are:
56
56
57
57
Command | Description
58
58
------- | -----------
59
+
Rust: Set Default Path | Set the default Cargo package to build. If not specified, then it will detect it from the current view, or display a panel to choose from.
59
60
Rust: Set Cargo Target | Set the Cargo target (`--lib`, `--example foo`, etc.) for each build variant. The "Automatic Detection" option will attempt to determine which target to use based on the current active view in Sublime (a test file will use `--test` or a binary will use `--bin`, etc.).
60
61
Rust: Set Cargo Build Profile | Set whether or not to use the `--release` flag.
61
62
Rust: Set Cargo Target Triple | Set the target triple (such as `x86_64-apple-darwin`).
@@ -89,7 +90,7 @@ An example of a `sublime-project` file:
89
90
"settings": {
90
91
"cargo_build": {
91
92
"paths": {
92
-
"path/to/package": {
93
+
"/path/to/package": {
93
94
"defaults": {
94
95
"release": true
95
96
},
@@ -117,7 +118,7 @@ The available settings are:
117
118
118
119
Setting Name | Description
119
120
------------ | -----------
120
-
`working_dir` | The directory where to run Cargo. If not specified, attempts to detect from the active view, or displays a panel to choose a Cargo package.
121
+
`working_dir` | The directory where to run Cargo. If not specified, uses the value from `default_path`, otherwise attempts to detect from the active view, or displays a panel to choose a Cargo package.
121
122
`script_path` | Path to a `.rs` script, used by `cargo script` if you want to hard-code a specific script to run.
122
123
`release` | If true, uses the `--release` flag.
123
124
`target_triple` | If set, uses the `--target` flag with the given value.
0 commit comments