Skip to main content

Crate mlld

Crate mlld 

Source
Expand description

mlld - Rust wrapper for the mlld CLI.

§Example

use mlld::Client;

let client = Client::new();
let output = client.process(r#"/var @name = "World"
Hello, @name!"#, None)?;
assert_eq!(output.trim(), "Hello, World!");

Structs§

AnalysisError
A parse or analysis error.
AnalyzeResult
Static analysis of an mlld module.
Client
Wrapper around the mlld CLI.
Effect
An output effect from execution.
Executable
An executable defined in a module.
ExecuteHandle
In-flight execute request handle.
ExecuteOptions
Options for execute().
ExecuteResult
Structured output from execute().
Guard
A guard defined in a module.
Import
An import statement in a module.
Metrics
Execution statistics.
Needs
Capability requirements for a module.
ProcessHandle
In-flight process request handle.
ProcessOptions
Options for process().
StateWrite
A write to the state:// protocol.

Enums§

Error
Error type for mlld operations.

Functions§

analyze
Analyze an mlld module.
execute
Run an mlld file.
process
Execute an mlld script.

Type Aliases§

Result
Result type alias for mlld operations.