Skip to content

extern crate is considered unidiomatic in 2018 rust#104

Open
lamalex wants to merge 6 commits into
stevedonovan:masterfrom
lamalex:no-extern
Open

extern crate is considered unidiomatic in 2018 rust#104
lamalex wants to merge 6 commits into
stevedonovan:masterfrom
lamalex:no-extern

Conversation

@lamalex

@lamalex lamalex commented Aug 1, 2020

Copy link
Copy Markdown

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