diff --git a/Cargo.toml b/Cargo.toml index 782f74f..ccc482e 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.12", 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"] diff --git a/src/ipinfo.rs b/src/ipinfo.rs index a905bda..1290718 100644 --- a/src/ipinfo.rs +++ b/src/ipinfo.rs @@ -584,12 +584,12 @@ mod tests { let ip4 = &details["4.2.2.4"]; assert_eq!(ip4.ip, "4.2.2.4"); assert_eq!(ip4.hostname, Some("d.resolvers.level3.net".to_owned())); - assert_eq!(ip4.city, "Monroe"); - assert_eq!(ip4.region, "Louisiana"); + assert_eq!(ip4.city, "Broomfield"); + assert_eq!(ip4.region, "Colorado"); assert_eq!(ip4.country, "US"); - assert_eq!(ip4.loc, "32.5530,-92.0422"); - assert_eq!(ip4.postal, Some("71203".to_owned())); - assert_eq!(ip4.timezone, Some("America/Chicago".to_owned())); + assert_eq!(ip4.loc, "39.8854,-105.1139"); + assert_eq!(ip4.postal, Some("80021".to_owned())); + assert_eq!(ip4.timezone, Some("America/Denver".to_owned())); } #[tokio::test]