-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Scarb smarter when searching for Cargo binary (#1338)
This commit borrows the logic for looking for Cargo from Rust Analyzer, via its published `ra_ap_toolchain` crate. This change makes Scarb aware of: 1. The `CARGO` environment variable 2. The relatively well-known `$CARGO_HOME` directory This should make Scarb succeed to run `cargo fetch`/`build` when being run outside the interactive shell (i.e. without environment set by `rustup`). This includes running Scarb from CairoLS that is being run from a desktop application (like VSCode launched from macOS Dock). Signed-off-by: Marek Kaput <marek.kaput@swmansion.com>
- Loading branch information
Showing
4 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters