Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Download and install custom target JSONs automatically #18

Merged
merged 4 commits into from
Mar 15, 2023

Conversation

yhql
Copy link
Contributor

@yhql yhql commented Jan 31, 2023

This PR changes the behaviour of cargo-ledger to always check whether the nanos, nanox, nanosplus custom target files from the Rust SDK are present in the rustup toolchain (the rustc --print sysroot folder). If they are not present, cargo-ledger will use curl to get them from the SDK's master branch.

After that, the targets are available to cargo from anywhere, with no need to point to a specific folder or use an environment variable, as was previously advised.

This works thanks to rust-lang/rust#83800

@yhql yhql marked this pull request as draft January 31, 2023 12:28
@yhql yhql marked this pull request as ready for review January 31, 2023 13:10
@yhql yhql added the enhancement New feature or request label Jan 31, 2023
@yhql yhql merged commit 8b7a0ea into main Mar 15, 2023
@yhql yhql deleted the custom_target_installer branch March 15, 2023 10:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant