Skip to content

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
heap-coder added a commit to heap-coder/rust-miniscript that referenced this pull request Sep 27, 2025
b44acefa64ed834b0ba8b08c5748cc6b8d53af40 Re-export serde using without extern crate (Tobin C. Harding)
15817ddc9032dea29f3d834ffc0d450b09fa3cbc docs: Remove extern crate (Tobin C. Harding)
aacece4a7b30ed31a123e55fb87719ad2316589c examples: Remove crate imports (Tobin C. Harding)

Pull request description:

  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

ACKs for top commit:
  apoelstra:
    ACK b44acefa64ed834b0ba8b08c5748cc6b8d53af40
  sanket1729:
    ACK b44acefa64ed834b0ba8b08c5748cc6b8d53af40

Tree-SHA512: f66280d1484aaac7607ee71537eef173d37545da39adf0e5de759bb5dee7d856aeaeb079bd312768360e21cca85945fadb42383353709082175f49961c06a6ba
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