diff --git a/Cargo.toml b/Cargo.toml index 782f74f..de2d7b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ travis-ci = { repository = "ipinfo/rust", branch = "master" } codecov = { repository = "ipinfo/rust", branch = "master", service = "github" } [dependencies] -reqwest = { version = "0.11", features = ["json"] } +reqwest = { version = "0.11", features = ["json"], default-features = false } lru = "0.12.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" @@ -36,3 +36,8 @@ tokio = { version = "1", features = ["rt-multi-thread", "macros"] } [profile.release] overflow-checks = true lto = true + +[features] +default = ["openssl"] +rustls-tls = ["reqwest/rustls-tls"] +openssl = ["reqwest/native-tls"]