Skip to content

Commit

Permalink
Expose reqwest's rustls feature (#17)
Browse files Browse the repository at this point in the history
* Expose reqwest's rustls feature

* Update README
  • Loading branch information
viniciusd committed Jan 30, 2024
1 parent 27a94ef commit 0aad6a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ readme = "README.md"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1" }
anyhow = { version = "1" }
reqwest = { version = "0.11" }
reqwest = { version = "0.11", default-features=false }
lazy_static = { version = "1" }
base64 = { version = "0.21" }
sha256 = { version = "1", default-features = false }
Expand All @@ -32,11 +32,13 @@ wasm-bindgen-futures = { version = "0.4.37", optional = true }
web-time = { version = "0.2.3", optional = true }

[features]
default = ["reqwest/default-tls"]
blocking = ["reqwest/blocking"]
wasm = ["dep:wasm-bindgen-futures", "dep:wasm-bindgen", "dep:web-time"]
reqwest-rustls = ["reqwest/rustls-tls"]

[dev-dependencies]
tokio = { version = "1", features = ["macros"] }
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
env_logger = "0.10.0"

[lib]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,4 @@ If you need to import `wasm` into your project, you can use `google_oauth::Clien
+ `default`: enable `AsyncClient`.
+ `blocking`: enable `Client`.
+ `wasm`: disable `AsyncClient` and `Client`(`blocking`), enable `Client` (`wasm`).
+ `reqwest-rustls`: use rustls as the TLS backend of the Reqwest client

0 comments on commit 0aad6a9

Please sign in to comment.