-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f83ecb
commit 7cf2fae
Showing
6 changed files
with
49 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,7 +112,6 @@ def get_build_deps(binaries_dir): | |
"unzip", | ||
"rsync", | ||
"gcc", | ||
"cargo", | ||
"opam", | ||
"git", | ||
"autoconf", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env python3 | ||
# SPDX-FileCopyrightText: 2024 Oxhead Alpha | ||
# SPDX-License-Identifier: LicenseRef-MIT-OA | ||
|
||
import subprocess | ||
import os | ||
|
||
os.chdir("tezos/src/rust_deps") | ||
subprocess.run(["cargo-1.78", "vendor"], check=True) | ||
|
||
with open(".cargo/config.toml", "a") as f: | ||
f.write( | ||
""" | ||
[source.crates-io] | ||
replace-with = "vendored-sources" | ||
[source.vendored-sources] | ||
directory = "vendor" | ||
""" | ||
) | ||
|
||
# FIXME dirty hack to make dune copy vendor directory to the build directory | ||
with open("dune", "r") as f: | ||
dune = f.read() | ||
|
||
with open("dune", "w") as f: | ||
f.write(dune.replace("(source_tree .cargo)", "(source_tree .cargo) (source_tree vendor)")) |