Skip to main content

Crate intarsia_build

Crate intarsia_build 

Source
Expand description

Build-time helpers for compiling ISLE DSL files to Rust code.

This crate provides utilities for Cargo build scripts to compile ISLE (Instruction Selection Lowering Expressions) domain-specific language files into Rust code. It uses the cranelift-isle compiler internally.

§Example

In your Cargo.toml:

[dependencies]
intarsia = "0.1"

[build-dependencies]
intarsia-build = "*"

In your build.rs:

fn main() {
    intarsia_build::compile_isle_auto().unwrap();
}

Functions§

compile_isle_auto
Automatically discover and compile ISLE files in a conventional location.
compile_isle_dir
Compile all ISLE files in a specified directory.
compile_isle_file
Compile a single ISLE file to Rust code.
compile_isle_files
Compile multiple specific ISLE files.