blockly-rust-compiler 0.1.1

Rust compiler integration library for visual programming with Blockly - validate and check generated code
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Main entry point for the Rust Compiler Service

#[cfg(all(feature = "web-service", feature = "cli"))]
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    blockly_rust_compiler::compiler_service::cli::run().await
}

#[cfg(not(all(feature = "web-service", feature = "cli")))]
fn main() {
    eprintln!("This binary requires both 'web-service' and 'cli' features.");
    eprintln!("Build with: cargo build --features full");
    std::process::exit(1);
}