-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make _danger-local-https feature additive
Instead of feature gating function params, which introduces the need for similar feature gating in downstream code, feature gate individual functions. See: <https://doc.rust-lang.org/cargo/reference/features.html#feature-unification> "Rust features should be *additive*. That is, enabling a feature should not disable functionality, and it should usually be safe to enable any combination of features" Before this change `io::fetch_ohttp_keys` had two function signatures and changed its signature based on the feature flag. I noticed downstream that this creates a necessity to carry those flags mess into bindings or else face compile issues under certain feature combinations. `io` now enables the `v2` feature since it only contains methods for fetching OHTTP keys which is only useful in V2. In the future perhaps it will also include generic HTTP client behavior taking `Request` as a parameter in which case it should not enable `v2`, because such functionality would be useful in a V1 setting as well.
- Loading branch information
Showing
5 changed files
with
68 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters