Skip to content

Use declarations break in included crates #5

Description

@MarcosCosmos

I believe this occurs because when used as a stand alone crate, the implicit global path automatically starts from the root of the package, but when bundled in as a mere module, the globally identified root module/crate changes to the main module of the containing project.

The bundler can be augmented to automatically adjust usage paths as needed to support this, however, in the meantime, more explicit use paths inside custom crates will ensure they continue to be usable.

See this commit in my vector/physics library for examples: MarcosCosmos/rust-phys2d@f9e58e6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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