Module toml

Module toml 

Source
Expand description

The native toml module for the Rune Language.

§Usage

Add the following to your Cargo.toml:

rune-modules = { version = "0.14.1", features = ["toml"] }

Install it into your context:

let mut context = rune::Context::with_default_modules()?;
context.install(rune_modules::toml::module(true)?)?;

Use it in Rune:

use toml;

fn main() {
    let data = toml::from_string("[hello]\nworld = 42");
    dbg(data);
}

Modules§

de
Deserializer types for the toml module.
ser
Serializer types for the toml module.

Functions§

module
Construct the toml module.