Skip to content

Commit dcbe5be

Browse files
authored
Merge pull request #258 from jirutka/tls-native
Allow building with native-tls instead of rustls
2 parents 728bf25 + 12e387e commit dcbe5be

File tree

3 files changed

+248
-4
lines changed

3 files changed

+248
-4
lines changed

Cargo.lock

Lines changed: 240 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

duckscript_cli/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ duckscript = { version = "^0.7.2", path = "../duckscript" }
3131
duckscriptsdk = { version = "^0.8.12", path = "../duckscript_sdk", default-features = false }
3232

3333
[features]
34-
tls = ["duckscriptsdk/tls"]
35-
default = ["tls"]
34+
tls-rustls = ["duckscriptsdk/tls-rustls"]
35+
tls-native = ["duckscriptsdk/tls-native"]
36+
tls = ["tls-rustls"] # alias for backward compatibility
37+
default = ["tls-rustls"]
3638

3739
[badges.codecov]
3840
branch = "master"

duckscript_sdk/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ whoami = "^1"
5252
uname = "^0.1"
5353

5454
[features]
55-
tls = ["attohttpc/rustls"]
56-
default = ["tls"]
55+
tls-rustls = ["attohttpc/rustls"]
56+
tls-native = ["attohttpc/tls"]
57+
tls = ["tls-rustls"] # alias for backward compatibility
58+
default = ["tls-rustls"]
5759

5860
[badges.codecov]
5961
branch = "master"

0 commit comments

Comments
 (0)