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

@tcharding tcharding added this to the v0.19.0 milestone May 1, 2024
@tcharding tcharding force-pushed the 05-01-expose-rand branch from d75c730 to ef0f311 Compare May 1, 2024 02:26
@tcharding tcharding force-pushed the 05-01-expose-rand branch from ef0f311 to e20a116 Compare May 1, 2024 03:04
@tcharding tcharding force-pushed the 05-01-expose-rand branch 2 times, most recently from 827589b to ed2f931 Compare May 14, 2024 21:18
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 force-pushed the 05-01-expose-rand branch from ed2f931 to af66cfe Compare May 14, 2024 21:20
@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