Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including in a module #5

Open
Eiyeron opened this issue Oct 4, 2018 · 0 comments
Open

Including in a module #5

Eiyeron opened this issue Oct 4, 2018 · 0 comments

Comments

@Eiyeron
Copy link

Eiyeron commented Oct 4, 2018

Hello.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant