Skip to content
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

Add "rand" feature #342

Merged
merged 1 commit into from
May 14, 2024
Merged

Conversation

tcharding
Copy link
Member

@tcharding tcharding commented May 1, 2024

Currently we activate the "bitcoin/rand-std" feature unconditionally in json. Some users may not wish to use the bitcoin "rand" feature.

Add a "rand" feature to json and client and use it to activate "rand-std" in bitcoin.

The crates currently have no features, this is the first. In order to be less of a breaking change also add a "default" feature and enable "rand" from "default".

@tcharding
Copy link
Member Author

Replaces #193

Currently we activate the "bitcoin/rand-std" feature unconditionally
in `json`. Some users may not wish to use the bitcoin "rand" feature.

Add a "rand" feature to `json` and `client` and use it to activate
"rand-std" in `bitcoin`.

The crates currently have no features, this is the first. In order to be
less of a breaking change also add a "default" feature and enable "rand"
from "default".
@tcharding tcharding marked this pull request as ready for review May 14, 2024 21:25
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 af66cfe

@apoelstra apoelstra merged commit e1c6ec4 into rust-bitcoin:master May 14, 2024
13 checks passed
Copy link

@oleonardolima oleonardolima left a comment

Choose a reason for hiding this comment

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

post-merge ACK af66cfe

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