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

Submoduleでextern crateしないほうが良さそう #51

Open
yajamon opened this issue Mar 2, 2018 · 0 comments
Open

Submoduleでextern crateしないほうが良さそう #51

yajamon opened this issue Mar 2, 2018 · 0 comments
Assignees

Comments

@yajamon
Copy link
Owner

yajamon commented Mar 2, 2018

Extern crate in every module, or only once per crate? - The Rust Programming Language Forum
https://users.rust-lang.org/t/extern-crate-in-every-module-or-only-once-per-crate/1787

submoduleでexternすることは、下記のようなことらしい。

mod mymod {
    extern crate lib;
    use self::lib::foo;
}
@yajamon yajamon self-assigned this Jan 10, 2019
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