sails-idl-parser 0.9.0

IDL parser for the Sails framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::env;

fn main() {
    if let Ok(target_arch) = env::var("CARGO_CFG_TARGET_ARCH") {
        if target_arch == "wasm32" {
            println!("cargo:rustc-link-arg=--import-memory");
        }
    }

    lalrpop::Configuration::new()
        .use_cargo_dir_conventions()
        .emit_rerun_directives(true)
        .process_file("src/grammar.lalrpop")
        .unwrap();
}