rust-port/wifi-densepose-rs/crates/wifi-densepose-config/README.md
Configuration management for the WiFi-DensePose pose estimation system.
wifi-densepose-config provides a unified configuration layer that merges values from environment
variables, TOML/YAML files, and CLI overrides into strongly-typed Rust structs. Built on the
config, dotenvy, and
envy ecosystem from the workspace.
Status: This crate is currently a stub. The intended API surface is documented below.
.env, TOML files, YAML files, and
environment variables with well-defined precedence.development, production, testing) with per-profile
overrides.// Intended usage (not yet implemented)
use wifi_densepose_config::AppConfig;
fn main() -> anyhow::Result<()> {
// Loads from env, config.toml, and CLI overrides
let config = AppConfig::load()?;
println!("Server bind: {}", config.server.bind_address);
println!("CSI sample rate: {} Hz", config.signal.sample_rate);
println!("Model path: {}", config.nn.model_path.display());
Ok(())
}
# config.toml
[server]
bind_address = "0.0.0.0:3000"
websocket_path = "/ws/poses"
[signal]
sample_rate = 100
subcarrier_count = 56
hampel_window = 5
[nn]
model_path = "./models/densepose.rvf"
backend = "ort" # ort | candle | tch
batch_size = 8
[hardware]
esp32_udp_port = 5005
serial_baud = 921600
[database]
url = "sqlite://data/wifi-densepose.db"
max_connections = 5
| Crate | Role |
|---|---|
wifi-densepose-core | Shared types and traits |
wifi-densepose-api | REST API (consumer) |
wifi-densepose-db | Database layer (consumer) |
wifi-densepose-cli | CLI (consumer) |
wifi-densepose-sensing-server | Sensing server (consumer) |
MIT OR Apache-2.0