From e371f6067f5c44d1a9c33837b7367f8fc3235db9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Aug 2025 07:47:22 +0000 Subject: [PATCH 1/2] Update toml_edit requirement from 0.22.7 to 0.23.2 Updates the requirements on [toml_edit](https://github.com/toml-rs/toml) to permit the latest version. - [Commits](https://github.com/toml-rs/toml/compare/v0.22.7...v0.23.2) --- updated-dependencies: - dependency-name: toml_edit dependency-version: 0.23.2 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- crates/bevy_macro_utils/Cargo.toml | 2 +- tools/build-templated-pages/Cargo.toml | 2 +- tools/example-showcase/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bevy_macro_utils/Cargo.toml b/crates/bevy_macro_utils/Cargo.toml index b998ae4fd4553..4353ad2136475 100644 --- a/crates/bevy_macro_utils/Cargo.toml +++ b/crates/bevy_macro_utils/Cargo.toml @@ -12,7 +12,7 @@ keywords = ["bevy"] syn = "2.0" quote = "1.0" proc-macro2 = "1.0" -toml_edit = { version = "0.22.7", default-features = false, features = [ +toml_edit = { version = "0.23.2", default-features = false, features = [ "parse", ] } parking_lot = { version = "0.12" } diff --git a/tools/build-templated-pages/Cargo.toml b/tools/build-templated-pages/Cargo.toml index 70e5d827a2de2..6fa774af63fc9 100644 --- a/tools/build-templated-pages/Cargo.toml +++ b/tools/build-templated-pages/Cargo.toml @@ -6,7 +6,7 @@ publish = false license = "MIT OR Apache-2.0" [dependencies] -toml_edit = { version = "0.22.7", default-features = false, features = [ +toml_edit = { version = "0.23.2", default-features = false, features = [ "parse", ] } tera = "1.15" diff --git a/tools/example-showcase/Cargo.toml b/tools/example-showcase/Cargo.toml index 2a54af4a68815..063972c4d6411 100644 --- a/tools/example-showcase/Cargo.toml +++ b/tools/example-showcase/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0" xshell = "0.2" clap = { version = "4.0", features = ["derive"] } ron = "0.10" -toml_edit = { version = "0.22.7", default-features = false, features = [ +toml_edit = { version = "0.23.2", default-features = false, features = [ "parse", ] } pbr = "1.1" From 9214324d6069135e82b8ace0c2e90e312906659e Mon Sep 17 00:00:00 2001 From: mnmaita <47983254+mnmaita@users.noreply.github.com> Date: Wed, 6 Aug 2025 11:17:51 +0200 Subject: [PATCH 2/2] Replaces deprecated type alias --- crates/bevy_macro_utils/src/bevy_manifest.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/bevy_macro_utils/src/bevy_manifest.rs b/crates/bevy_macro_utils/src/bevy_manifest.rs index b6df0e0e0f89c..832ebeb8c9293 100644 --- a/crates/bevy_macro_utils/src/bevy_manifest.rs +++ b/crates/bevy_macro_utils/src/bevy_manifest.rs @@ -8,12 +8,12 @@ use std::{ path::{Path, PathBuf}, time::SystemTime, }; -use toml_edit::{ImDocument, Item}; +use toml_edit::{Document, Item}; /// The path to the `Cargo.toml` file for the Bevy project. #[derive(Debug)] pub struct BevyManifest { - manifest: ImDocument>, + manifest: Document>, modified_time: SystemTime, } @@ -70,11 +70,11 @@ impl BevyManifest { std::fs::metadata(cargo_manifest_path).and_then(|metadata| metadata.modified()) } - fn read_manifest(path: &Path) -> ImDocument> { + fn read_manifest(path: &Path) -> Document> { let manifest = std::fs::read_to_string(path) .unwrap_or_else(|_| panic!("Unable to read cargo manifest: {}", path.display())) .into_boxed_str(); - ImDocument::parse(manifest) + Document::parse(manifest) .unwrap_or_else(|_| panic!("Failed to parse cargo manifest: {}", path.display())) }