electrsd: set default features for bitreq#593
Conversation
|
cc @tnull |
jamillambert
left a comment
There was a problem hiding this comment.
The title and change don't match. I think the title is correct and the bitreq/std feature should only be enabled when download is by removing std from bitreq and adding instead to the download fearture:
download = ["bitcoin_hashes", "zip", "bitreq/std"]
If we do this, then this applies to the I would find this uglier, especially since only |
Hmm, yeah, you could change the tile so it is correct instead. Removing |
| bitreq = { version = "0.3.5", path = "../bitreq", default-features = false, optional = true, features = [ | ||
| "https", | ||
| "std", |
There was a problem hiding this comment.
While correct I also rekon this would be better:
bitreq = { version = "0.3.5", path = "../bitreq", optional = true, features = ["https"] }There was a problem hiding this comment.
Thanks for the review, done below
|
Thanks Leo, I debugged this myself today and got lost wondering how the heck this got into master. |
If and only if the download feature is set, bitreq is required. In that case the bitreq std feature is needed, so we enable default-features for bitreq to set the std feature. No other bitreq feature is enabled.
d5fb0fa to
adde75f
Compare
bitreq/std if download is set
If and only if the download feature is set, bitreq is required. In that case the bitreq std feature is needed, so we enable default-features for bitreq to set the std feature. No other bitreq feature is enabled.