Skip to main content

Crate eure_toml

Crate eure_toml 

Source
Expand description

TOML conversion support for Eure format.

This crate provides conversion from TOML documents to Eure’s SourceDocument, preserving section ordering.

§Example

use eure_toml::to_source_document;

let toml_str = r#"
[server]
host = "localhost"
port = 8080
"#;

let source_doc = to_source_document(toml_str).unwrap();

Structs§

TomlToEureDocument
TomlToEureSource

Enums§

TomlToEureError
Errors that can occur when converting TOML to SourceDocument.

Functions§

build_source_doc
Build a Doc IR from a SourceDocument.
format_source_document
Format a SourceDocument to Eure source string.
to_source_document
Convert a TOML string to a SourceDocument.