Skip to content

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 requested review from NicsTr and kingofpayne January 31, 2023 13:10
@yhql yhql added the enhancement New feature or request label Jan 31, 2023
@yhql yhql force-pushed the custom_target_installer branch from 33faa23 to 1b54fab Compare March 15, 2023 10:19
@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 join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants