Skip to content

std -> core#614

Merged
TheBlueMatt merged 1 commit intorust-bitcoin:masterfrom
devrandom:2021-06-nostd1
Jun 14, 2021
Merged

std -> core#614
TheBlueMatt merged 1 commit intorust-bitcoin:masterfrom
devrandom:2021-06-nostd1

Conversation

@devrandom
Copy link
Copy Markdown
Contributor

Use the core crate when possible, in preparation for no_std mode.

See #603 and #409

@devrandom devrandom mentioned this pull request Jun 9, 2021
2 tasks
@elichai
Copy link
Copy Markdown
Member

elichai commented Jun 9, 2021

How does the use io; works?

@devrandom
Copy link
Copy Markdown
Contributor Author

How does the use io; works?

It just grabs the io module from the crate root, which is in turn is just use std::io for this PR. This is in preparation to the core2 follow-on in #603. I put it in this PR just because it was also an easy to review import change and it will keep #603 smaller.

@elichai
Copy link
Copy Markdown
Member

elichai commented Jun 9, 2021

oh right, can you maybe replace that with use crate::io so it will be more obvious? (and compatible with edition 2018)

@devrandom
Copy link
Copy Markdown
Contributor Author

Rust 1.29 doesn't support that syntax

sgeisler
sgeisler previously approved these changes Jun 10, 2021
Copy link
Copy Markdown
Contributor

@sgeisler sgeisler left a comment

Choose a reason for hiding this comment

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

utACK 20f6eedba9d577c86300fd5d9ab99d35ef9a0b82

Left some minor nits but overall it looks good and hopefully gets us closer to no-std.

Copy link
Copy Markdown
Contributor

@sgeisler sgeisler left a comment

Choose a reason for hiding this comment

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

utACK 95aa3bf

Copy link
Copy Markdown
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.

@TheBlueMatt TheBlueMatt merged commit e99177c into rust-bitcoin:master Jun 14, 2021
@notmandatory notmandatory mentioned this pull request Nov 8, 2021
3 tasks
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.

5 participants