From 2512f3ab179867de282b89221a62c55ff6feffa3 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Sun, 28 Jul 2024 10:58:29 +0300 Subject: [PATCH] docs: document rust library features --- lib/binding_rust/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/binding_rust/README.md b/lib/binding_rust/README.md index 2dbe9070..9eff5d6c 100644 --- a/lib/binding_rust/README.md +++ b/lib/binding_rust/README.md @@ -106,3 +106,11 @@ assert_eq!( ``` [tree-sitter]: https://github.com/tree-sitter/tree-sitter + +## Features + +- **std** - This feature is enabled by default and allows `tree-sitter` to use the standard library. + - Error types implement the `std::error:Error` trait. + - `regex` performance optimizations are enabled. + - The DOT graph methods are enabled. +- **wasm** - This feature is enabled for Wasm targets. `tree-sitter` to be built for Wasm targets using the `wasmtime-c-api` crate.