From 275e4c7af69f5eedaeae89827332e5a136c1aa24 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 10 Aug 2025 01:55:41 +0800 Subject: [PATCH] cleanup cargo hacks for build --- xtask/src/builder.rs | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/xtask/src/builder.rs b/xtask/src/builder.rs index 4df2015b0..07dfa3029 100644 --- a/xtask/src/builder.rs +++ b/xtask/src/builder.rs @@ -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 }