-
Notifications
You must be signed in to change notification settings - Fork 116
Add support for aws-lc-rs #576
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,7 @@ url = "2.2" | |
| walkdir = { version = "2", optional = true } | ||
|
|
||
| # Cloud storage support | ||
| aws-lc-rs = { version = "1.15", default-features = false, features = ["non-fips", "ring-io"], optional = true } | ||
| base64 = { version = "0.22", default-features = false, features = ["std"], optional = true } | ||
| form_urlencoded = { version = "1.2", optional = true } | ||
| http-body-util = { version = "0.1.2", optional = true } | ||
|
|
@@ -54,7 +55,7 @@ hyper = { version = "1.2", default-features = false, optional = true } | |
| md-5 = { version = "0.10.6", default-features = false, optional = true } | ||
| quick-xml = { version = "0.38.0", features = ["serialize", "overlapped-lists"], optional = true } | ||
| rand = { version = "0.9", default-features = false, features = ["std", "std_rng", "thread_rng"], optional = true } | ||
| reqwest = { version = "0.12", default-features = false, features = ["rustls-tls-native-roots", "http2"], optional = true } | ||
| reqwest = { version = "0.12", default-features = false, features = ["http2", "rustls-tls-webpki-roots-no-provider"], optional = true } | ||
| ring = { version = "0.17", default-features = false, features = ["std"], optional = true } | ||
| rustls-pki-types = { version = "1.9", default-features = false, features = ["std"], optional = true } | ||
| serde = { version = "1.0", default-features = false, features = ["derive"], optional = true } | ||
|
|
@@ -71,14 +72,20 @@ wasm-bindgen-futures = "0.4.18" | |
|
|
||
| [features] | ||
| default = ["fs"] | ||
| cloud = ["serde", "serde_json", "quick-xml", "hyper", "reqwest", "reqwest/stream", "chrono/serde", "base64", "rand", "ring", "http-body-util", "form_urlencoded", "serde_urlencoded"] | ||
| azure = ["cloud", "httparse"] | ||
| fs = ["walkdir"] | ||
| gcp = ["cloud", "rustls-pki-types"] | ||
| aws = ["cloud", "md-5"] | ||
| http = ["cloud"] | ||
| cloud = ["serde", "serde_json", "quick-xml", "hyper", "reqwest", "reqwest/stream", "chrono/serde", "base64", "rand", "http-body-util", "form_urlencoded", "serde_urlencoded"] | ||
| azure = ["cloud", "httparse", "ring"] | ||
| gcp = ["cloud", "rustls-pki-types", "ring"] | ||
| aws = ["cloud", "md-5", "ring"] | ||
| http = ["cloud", "ring"] | ||
| azure-aws-lc = ["cloud", "httparse", "aws-lc"] | ||
| gcp-aws-lc = ["cloud", "rustls-pki-types", "aws-lc"] | ||
| aws-aws-lc = ["cloud", "md-5", "aws-lc"] | ||
| http-aws-lc = ["cloud", "aws-lc"] | ||
|
Comment on lines
+76
to
+84
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not a fan of this explosion of feature flags, it will make testing really complicated
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The aws-lc flags are not necessary, it just avoids to redefine dependencies for users who want to use aws-lc. Another possibility is to use ring in the default feature.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From my past experience using native tls required openssl, then I'm not an expert on this. But using rustls no provider allows more control on which rustls crypto provider is used.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| tls-webpki-roots = ["reqwest?/rustls-tls-webpki-roots"] | ||
| integration = ["rand"] | ||
| ring = ["dep:ring"] | ||
| aws-lc = ["dep:aws-lc-rs"] | ||
|
|
||
| [dev-dependencies] # In alphabetical order | ||
| hyper = { version = "1.2", features = ["server"] } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change that will likely break most clients
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't, it allows users to choose their own implementation of rustls instead of forcing them to use native tls which is harder to compile as it requires openssl.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
native-roots doesn't depend on openssl, it concerns where it sources the trust store.