| Crates.io | cadi-builder |
| lib.rs | cadi-builder |
| version | 2.0.0 |
| created_at | 2026-01-11 23:20:41.993173+00 |
| updated_at | 2026-01-12 06:23:04.536558+00 |
| description | CADI build engine and transformation pipeline for WASM and binaries |
| homepage | https://conflictingtheories.github.io/cadi |
| repository | https://github.com/ConflictingTheories/cadi |
| max_upload_size | |
| id | 2036702 |
| size | 67,501 |
CADI build engine and transformation pipeline for WASM and binaries.
CADI is a universal build and distribution system. cadi-builder implements the transformation pipeline that converts source code and artifacts into WASM IR, binaries, and containers.
Add this to your Cargo.toml:
[dependencies]
cadi-builder = "1.0"
use cadi_builder::Builder;
use cadi_core::Chunk;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let mut builder = Builder::new();
// Add input chunks
let chunk = Chunk {
id: "chunk-1".to_string(),
content: b"fn main() {}".to_vec(),
..Default::default()
};
builder.add_chunk(chunk)?;
// Transform to WASM IR
let ir_output = builder.transform_to_ir().await?;
// Build to binary
let binary = builder.build_binary().await?;
Ok(())
}
Uses thiserror for comprehensive error types:
match builder.build() {
Ok(result) => println!("Build succeeded"),
Err(e) => eprintln!("Build failed: {}", e),
}
Full API documentation at docs.rs/cadi-builder
MIT License