Cargo Features

Tree-sitter has no features set by default.

tree-sitter = { version = "0.21.0", features = ["wasm", "bindgen"] }
wasm = wasmtime, wasmtime-c-api

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

bindgen build implicit feature

Enables bindgen


Automatically generates Rust FFI bindings to C and C++ libraries

wasmtime wasm?
wasmtime-c-api wasm?

Enables wasmtime-c-api-impl