bevy_tilemap
bevy_tilemap copied to clipboard
no_implicit_prelude does not work at crate level
Opened to track rust's fix.
no_implicit_prelude
is handy if you want to know exactly what you are using in your library, allowing you to slim it down later as you typically have all your new prelude imports altogether. Cuts down on code as well, cleaning things up drastically.
The issue is that #![no_implicit_prelude]
at lib level used to work fine. Then Serde support was added and it wouldn't build Serde since it too uses no_implicit_prelude
. There was a work around though which worked. Problem is, now that workaround is broken. While the project will build fine, this is problematic for documentation.
See: https://github.com/rust-lang/rust/pull/80372
Temp workaround: https://github.com/joshuajbouw/bevy_tilemap/pull/83
The re-export strategy also breaks the Bundle derive macro after bevyengine/bevy#1525. I ended up removing the lib prelude in my local branch since I couldn't figure out how to fix it.
I'll be addressing that as soon as I can fix some other parts.
Ah whoops, this shouldn't be closed right now. Still should be tracked.