# 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"
name = "ip-rir"
version = "0.1.0"
authors = ["sogatat <sogatat@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "IP address to country code lookup using RIR delegated stats"
readme = "README.md"
keywords = [
    "geoip",
    "ip",
    "rir",
    "country",
    "geolocation",
]
categories = ["network-programming"]
license = "MIT"
repository = "https://github.com/sogatat/ip-rir"

[features]
default = []
fetch = [
    "dep:reqwest",
    "dep:tokio",
]

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

[[bin]]
name = "ip-rir-fetch"
path = "src/bin/ip-rir-fetch.rs"
required-features = ["fetch"]

[dependencies.reqwest]
version = "0.12"
features = ["blocking"]
optional = true

[dependencies.tokio]
version = "1"
features = ["rt-multi-thread"]
optional = true

[dev-dependencies]
