v0.1.3-pre.010
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
// file: crates/ksp-config-lib/src/lib.rs
|
||||
// version: 5
|
||||
// version: 6
|
||||
#![warn(missing_docs)]
|
||||
#![deny(unreachable_pub)]
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
//! KSP-owned application configuration facade.
|
||||
//!
|
||||
//! `0.1.3-pre.009` owns bootstrap roots, the logical file registry, generic JSON/JSON Schema loading, standard-document profile resolution and generic composite
|
||||
//! resolution by stable `file_id`. The standard Logging document remains the first registered runtime document. Environment substitution, sensitivity and persistence
|
||||
//! remain in later bounded prereleases.
|
||||
//! `0.1.3-pre.010` owns bootstrap roots, the logical file registry, generic JSON/JSON Schema loading, standard-document profile resolution, generic composite
|
||||
//! resolution and KSP/KSPB environment resolution through process + `.env` + fallback precedence. The standard Logging document remains the first registered
|
||||
//! runtime document. Sensitivity-aware safe values and persistence remain in later bounded prereleases.
|
||||
|
||||
mod bootstrap;
|
||||
mod composite;
|
||||
mod document;
|
||||
mod environment;
|
||||
mod error;
|
||||
mod profile;
|
||||
mod registry;
|
||||
@@ -35,6 +36,16 @@ pub use self::composite::ResolvedConfigComposite;
|
||||
pub use self::document::ConfigDocumentEngine;
|
||||
/// A Config-managed JSON document after syntax, schema and current semantic validation.
|
||||
pub use self::document::ConfigJsonDocument;
|
||||
/// Config-owned snapshot of KSP/KSPB process environment values and the local `.env` file.
|
||||
pub use self::environment::ConfigEnvironment;
|
||||
/// Source that supplied one resolved Config environment variable.
|
||||
pub use self::environment::ConfigEnvironmentSource;
|
||||
/// One resolved Config environment variable and its winning source.
|
||||
pub use self::environment::ConfigEnvironmentValue;
|
||||
/// Versioned environment contract template expected at the repository/runtime root.
|
||||
pub use self::environment::DEFAULT_DOTENV_EXAMPLE_PATH;
|
||||
/// Default local environment file read by Config from the process launch directory.
|
||||
pub use self::environment::DEFAULT_DOTENV_PATH;
|
||||
/// Error code used when a Config bootstrap argument is missing its value.
|
||||
pub use self::error::ERROR_CODE_BOOTSTRAP_ARGUMENT_MISSING_VALUE;
|
||||
/// Error code used when a Config bootstrap path is empty, inaccessible, or resolves to an existing non-directory path.
|
||||
@@ -43,6 +54,18 @@ pub use self::error::ERROR_CODE_BOOTSTRAP_INVALID_PATH;
|
||||
pub use self::error::ERROR_CODE_COMPOSITE_REFERENCE_INVALID;
|
||||
/// Error code used when a schema-valid Config document violates KSP semantic invariants.
|
||||
pub use self::error::ERROR_CODE_DOCUMENT_SEMANTIC_INVALID;
|
||||
/// Error code used when the local `.env` file cannot be read for a reason other than absence.
|
||||
pub use self::error::ERROR_CODE_DOTENV_FILE_READ_FAILED;
|
||||
/// Error code used when the local `.env` file contains invalid syntax.
|
||||
pub use self::error::ERROR_CODE_DOTENV_SYNTAX_INVALID;
|
||||
/// Error code used when a Config environment placeholder is malformed.
|
||||
pub use self::error::ERROR_CODE_ENVIRONMENT_PLACEHOLDER_INVALID;
|
||||
/// Error code used when a supported Config environment variable has a non-UTF-8 process value.
|
||||
pub use self::error::ERROR_CODE_ENVIRONMENT_VALUE_INVALID;
|
||||
/// Error code used when a Config environment variable name is invalid or outside KSP/KSPB namespaces.
|
||||
pub use self::error::ERROR_CODE_ENVIRONMENT_VARIABLE_INVALID;
|
||||
/// Error code used when a referenced Config environment variable is absent and has no fallback.
|
||||
pub use self::error::ERROR_CODE_ENVIRONMENT_VARIABLE_MISSING;
|
||||
/// Error code used when the same logical Config file identifier is registered more than once.
|
||||
pub use self::error::ERROR_CODE_FILE_ID_DUPLICATE;
|
||||
/// Error code used when a logical Config file identifier is malformed.
|
||||
|
||||
Reference in New Issue
Block a user