Skip to main content

Crate vld_app

Crate vld_app 

Source
Expand description

§vld-app — application-edge integrations for the vld validation library

Validate what an application reads at its edges with vld schemas, one module per integration. Every library-backed module is behind its feature; none is on by default:

vld-app = { version = "0.8", features = ["config-rs", "clap"] }
ModuleFeatureLibrary
configconfig-rs and / or figmentconfig-rs 0.14 – 0.15, figment 0.10
envenv and / or dotenvenvironment variables (std); .env files (dotenvy 0.15)
clapclapclap 4 argument validation (enables vld/derive)
tauri—Tauri IPC payloads (no tauri dependency)
ⓘ
use vld_app::config::from_config;

Modules§

clap
vld_app::clap — validate clap arguments with vld
config
vld_app::config — validate configuration with vld
env
vld_app::env — validate configuration from environment variables
tauri
vld_app::tauri — Tauri IPC validation for vld