new file mode 100644
@@ -0,0 +1,5 @@
+[source.crates-io]
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = "rust/vendored"
@@ -64,3 +64,6 @@
[submodule "roms/vbootrom"]
path = roms/vbootrom
url = https://git.qemu.org/git/vbootrom.git
+[submodule "rust/vendored"]
+ path = rust/vendored
+ url = https://github.com/elmarco/qemu-rust-vendored.git
@@ -1932,6 +1932,14 @@ if test "$with_rust" = auto && has cargo; then
with_rust=yes
fi
+case "$with_rust" in
+ yes)
+ if test -e "${source_path}/.git" && test $git_update = 'yes' ; then
+ git_submodules="${git_submodules} rust/vendored"
+ fi
+ ;;
+esac
+
# Check that the C compiler works. Doing this here before testing
# the host CPU ensures that we had a valid CC to autodetect the
# $cpu var (and we should bail right here if that's not the case).
new file mode 160000
@@ -0,0 +1 @@
+Subproject commit 71ee65d042606d18de3175d67f9e4e4b78a1f865
@@ -51,6 +51,7 @@ def build_lib(args: argparse.Namespace) -> None:
target_dir,
"--manifest-path",
manifest_path,
+ "--offline",
]
if args.target_triple:
cargo_cmd += ["--target", args.target_triple]