8000 Trivial dependency cleanup by tcharding · Pull Request #1563 · rust-bitcoin/rust-bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Trivial dependency cleanup #1563

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

Closed
wants to merge 2 commits into from

Conversation

tcharding
Copy link
Member

Do two trivia cleanups to the bitcoin manifest.

Refactor only, no logic changes.

@tcharding tcharding added the trivial Obvious, easy and quick to review (few lines or doc-only...) label Jan 19, 2023
@sanket1729
Copy link
Member

I vote that we merge PRs even if ASAN fix shows a big red

@tcharding
Copy link
Member Author

I vote that we merge PRs even if ASAN fix shows a big red

ASAN is fixed now :) see #1566

Kixunil
Kixunil previously approved these changes Jan 20, 2023
Copy link
Collaborator
@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

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

ACK bded792f93a12222fe55c31610ee9ec475d2fc13


base64 = { version = "0.13.0", optional = true }
bitcoinconsensus = { version = "0.20.2-0.5.0", optional = true, default-features = false }
# You probably want to use "no-std" instead of using these two features directly.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd actually love to split these and remove no-std :P

Copy link
Member Author

Choose a reason for hiding this comment

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

hmmm, I'll keep that in mind. I don't like how we have different crates using std/alloc differently, its a pain to remember (reffering to the fact that sometimes "std" enables "alloc" and sometimes not).

Copy link
Collaborator
@Kixunil Kixunil Jan 22, 2023

Choose a reason for hiding this comment

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

I think I already said std should always enable alloc. core2 should be orthogonal. Although we need core2 because of IO traits being everywhere for now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I finally worked this out. I was getting confused by the HexWriter that uses core2 and alloc - now its removed and I've started to separate "alloc" from "core2" (both in mind and in PRs).

@Kixunil
Copy link
Collaborator
Kixunil commented Jan 23, 2023

I think we should get #1576 in first.

@apoelstra
Copy link
Member

Should be rebased (and the resulting Cargo.toml manually checked, because git and github don't see conflicts even though there clearly is one) since #1576 was merged.

@tcharding
Copy link
Member Author

Rebased and checked the diff and toml files. "What Tobin, you don't always check your diffs after rebasing and before pushing?" - "sure I do, what sort of noob dev do you take me for" (averts eyes sheepishly).

@apoelstra
Copy link
Member

This PR now introduces a hashbrown dependency -- I guess you didn't mean to do that?

Put the `core2` optional dependency down with the other optional
dependencies. While we are at it put the `core2` and `hashbrown`
dependencies together under a comment directing users towards the
"no-std" feature which enables them.
Put  the `optional = true` dependency config at the end of the line like
it is for all the other optional dependencies.
@tcharding
Copy link
Member Author

Guess my joke got lost in translation :)

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 8ca4cf5

@tcharding
Copy link
Member Author

Superseded by #1612

@tcharding tcharding closed this Feb 3, 2023
@tcharding tcharding deleted the 01-20-dep-cleanup branch May 22, 2024 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
trivial Obvious, easy and quick to review (few lines or doc-only...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0