Module config

Module config 

Source
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§

CompilerConfig
Configuration for the Seq compiler
ExternalBuiltin
Definition of an external builtin function