cargo: never contact the registry

It's forbidden to access the network during the build phase in bitbake.
Since this version of cargo does not yet support source-replacement, we
must patch out the behavior instead.
This commit is contained in:
Steven Walter
2016-09-02 15:11:06 -04:00
committed by Steven Walter
parent cb753fc536
commit 1059968d25
2 changed files with 89 additions and 0 deletions
+1
View File
@@ -4,6 +4,7 @@ require cargo.inc
SRC_URI += " \
git://github.com/rust-lang/cargo.git;protocol=https;name=cargo \
file://0001-disable-cargo-snapshot-fetch.patch \
file://0001-Never-update-the-registry-index.patch \
git://github.com/rust-lang/rust-installer.git;protocol=https;name=rust-installer;destsuffix=${S}/src/rust-installer \
"
# Compatible with Rust 1.10.0