diff options
| author | onur-ozkan <work@onurozkan.dev> | 2024-12-04 16:01:04 +0300 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2024-12-04 16:02:07 +0300 |
| commit | a6aaef14e6ea27b2051b2870acb62fd0553be17f (patch) | |
| tree | be86435c0399c130f73383f346983286f0544d31 | |
| parent | 30847ebb255abbda590460e86a21b7b1c7c3b273 (diff) | |
| download | rust-a6aaef14e6ea27b2051b2870acb62fd0553be17f.tar.gz rust-a6aaef14e6ea27b2051b2870acb62fd0553be17f.zip | |
update `build.vendor` documentation
Signed-off-by: onur-ozkan <work@onurozkan.dev>
| -rw-r--r-- | config.example.toml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/config.example.toml b/config.example.toml index 9ec0d77e79b..5ea6774ce03 100644 --- a/config.example.toml +++ b/config.example.toml @@ -311,9 +311,8 @@ # Indicate whether the vendored sources are used for Rust dependencies or not. # # Vendoring requires additional setup. We recommend using the pre-generated source tarballs if you -# want to use vendoring. See -# https://forge.rust-lang.org/infra/other-installation-methods.html#source-code. -#vendor = false +# want to use vendoring. See https://forge.rust-lang.org/infra/other-installation-methods.html#source-code. +#vendor = if "is a tarball source" && "vendor" dir exists && ".cargo/config.toml" file exists { true } else { false } # Typically the build system will build the Rust compiler twice. The second # compiler, however, will simply use its own libraries to link against. If you |
