[package]
edition = "2024"
rust-version = "1.88"
name = "estat-api"
version = "0.1.0"
authors = ["uiuifree"]
build = false
exclude = [
".github/",
".idea/",
".claude/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unofficial async Rust client and CLI for the e-Stat API v3.0, the API of Japan's official statistics portal (政府統計の総合窓口): table search, metadata, statistical data with paging, bulk requests, datasets and the data catalog"
homepage = "https://github.com/uiuifree/rust-estat-api"
documentation = "https://docs.rs/estat-api"
readme = "README.md"
keywords = [
"e-stat",
"statistics",
"japan",
"government",
"open-data",
]
categories = [
"api-bindings",
"science",
"asynchronous",
"command-line-utilities",
]
license = "MIT"
repository = "https://github.com/uiuifree/rust-estat-api"
[package.metadata.docs.rs]
all-features = true
[features]
cli = [
"dep:clap",
"dep:tokio",
]
[lib]
name = "estat_api"
path = "src/lib.rs"
[[bin]]
name = "estat"
path = "src/bin/estat.rs"
required-features = ["cli"]
[[example]]
name = "all_values"
path = "examples/all_values.rs"
[[example]]
name = "compare_areas"
path = "examples/compare_areas.rs"
[[example]]
name = "search"
path = "examples/search.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
required-features = ["cli"]
[[test]]
name = "live"
path = "tests/live.rs"
[[test]]
name = "mock"
path = "tests/mock.rs"
[dependencies.clap]
version = "4.5"
features = [
"derive",
"env",
]
optional = true
[dependencies.reqwest]
version = "0.13"
features = ["form"]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.tokio]
version = "1.48"
features = [
"macros",
"rt-multi-thread",
]
optional = true
[dev-dependencies.httpmock]
version = "0.7"
[dev-dependencies.tokio]
version = "1.48"
features = ["full"]