Commit 7020ecc
Allow the customization of sysroot_src in the generated rust-project.… (#3306)
When specifying a local rust toolchain with an unconventional rust-src
location; this attribute will allow you to influence what the
sysroot_src path in the resulting rust-project.json.
In my particular case I'm working in a conda environment which I
configure as a new_local_repo in my project.
There I define a rust toolchain and my rustc sources live in
`$CONDA_PREFIX/lib/rustlib/src/rust/library`. By default, if I'm unable
to provide this path, the resulting sysroot_src in my project ends up
resolving to the equivalent of `$CONDA_PREFIX/library`.
---------
Co-authored-by: Daniel Wagner-Hall <dawagner@gmail.com>1 parent 52d3fd8 commit 7020ecc
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
301 | 302 | | |
302 | 303 | | |
303 | 304 | | |
| |||
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
326 | 331 | | |
327 | 332 | | |
328 | 333 | | |
| |||
336 | 341 | | |
337 | 342 | | |
338 | 343 | | |
| 344 | + | |
339 | 345 | | |
340 | | - | |
341 | 346 | | |
342 | 347 | | |
343 | 348 | | |
| |||
0 commit comments