proxmox/proxmox-schema/src/lib.rs
Wolfgang Bumiller 59a9ddbf06 schema: add const-fn helper to compare strings
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2025-02-19 13:02:18 +01:00

36 lines
766 B
Rust

//! Proxmox schema module.
//!
//! This provides utilities to define APIs in a declarative way using
//! Schemas. Primary use case it to define REST/HTTP APIs. Another use case
//! is to define command line tools using Schemas. Finally, it is
//! possible to use schema definitions to derive configuration file
//! parsers.
#![deny(unsafe_op_in_unsafe_fn)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#[cfg(feature = "api-macro")]
pub use proxmox_api_macro::api;
mod api_type_macros;
#[macro_use]
mod const_regex;
pub use const_regex::ConstRegexPattern;
pub mod de;
pub mod format;
pub mod ser;
pub mod property_string;
mod schema;
pub use schema::*;
pub mod upid;
#[cfg(feature = "api-types")]
pub mod api_types;
pub(crate) mod const_test_utils;