tree-sitter-loader 0.25.3

Locates, builds, and loads tree-sitter grammars at runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    println!(
        "cargo:rustc-env=BUILD_TARGET={}",
        std::env::var("TARGET").unwrap()
    );
    println!(
        "cargo:rustc-env=BUILD_HOST={}",
        std::env::var("HOST").unwrap()
    );

    let emscripten_version = std::fs::read_to_string("emscripten-version").unwrap();
    println!("cargo:rustc-env=EMSCRIPTEN_VERSION={emscripten_version}");
}