Expand description
Compiler configuration for extensibility
This module provides configuration types that allow external projects to extend the Seq compiler with additional builtins without modifying the core compiler.
§Example
ⓘ
use seqc::{CompilerConfig, ExternalBuiltin};
// Define builtins provided by your runtime extension
let config = CompilerConfig::new()
.with_builtin(ExternalBuiltin::new(
"journal-append",
"my_runtime_journal_append",
))
.with_builtin(ExternalBuiltin::new(
"actor-send",
"my_runtime_actor_send",
));
// Compile with extended builtins
compile_file_with_config(source_path, output_path, false, &config)?;Structs§
- Compiler
Config - Configuration for the Seq compiler
- External
Builtin - Definition of an external builtin function