Skip to content

Commit

Permalink
Add rustls support (#133)
Browse files Browse the repository at this point in the history
Co-authored-by: silverpill <silverpill@firemail.cc>
Co-authored-by: h4sh3d <h4sh3d@protonmail.com>
  • Loading branch information
3 people authored May 30, 2024
1 parent 6d44eef commit dcf5fd9
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 dcf5fd9

Please sign in to comment.