Cargo Features

[dependencies]
public-ip = { version = "0.2.2", default-features = false, features = ["dns-resolver", "http-resolver", "tokio-dns-resolver", "tokio-http-resolver", "all-providers", "ipify-org", "google", "opendns", "whatismyipaddress-com"] }
default = all-providers, tokio-dns-resolver, tokio-http-resolver

These default features are set whenever public-ip is added without default-features = false somewhere in the dependency tree.

dns-resolver tokio-dns-resolver = trust-dns-proto

Affects public-ip::dns, public-ip::ALL, public-ip::addr, public-ip::addr_v4, public-ip::addr_v6

http-resolver tokio-http-resolver = dns-lookup, http, hyper, hyper-system-resolver

Affects public-ip::http, public-ip::ALL, public-ip::addr, public-ip::addr_v4, public-ip::addr_v6

tokio-dns-resolver default = dns-resolver, tokio, trust-dns-client

Enables tokio-runtime of trust-dns-proto ^0.20

tokio-http-resolver default = http-resolver, tokio

Enables runtime of hyper ^0.14

all-providers default = google, ipify-org, opendns, whatismyipaddress-com
ipify-org all-providers

Affects http::HTTP_IPIFY_ORG

google all-providers

Affects dns::GOOGLE, dns::GOOGLE_V4, dns::GOOGLE_V6

opendns all-providers

Affects dns::OPENDNS, dns::OPENDNS_V4, dns::OPENDNS_V6

whatismyipaddress-com all-providers

Affects http::HTTP_WHATISMYIPADDRESS_COM

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

tokio tokio-dns-resolver tokio-http-resolver
trust-dns-client tokio-dns-resolver

Enables trust-dns-client ^0.20

DNS Resolver

trust-dns-proto dns-resolver? tokio-dns-resolver

Enables trust-dns-proto ^0.20

http http-resolver?

Enables http ^0.2

HTTP Resolver

dns-lookup http-resolver?

Enables dns-lookup ^1

hyper http-resolver? tokio-http-resolver

Enables hyper ^0.14

hyper-system-resolver http-resolver?