[package]
name = "ip-rir"
version = "0.1.0"
edition = "2024"
description = "IP address to country code lookup using RIR delegated stats"
license = "MIT"
repository = "https://github.com/sogatat/ip-rir"
readme = "README.md"
keywords = ["geoip", "ip", "rir", "country", "geolocation"]
categories = ["network-programming"]
authors = ["sogatat <sogatat@gmail.com>"]

[features]
default = []
# Enables the `fetch` module (HTTP download of RIR files); adds reqwest dependency
fetch = ["dep:reqwest", "dep:tokio"]

[dependencies]
reqwest = { version = "0.12", features = ["blocking"], optional = true }
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }

[dev-dependencies]

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