Module rune_modules::toml[][src]

Expand description

The native toml module for the Rune Language.

Usage

Add the following to your Cargo.toml:

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

Install it into your context:

let mut context = runestick::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);
}

Functions

Construct the toml module.