tree-sitter/lib/Cargo.toml

67 lines
1.5 KiB
TOML
Raw Normal View History

[package]
name = "tree-sitter"
version.workspace = true
description = "Rust bindings to the Tree-sitter parsing library"
authors.workspace = true
edition.workspace = true
2024-03-12 09:36:54 -04:00
rust-version = "1.65"
readme = "binding_rust/README.md"
homepage.workspace = true
repository.workspace = true
license.workspace = true
keywords.workspace = true
2024-10-06 01:36:44 -04:00
categories = [
"api-bindings",
"external-ffi-bindings",
"parsing",
"text-editors",
]
build = "binding_rust/build.rs"
links = "tree-sitter"
include = [
"/binding_rust/*",
"/Cargo.toml",
"/src/*.h",
"/src/*.c",
"/src/portable/*",
"/src/unicode/*",
2024-02-21 14:50:56 -05:00
"/src/wasm/*",
"/include/tree_sitter/api.h",
]
2024-10-23 19:29:01 +03:00
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-unknown-linux-gnu", "x86_64-pc-windows-gnu"]
[lints]
workspace = true
[features]
2024-05-30 16:05:30 +08:00
default = ["std"]
std = ["regex/std", "regex/perf", "regex-syntax/unicode"]
2024-10-23 19:29:01 +03:00
wasm = ["std", "wasmtime-c-api"]
[dependencies]
2024-12-16 00:48:20 -05:00
regex = { version = "1.11.1", default-features = false, features = ["unicode"] }
regex-syntax = { version = "0.8.5", default-features = false }
tree-sitter-language = { version = "0.1", path = "language" }
streaming-iterator = "0.1.9"
2022-10-24 16:23:09 -07:00
[dependencies.wasmtime-c-api]
2024-12-16 00:48:20 -05:00
version = "27.0.0"
2022-10-24 16:23:09 -07:00
optional = true
2023-10-27 12:43:16 +01:00
package = "wasmtime-c-api-impl"
2022-10-24 16:23:09 -07:00
default-features = false
2024-12-16 00:48:20 -05:00
features = ["cranelift", "gc-drc"]
[build-dependencies]
2024-12-16 00:48:20 -05:00
bindgen = { version = "0.71.1", optional = true }
cc.workspace = true
2024-12-16 00:48:20 -05:00
serde_json.workspace = true
[lib]
path = "binding_rust/lib.rs"