Module rune_modules::toml

source ·
Expand description

The native toml module for the Rune Language.

§Usage

Add the following to your Cargo.toml:

rune-modules = { version = "0.13.2", 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§

  • Deserializer types for the toml module.
  • Serializer types for the toml module.

Functions§

  • Construct the toml module.