about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-08-27 18:28:09 +0200
committerLukas Wirth <lukastw97@gmail.com>2022-10-19 23:21:29 +0200
commit7e2c41dbd68014acbf91c2657a975c5a4b486da9 (patch)
tree62f814c69442d2f5a9fe47bf22e818f935958bf5 /docs
parent40cbeb5b3d1ec37e8857844e43c75b6980f588e3 (diff)
downloadrust-7e2c41dbd68014acbf91c2657a975c5a4b486da9.tar.gz
rust-7e2c41dbd68014acbf91c2657a975c5a4b486da9.zip
Implement invocation strategy config for build scripts
Diffstat (limited to 'docs')
-rw-r--r--docs/user/generated_config.adoc11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc
index acf0aaea859..a5307b63151 100644
--- a/docs/user/generated_config.adoc
+++ b/docs/user/generated_config.adoc
@@ -24,6 +24,17 @@ Automatically refresh project info via `cargo metadata` on
 --
 Run build scripts (`build.rs`) for more precise code analysis.
 --
+[[rust-analyzer.cargo.buildScripts.invocationStrategy]]rust-analyzer.cargo.buildScripts.invocationStrategy (default: `"per_workspace"`)::
++
+--
+Specifies the invocation strategy to use when running the build scripts command.
+If `per_workspace_with_manifest_path` is set, the command will be executed for each
+workspace, `--manifest-path {workspace-dir}` will be passed to the invoked command and
+the command will be executed from the project root.
+If `per_workspace` is set, the command will be executed for each workspace and the
+command will be executed from the corresponding workspace root.
+If `once_in_root` is set, the command will be executed once in the project root.
+--
 [[rust-analyzer.cargo.buildScripts.overrideCommand]]rust-analyzer.cargo.buildScripts.overrideCommand (default: `null`)::
 +
 --