diff --git a/crates/bevy_macro_utils/Cargo.toml b/crates/bevy_macro_utils/Cargo.toml index 28ee17c871..4fb0e8291b 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" -cargo-manifest-proc-macros = "0.3.3" +cargo-manifest-proc-macros = "0.3.4" [lints] workspace = true diff --git a/crates/bevy_macro_utils/src/bevy_manifest.rs b/crates/bevy_macro_utils/src/bevy_manifest.rs index 5a492f8a81..825ff725a2 100644 --- a/crates/bevy_macro_utils/src/bevy_manifest.rs +++ b/crates/bevy_macro_utils/src/bevy_manifest.rs @@ -48,8 +48,7 @@ impl BevyManifest { /// Returns the path for the crate with the given name. pub fn get_path(&self, name: &str) -> syn::Path { self.maybe_get_path(name) - //.expect("Failed to get path for crate") - .unwrap_or_else(|_err| Self::parse_str(name)) + .expect("Failed to get path for crate") } /// Attempt to parse the provided [path](str) as a [syntax tree node](syn::parse::Parse) diff --git a/tests-integration/simple-ecs-test/Cargo.toml b/tests-integration/simple-ecs-test/Cargo.toml index 0440338bb4..b61c40eb6c 100644 --- a/tests-integration/simple-ecs-test/Cargo.toml +++ b/tests-integration/simple-ecs-test/Cargo.toml @@ -2,5 +2,10 @@ name = "simple-ecs-test" edition = "2021" +# We depend on bevy in both normal and dev dependencies to verify that the proc macros still work. + [dependencies] bevy = { path = "../../" } + +[dev-dependencies] +bevy = { path = "../../" }