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.12.0", 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);
}
Functions
Construct the toml
module.