Expand description
§conferencier
Conferencier is a minimal, easy-to-use TOML configuration library for Tokio applications. It maps typed Rust structs to TOML sections, nested tables and arrays of tables, and shares each component’s configuration and runtime state through an explicit SharedScope handle.
The guide explains how the store, scopes and tables work together, how to use derive attributes, and how to migrate between releases. The API reference documents each public type and method.
Conferencier does not layer configuration sources, watch files or validate application-specific rules. Saving a scope replaces its section; serializing the store does not preserve comments or formatting. See saving to files for details.
The library enables only Tokio’s sync, rt and fs features; applications
enable runtime features such as macros and rt-multi-thread themselves.
Invalid input handled by the library returns an error rather than panicking,
with documented exceptions for caller-supplied code, file operations without a
Tokio runtime, and stack overflows from deeply nested values built in code or
parsed with toml/unbounded. See
runtime requirements
and nesting limits.
§Start here
- Concepts: the store, scopes, loading, saving, shared runtime state and locking.
- Derive attributes: configure how Rust fields map to TOML.
- Nested tables: represent nested TOML tables with plain structs.
- Saving to files: understand serialization, file replacement, targets and permissions.
- Troubleshooting: find common errors and their solutions.
- Migration: upgrade code and configuration from earlier releases.
The default derive feature re-exports ConfigScope and ConfigTable alongside their traits. Store access and manual trait implementations are available without that feature; see the API reference and the concepts.
Re-exports§
pub use toml;
Modules§
- guide
- The guide explains how conferencier works as a whole. The crate documentation gives a quick overview, and the documentation of each item, such as
ConfigStore, describes its exact behavior. - table_
path - Diagnostic paths for manual
ConfigScopeandConfigTableimplementations.
Structs§
- Config
Store - Shared handle to an in-memory TOML configuration document.
- Datetime
- TOML date, time or datetime value, usable directly in derived scopes and tables.
Enums§
- Error
- Errors returned by
ConfigStoreand by derivedConfigScopeandConfigTableimplementations. - IoOperation
- The high-level file-operation phase that failed.
Traits§
- Config
Scope - A component’s typed configuration and runtime state, shared between Tokio tasks.
- Config
Table - A plain configuration value stored as a nested TOML table.
Type Aliases§
- Result
- Result type returned by conferencier operations.
- Shared
Scope - Shared handle to a scope’s configuration and runtime state.
Derive Macros§
- Config
Scope - Derives
conferencier::ConfigScopefor a named-field configuration struct. - Config
Table - Derives
conferencier::ConfigTablefor a plain nested configuration value.