- Implement orchestration logic adhering to hexagonal architecture - Enforce invariant: last_ip advances ONLY when all subscribers succeed - Preserve rotation state across no-change and failure cycles - Add in-memory fake test suite proving all state transition invariants
36 lines
755 B
TOML
36 lines
755 B
TOML
[package]
|
|
name = "ddns-monitor"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
description = "Provider-agnostic DDNS monitor with plugin architecture"
|
|
license = "Unlicense"
|
|
|
|
[lib]
|
|
name = "ddns_monitor"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "ddns-monitor"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# Serialization — state JSON and config TOML
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
toml = "0.8"
|
|
jiff = "0.2"
|
|
|
|
# HTTP client — synchronous, no tokio runtime, TLS via bundled rustls
|
|
ureq = { version = "3", features = ["rustls"] }
|
|
|
|
# Error handling
|
|
thiserror = "2"
|
|
|
|
# Logging
|
|
log = "0.4"
|
|
env_logger = "0.11"
|
|
|
|
[dev-dependencies]
|
|
# Lightweight HTTP mock server for testing IpResolver without real network
|
|
mockito = "1"
|