Skip to content

Including in a module #5

@Eiyeron

Description

@Eiyeron

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions