Skip to content

Commit 0384071

Browse files
committed
Fixed manifest macro bug
1 parent 2345160 commit 0384071

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

crates/core/wde-renderer/macros/src/manifest.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ impl WdeManifest {
9999
};
100100

101101
let mut path = Self::parse_str::<syn::Path>(&format!("::{package}"));
102-
if let Some(module) = name.strip_prefix("bevy_") {
103-
path.segments.push(Self::parse_str(module));
104-
}
102+
// `wde` re-exports its sub-crates verbatim (e.g. `pub use wde_renderer;`),
103+
// so the submodule segment is the full dependency name, not a stripped suffix.
104+
path.segments.push(Self::parse_str(name));
105105
Some(path)
106106
};
107107

0 commit comments

Comments
 (0)