You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To clean up main.rs, I'd like to include the file resulting from the build script to another module (let's say src/assets.rs).
Alas, the current generated file assumes it's included in the top-level module / main.rs and at build time, trying to use something from includedir fails as it doesn't find the includedir crate (did you mean self::includedir...).
Is it possible to add an option or eventually detect include! in modules to make the generated file include self:: as a suffix and avoid this issue?
Thanks in advance and have a nice day.
The text was updated successfully, but these errors were encountered:
Hello.
To clean up
main.rs
, I'd like to include the file resulting from the build script to another module (let's saysrc/assets.rs
).Alas, the current generated file assumes it's included in the top-level module /
main.rs
and at build time, trying to use something from includedir fails as it doesn't find the includedir crate (did you mean self::includedir...
).Is it possible to add an option or eventually detect
include!
in modules to make the generated file includeself::
as a suffix and avoid this issue?Thanks in advance and have a nice day.
The text was updated successfully, but these errors were encountered: