Skip to content

Commit

Permalink
Added optional rustls feature (#27)
Browse files Browse the repository at this point in the history
With this commit you can choose to use rustls instead of native-tls

Co-authored-by: Bryley Hayter <[email protected]>
  • Loading branch information
Bryley and Bryley Hayter authored Aug 12, 2024
1 parent 4a8fc19 commit 5b484b9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gql_client"
version = "1.0.7"
version = "1.0.8"
authors = ["Arthur Khlghatyan <[email protected]>"]
edition = "2018"
description = "Minimal GraphQL client for Rust"
Expand All @@ -14,11 +14,17 @@ categories = ["web-programming", "asynchronous"]
[badges]
maintenance = { status = "actively-developed" }

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

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

[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
reqwest = { version = "0.11", features = ["json"] }
reqwest = { version = "0.11", features = ["json"], default_features = false }
log = "0.4"

[dev-dependencies]
tokio = { version = "1", features = ["full"] }
tokio = { version = "1", features = ["full"] }

0 comments on commit 5b484b9

Please sign in to comment.