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

Use declarations break in included crates #5

Open
MarcosCosmos opened this issue May 1, 2018 · 0 comments
Open

Use declarations break in included crates #5

MarcosCosmos opened this issue May 1, 2018 · 0 comments

Comments

@MarcosCosmos
Copy link
Owner

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

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