internetdata 3.2.0

The official Rust client library for the InternetData API: look up IP addresses, AS numbers and domains, and download the IP intelligence databases.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "internetdata"
version = "3.2.0"
authors = ["InternetData <dev@internetdata.io>"]
build = false
exclude = [
    "/spec",
    "/scripts",
    "/.github",
    "/integration",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The official Rust client library for the InternetData API: look up IP addresses, AS numbers and domains, and download the IP intelligence databases."
homepage = "https://internetdata.io"
documentation = "https://docs.rs/internetdata"
readme = "README.md"
keywords = [
    "ip",
    "geoip",
    "mmdb",
    "dataset",
    "api",
]
categories = [
    "api-bindings",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/internetdata/sdk-rust"

[package.metadata.docs.rs]
all-features = true

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

[lib]
name = "internetdata"
path = "src/lib.rs"

[[test]]
name = "client"
path = "tests/client.rs"

[[test]]
name = "conformance"
path = "tests/conformance.rs"

[[test]]
name = "download"
path = "tests/download.rs"

[[test]]
name = "live"
path = "tests/live.rs"

[[test]]
name = "lookup"
path = "tests/lookup.rs"

[[test]]
name = "middleware"
path = "tests/middleware.rs"

[[test]]
name = "oauth"
path = "tests/oauth.rs"

[[test]]
name = "readme"
path = "tests/readme.rs"

[dependencies.chrono]
version = "0.4.20"
features = ["serde"]

[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false

[dependencies.getrandom]
version = "0.4"

[dependencies.indexmap]
version = "2"

[dependencies.ipnet]
version = "2"

[dependencies.moka]
version = "0.12"
features = ["future"]

[dependencies.reqwest]
version = "0.13"
features = [
    "form",
    "json",
    "query",
]
default-features = false

[dependencies.serde]
version = "1.0.164"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"
default-features = false

[dependencies.tokio]
version = "1.44.2"
features = [
    "fs",
    "io-util",
    "sync",
    "time",
]

[dev-dependencies.serde_urlencoded]
version = "0.7"

[dev-dependencies.tokio]
version = "1.44.2"
features = [
    "macros",
    "rt-multi-thread",
    "net",
    "time",
]