Skip to content

Commit

Permalink
Add rustls support
Browse files Browse the repository at this point in the history
  • Loading branch information
silverpill committed Feb 22, 2024
1 parent 3462f23 commit 47ef010
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ description = "RPC client for Monero daemon and wallet"
[dependencies]
anyhow = "1"
chrono = { version = "0.4", default-features = false, features = ["serde"] }
diqwest = { version = "1.1", optional = true }
diqwest = { version = "1.2.1", default-features = false, optional = true }
fixed-hash = "0.8"
hex = "0.4"
http = "0.2"
jsonrpc-core = "18"
monero = { version = "0.19", features = ["serde"] }
reqwest = { version = "0.11", features = ["json", "socks"] }
reqwest = { version = "0.11", default-features = false, features = ["json", "socks"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tracing = "0.1"
Expand All @@ -33,7 +33,11 @@ serde_test = "1.0"
tokio = { version = "1.12.0", features = ["full"] }

[features]
default = ["native-tls"]

rpc_authentication = ["diqwest"]
native-tls = ["reqwest/native-tls", "diqwest/default"]
rustls-tls = ["reqwest/rustls-tls-native-roots", "diqwest/rustls-tls"]

[package.metadata.docs.rs]
all-features = true
Expand Down

0 comments on commit 47ef010

Please sign in to comment.