Skip to main content

hyperlane_plugin_env/
lib.rs

1//! hyperlane-plugin-env
2//!
3//! Zero-dependency `.env` parser, layered typed environment configuration
4//! loader, redacting [`SecretValue`] wrapper, and `HYPERLANE_*` [`ServerConfig`]
5//! builder for Hyperlane.
6
7mod r#const;
8mod r#enum;
9mod r#fn;
10mod r#impl;
11mod r#static;
12mod r#struct;
13
14#[cfg(test)]
15#[path = "../tests/mod.rs"]
16mod tests;
17
18pub use {r#const::*, r#enum::*, r#fn::*, r#struct::*};
19
20pub(crate) use r#static::*;
21
22use std::{
23    collections::BTreeMap,
24    env,
25    error::Error,
26    fmt::{self, Debug, Display, Formatter},
27    fs, io,
28    path::Path,
29    str::{Chars, FromStr},
30    sync::OnceLock,
31    time::Duration,
32};
33
34use hyperlane::{ServerConfig, ServerProtocol, TlsConfig};