Skip to content

Remove extern crates #382

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

Merged
merged 3 commits into from
May 9, 2022
Merged

Conversation

tcharding
Copy link
Member

Now we have edition 2018 we can remove the usage of extern crate.

  • Patch 1 does the examples/
  • Patch 2 does the docs
  • Patch 3 does the main crate

tcharding added 3 commits May 3, 2022 10:51
Now we have edition 2018 we no longer need to import crates in the
examples, either using `extern` or otherwise.

Remove crate imports, including `extern crate`.
Now we have edition 2018 we no longer need to use `extern crate` in the
docs examples.
Now that we have edition 2018 we can re-expert `serde` using a `pub use`
statement instead of `pub extern crate`.
Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK b44acef

Copy link
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK b44acef

@sanket1729 sanket1729 merged commit 88195ff into rust-bitcoin:master May 9, 2022
@tcharding tcharding deleted the extern-crates branch May 10, 2022 01:45
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.

3 participants