Remove vendored wasmtime headers

When building rust binding, use wasmtime headers provided via cargo
by the wasmtime-c-api crate.

Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
Max Brunsfeld 2024-02-26 10:48:58 -08:00
parent 721eca2394
commit b40a42ac0f
19 changed files with 5 additions and 4077 deletions

View file

@ -29,7 +29,11 @@ fn main() {
println!("cargo:rerun-if-env-changed=CARGO_FEATURE_WASM");
if env::var("CARGO_FEATURE_WASM").is_ok() {
config.define("TREE_SITTER_FEATURE_WASM", "");
config
.define("TREE_SITTER_FEATURE_WASM", "")
.define("static_assert(...)", "")
.include(env::var("DEP_WASMTIME_C_API_INCLUDE").unwrap())
.include(env::var("DEP_WASMTIME_C_API_WASM_INCLUDE").unwrap());
}
let manifest_path = Path::new(env!("CARGO_MANIFEST_DIR"));