cleanup cargo hacks for build

This commit is contained in:
bunnie 2025-08-10 01:55:41 +08:00
parent 381b7ec90e
commit 275e4c7af6

View file

@ -349,41 +349,6 @@ impl Builder {
self.run_svd2repl = false;
self.loader = CrateSpec::Local("loader".to_string(), LoaderRegion::Ram);
self.kernel = CrateSpec::Local("xous-kernel".to_string(), LoaderRegion::Ram);
search_and_replace_in_file("services/aes/Cargo.toml", "default = []", "default = [\"cramium-soc\"]")
.expect("couldn't patch AES");
// this is needed because we don't have an ed25519 accelerator on cramium targets
search_and_replace_in_file(
"Cargo.toml",
"[patch.crates-io.curve25519-dalek]",
"# [patch.crates-io.curve25519-dalek]",
)
.expect("couldn't patch curve25519");
search_and_replace_in_file(
"Cargo.toml",
"git = \"https://github.com/betrusted-io/curve25519-dalek.git\"",
"# git = \"https://github.com/betrusted-io/curve25519-dalek.git\"",
)
.expect("couldn't patch curve25519");
search_and_replace_in_file(
"Cargo.toml",
"branch = \"main\" # c25519",
"# branch = \"main\" # c25519",
)
.expect("couldn't patch curve25519");
search_and_replace_in_file(
"services/root-keys/Cargo.toml",
"features = [\"auto-release\", \"warn-fallback\"]",
"# features = [\"auto-release\", \"warn-fallback\"]",
)
.expect("couldn't patch rootkeys");
search_and_replace_in_file(
"services/shellchat/Cargo.toml",
"features = [\"auto-release\", \"warn-fallback\"]",
"# features = [\"auto-release\", \"warn-fallback\"]",
)
.expect("couldn't patch shellchat");
self
}