Port of the subset of Microwaveprop.Weather.NexradClient used by f00's chain step: 5-min-rounded IEM n0q PNG fetch, palette-indexed decode via the png crate, and per-POI max_reflectivity_dbz extraction from a 25-pixel half-box (matches Elixir's DEFAULT_BOX_HALF). The palette↔dBZ math and (lat, lon)↔pixel projection are bit-for-bit copies of the Elixir formulas. 6 pure-math unit tests cover pixel mapping, box clipping, and timestamp rounding. Network-live golden fixture deferred until the full Stream A wiring lands.
40 lines
1.1 KiB
TOML
40 lines
1.1 KiB
TOML
[package]
|
|
name = "prop_grid_rs"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[lib]
|
|
name = "prop_grid_rs"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "worker"
|
|
path = "src/bin/worker.rs"
|
|
|
|
[dependencies]
|
|
tokio = { version = "1", features = ["full"] }
|
|
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono", "macros"] }
|
|
reqwest = { version = "0.12", features = ["rustls-tls", "stream"], default-features = false }
|
|
bytes = "1"
|
|
anyhow = "1"
|
|
thiserror = "2"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
bincode = "1.3"
|
|
num_cpus = "1"
|
|
byteorder = "1"
|
|
futures = "0.3"
|
|
rayon = "1.10"
|
|
axum = { version = "0.7", default-features = false, features = ["http1", "tokio"] }
|
|
prometheus = { version = "0.13", default-features = false }
|
|
png = "0.17"
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["full", "test-util"] }
|
|
pretty_assertions = "1"
|
|
tempfile = "3"
|