Skip to content

Rust

The native crate. Compile a CompileSpec with compile, or drive a Compiler handle with the JSON command protocol every other binding uses.

bash
cargo add wickra-compile
rust
use compile_core::{compile, CompileSpec};

let spec = CompileSpec::from_json(SPEC).expect("valid spec");
let generated = compile(&spec).expect("compile");

println!("{}", generated.manifest.project_hash);

More