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

extern crate is considered unidiomatic in 2018 rust #104

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

lamalex
Copy link

@lamalex lamalex commented Aug 1, 2020

Removes usage of extern crate where appropriate. There are still a few places where extern crate is the most reasonable solution due to crates which have not been updated to the current idioms (nom, error_chain).

Alexander Launi added 6 commits July 31, 2020 22:44
Update mod4.rs and related content in 4-modules.md to use 2018 conventions for use declarations.
Update test-json.rs and related content in 4-modules.md to use 2018 conventions for use declarations.
Add json-serde.rs to code samples and and update related content in 4-modules.md
to use 2018 conventions for use declarations, and serde 1.0 conventions.
Replace `extern crate` declarations 04-modules.md More Gems section
Replace `extern crate` declarations for simple_error example in 6-error-handling.md
Did not update error_chain. error_chain! macro depends on internal macros, and is not
easily imported without #[macro_use] extern crate declaration. This should be fixed
upstream.
Update code samples in 7-shared-and-networking.md
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

Successfully merging this pull request may close these issues.

1 participant