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 PR changes the behaviour of
cargo-ledger
to always check whether thenanos
,nanox
,nanosplus
custom target files from the Rust SDK are present in the rustup toolchain (therustc --print sysroot
folder). If they are not present,cargo-ledger
will usecurl
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 https://github.com/rust-lang/rust/pull/83800