include patches for shellchat and rootkeys

This commit is contained in:
bunnie 2024-11-21 02:18:58 +08:00
parent 25c30f6cde
commit 6c49e2a6dd
2 changed files with 37 additions and 0 deletions

View file

@ -352,6 +352,19 @@ impl Builder {
"# 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
}

View file

@ -220,6 +220,18 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
"branch = \"main\" # c25519",
)
.ok();
builder::search_and_replace_in_file(
"services/root-keys/Cargo.toml",
"# features = [\"auto-release\", \"warn-fallback\"]",
"features = [\"auto-release\", \"warn-fallback\"]",
)
.ok();
builder::search_and_replace_in_file(
"services/shellchat/Cargo.toml",
"# features = [\"auto-release\", \"warn-fallback\"]",
"features = [\"auto-release\", \"warn-fallback\"]",
)
.ok();
match builder::search_in_file("services/aes/Cargo.toml", "default = []") {
Ok(false) => {
@ -673,6 +685,18 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
"branch = \"main\" # c25519",
)
.expect("couldn't patch curve25519");
builder::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");
builder::search_and_replace_in_file(
"services/shellchat/Cargo.toml",
"# features = [\"auto-release\", \"warn-fallback\"]",
"features = [\"auto-release\", \"warn-fallback\"]",
)
.expect("couldn't patch shellchat");
}
match builder::search_in_file("services/aes/Cargo.toml", "default = []") {
Ok(false) => {