Module irx_config::parsers::toml

source ·
Expand description

This module provide TOML parser implementation.

To enable that parser one has to add the following to Cargo.toml:

[dependencies]
irx-config = { version = "2.2", features = ["toml-parser"] }

Example

use irx_config::ConfigBuilder;
use irx_config::parsers::toml::ParserBuilder;

let config = ConfigBuilder::default()
    .append_parser(
        ParserBuilder::default()
            .default_path("config.toml")
            .path_option("config")
            .build()?,
    )
    .load()?;

Structs

Enums

  • All errors for TOML parser.

Type Aliases