From 6bb3a496f86b3984c3ea9c1d877ec13a547a8563 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 25 Oct 2023 00:12:46 +0900 Subject: [PATCH] codegen: Use toml_edit directly --- tools/codegen/Cargo.toml | 2 +- tools/codegen/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/codegen/Cargo.toml b/tools/codegen/Cargo.toml index 448e14e4..54283a19 100644 --- a/tools/codegen/Cargo.toml +++ b/tools/codegen/Cargo.toml @@ -15,5 +15,5 @@ serde_derive = "1" serde_json = "1" sha2 = "0.10" tar = "0.4" -toml = "0.8" +toml_edit = { version = "0.20", features = ["serde"] } ureq = { version = "2", features = ["json"] } diff --git a/tools/codegen/src/main.rs b/tools/codegen/src/main.rs index badddf8e..0b0ffd30 100644 --- a/tools/codegen/src/main.rs +++ b/tools/codegen/src/main.rs @@ -269,7 +269,7 @@ fn main() -> Result<()> { eprintln!("download complete"); } if pubkey.is_none() { - let cargo_manifest = toml::from_str::( + let cargo_manifest = toml_edit::de::from_str::( &fs::read_to_string(crate_download_cache)?, )?; eprintln!(