bitreq: Fix tokio-rustls feature gate#563
Conversation
tnull
left a comment
There was a problem hiding this comment.
Thanks, makes sense I think. But if we only now discovered this, it seems we might be lacking test coverage in CI that would have found this? Could we add the missing pieces in this PR?
The code was gated on the dependency instead of the feature alias which enables other required dependencies. This caused a build failure when both `std` and `tokio-rustls` features were enabled and not the other required dependencies. Change the feature gate to the feature alias instead of the dependency.
0a20b77 to
f4f1c19
Compare
I had a further look into this and it only fails to build with the exact feature set of I also changed the fix to gate on the features |
|
|
|
ACK f4f1c19 |
|
FTR I don't know what I"m supposed to do about red CI jobs for |
Yeah, I think that fine on a per-PR basis. The CI checks are mostly there to ensure that no new known vulnerabilities are introduced. But if it annoys you and it's happening too often (in my experience it's rare) maybe we just reduce it to the cronjob? |
The code was gated on the dependency instead of the feature alias which
enables other required dependencies. This caused a build failure when
both
stdandtokio-rustlsfeatures were enabled and not the otherrequired dependencies.
Change the feature gate to the feature alias instead of the dependency.