# 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 = "nea-rs"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A type-safe, sans-IO Rust client for Singapore NEA real-time weather and environmental APIs."
homepage = "https://github.com/InfiniteUnion/nea-rs"
documentation = "https://docs.rs/nea-rs"
readme = "README.md"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/InfiniteUnion/nea-rs"

[features]
default = [
    "serde",
    "json",
]
json = [
    "serde",
    "dep:serde_json",
    "satay-runtime/json",
]
serde = [
    "dep:serde",
    "satay-runtime/serde",
]

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

[[example]]
name = "air_temperature"
path = "examples/air_temperature.rs"

[[example]]
name = "four_day_outlook"
path = "examples/four_day_outlook.rs"

[[example]]
name = "pm25"
path = "examples/pm25.rs"

[[example]]
name = "psi"
path = "examples/psi.rs"

[[example]]
name = "rainfall"
path = "examples/rainfall.rs"

[[example]]
name = "relative_humidity"
path = "examples/relative_humidity.rs"

[[example]]
name = "twenty_four_hr_forecast"
path = "examples/twenty_four_hr_forecast.rs"

[[example]]
name = "two_hr_forecast"
path = "examples/two_hr_forecast.rs"

[[example]]
name = "uv"
path = "examples/uv.rs"

[[example]]
name = "weather_lightning"
path = "examples/weather_lightning.rs"

[[example]]
name = "weather_wbgt"
path = "examples/weather_wbgt.rs"

[[example]]
name = "wind_direction"
path = "examples/wind_direction.rs"

[[example]]
name = "wind_speed"
path = "examples/wind_speed.rs"

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

[dependencies.http]
version = "1"

[dependencies.nutype]
version = "0.7"
features = [
    "serde",
    "regex",
]

[dependencies.regex]
version = "1"

[dependencies.satay-runtime]
version = "0.4.0"
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dev-dependencies.reqwest]
version = "0.13.3"

[dev-dependencies.satay-reqwest]
version = "0.4.0"

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