Skip to main content

vld_app/
lib.rs

1//! # vld-app — application-edge integrations for the `vld` validation library
2//!
3//! Validate what an application reads at its edges with `vld` schemas, one
4//! module per integration. Every library-backed module is behind its
5//! feature; none is on by default:
6//!
7//! ```toml
8//! vld-app = { version = "0.8", features = ["config-rs", "clap"] }
9//! ```
10//!
11//! | Module | Feature | Library |
12//! |---|---|---|
13//! | `config` | `config-rs` and / or `figment` | config-rs 0.14 – 0.15, figment 0.10 |
14//! | `env` | `env` and / or `dotenv` | environment variables (std); `.env` files (dotenvy 0.15) |
15//! | `clap` | `clap` | clap 4 argument validation (enables `vld/derive`) |
16//! | [`tauri`] | — | Tauri IPC payloads (no `tauri` dependency) |
17//!
18//! ```ignore
19//! use vld_app::config::from_config;
20//! ```
21#![warn(missing_docs)]
22
23#[cfg(feature = "clap")]
24pub mod clap;
25#[cfg(any(feature = "config-rs", feature = "figment"))]
26pub mod config;
27#[cfg(feature = "env")]
28pub mod env;
29pub mod tauri;