Skip to content

Commit

Permalink
Enable rustls compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlterionX committed Oct 14, 2021
1 parent 808943f commit e052407
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ members = [
]

[dependencies]
algonaut_client = {path = "algonaut_client", version = "0.3.0"}
algonaut_client = {path = "algonaut_client", version = "0.3.0", default-features = false}
algonaut_model = {path = "algonaut_model", version = "0.3.0"}
algonaut_core = {path = "algonaut_core", version = "0.3.0"}
algonaut_crypto = {path = "algonaut_crypto", version = "0.3.0"}
Expand All @@ -34,3 +34,8 @@ tokio = { version = "1.6.0", features = ["rt-multi-thread", "macros"] }
rand = "0.8.3"
getrandom = { version = "0.2.2", features = ["js"] }
data-encoding = "2.3.1"

[features]
default = ["native"]
native = ["algonaut_client/native"]
rustls = ["algonaut_client/rustls"]
7 changes: 6 additions & 1 deletion algonaut_client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ algonaut_crypto = {path = "../algonaut_crypto", version = "0.3.0"}
algonaut_encoding = {path = "../algonaut_encoding", version = "0.3.0"}
data-encoding = "2.3.1"
derive_more = "0.99.13"
reqwest = {version = "0.11", features = ["json"]}
reqwest = {version = "0.11", features = ["json"], default-features = false}
serde = {version = "1.0", features = ["derive"]}
serde_json = "1.0.40"
thiserror = "1.0.23"
Expand All @@ -27,3 +27,8 @@ dotenv = "0.15.0"
rand = "0.8.3"
getrandom = { version = "0.2.2", features = ["js"] }
tokio = { version = "1.6.0", features = ["macros"] }

[features]
default = ["native"]
rustls = ["reqwest/rustls-tls"]
native = ["reqwest/native-tls"]

0 comments on commit e052407

Please sign in to comment.