Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7f29f01

Browse files
committed
Add docs
1 parent 3468b09 commit 7f29f01

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/user/manual.adoc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,29 @@ Or it is possible to specify vars more granularly:
952952
You can use any valid regular expression as a mask.
953953
Also note that a full runnable name is something like *run bin_or_example_name*, *test some::mod::test_name* or *test-mod some::mod*, so it is possible to distinguish binaries, single tests, and test modules with this masks: `"^run"`, `"^test "` (the trailing space matters!), and `"^test-mod"` respectively.
954954

955+
If needed, you can set different values for different platforms:
956+
```jsonc
957+
"rust-analyzer.runnables.extraEnv": [
958+
{
959+
"platform": "win32", // windows only
960+
env: {
961+
"APP_DATA": "windows specific data"
962+
}
963+
},
964+
{
965+
"platform": ["linux"],
966+
"env": {
967+
"APP_DATA": "linux data",
968+
}
969+
},
970+
{ // for all platforms
971+
"env": {
972+
"APP_COMMON_DATA": "xxx",
973+
}
974+
}
975+
]
976+
```
977+
955978
==== Compiler feedback from external commands
956979

957980
Instead of relying on the built-in `cargo check`, you can configure Code to run a command in the background and use the `$rustc-watch` problem matcher to generate inline error markers from its output.

0 commit comments

Comments
 (0)