Commit 26f2da0
Use rustls for tls & trust-dns-resolver for dns resolution
By default, reqwest uses native-tls, which is openssl on linux and that
makes cross-compilation very hard as they need to compile openssl
themselves and exposes it via pkg-config.
Enabling vendored-openssl does not help there because the dep:openssl is
only enabled by dist-server.
reqwest by default uses libc's getaddrinfo, which is a poor solution
that requires a dedicated thread and it is not nearly as reliable as
trust-dns-resolver, not to mention libc implementation, e.g. musl, might
deliberately leave out some features.
Signed-off-by: Jiahao XU <[email protected]>1 parent 6bbef54 commit 26f2da0
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
0 commit comments