Cargo Features

[dependencies]
diffsitter = { version = "0.8.3", default-features = false, features = ["better-build-info", "dynamic-grammar-libs", "static-grammar-libs", "jemallocator"] }
default = static-grammar-libs

The static-grammar-libs feature is set by default whenever diffsitter is added without default-features = false somewhere in the dependency tree.

better-build-info = shadow-rs

Enable full build info as a subcommand. This takes longer to build so it's generally just enabled for releases.

dynamic-grammar-libs

Enable dynamically loading libraries instead of compiling the libraries as submodules.

static-grammar-libs default = lazy_static

Compile the static tree-sitter grammars from the submodules in this repo.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

jemallocator implicit feature

Enables jemallocator

jemallocator:

A Rust allocator backed by jemalloc

shadow-rs better-build-info?
lazy_static static-grammar-libs