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§
Functions§
- module
- Construct the
tomlmodule.