2019-01-04 17:01:26 -08:00
|
|
|
[package]
|
|
|
|
|
name = "tree-sitter"
|
2024-02-24 17:25:53 -05:00
|
|
|
version.workspace = true
|
2019-01-04 17:01:26 -08:00
|
|
|
description = "Rust bindings to the Tree-sitter parsing library"
|
2024-02-14 14:10:51 -05:00
|
|
|
authors.workspace = true
|
|
|
|
|
edition.workspace = true
|
2025-01-12 04:06:59 -05:00
|
|
|
rust-version = "1.76"
|
2019-05-07 10:27:45 -07:00
|
|
|
readme = "binding_rust/README.md"
|
2024-02-14 14:10:51 -05:00
|
|
|
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",
|
|
|
|
|
]
|
2019-01-04 17:01:26 -08:00
|
|
|
|
2019-05-07 10:27:45 -07:00
|
|
|
build = "binding_rust/build.rs"
|
2023-11-20 09:39:19 -05:00
|
|
|
links = "tree-sitter"
|
2019-05-07 10:27:45 -07:00
|
|
|
|
2019-01-04 17:01:26 -08:00
|
|
|
include = [
|
2024-02-14 14:10:51 -05:00
|
|
|
"/binding_rust/*",
|
|
|
|
|
"/Cargo.toml",
|
|
|
|
|
"/src/*.h",
|
|
|
|
|
"/src/*.c",
|
2024-10-04 23:15:17 -04:00
|
|
|
"/src/portable/*",
|
2024-02-14 14:10:51 -05:00
|
|
|
"/src/unicode/*",
|
2024-02-21 14:50:56 -05:00
|
|
|
"/src/wasm/*",
|
2024-02-14 14:10:51 -05:00
|
|
|
"/include/tree_sitter/api.h",
|
2019-01-04 17:01:26 -08:00
|
|
|
]
|
|
|
|
|
|
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"]
|
|
|
|
|
|
2024-10-06 13:42:14 -04:00
|
|
|
[lints]
|
|
|
|
|
workspace = true
|
|
|
|
|
|
2022-01-03 10:57:01 -08:00
|
|
|
[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"]
|
2022-01-03 10:57:01 -08:00
|
|
|
|
2019-01-04 17:01:26 -08:00
|
|
|
[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 }
|
2024-02-23 14:12:58 -08:00
|
|
|
tree-sitter-language = { version = "0.1", path = "language" }
|
2024-09-29 23:34:48 +02:00
|
|
|
streaming-iterator = "0.1.9"
|
2022-10-24 16:23:09 -07:00
|
|
|
|
|
|
|
|
[dependencies.wasmtime-c-api]
|
2025-01-26 11:51:06 +01:00
|
|
|
version = "29.0.1"
|
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"]
|
2019-01-04 17:01:26 -08:00
|
|
|
|
|
|
|
|
[build-dependencies]
|
2024-12-16 00:48:20 -05:00
|
|
|
bindgen = { version = "0.71.1", optional = true }
|
2024-02-08 06:43:21 -05:00
|
|
|
cc.workspace = true
|
2024-12-16 00:48:20 -05:00
|
|
|
serde_json.workspace = true
|
2019-01-04 17:01:26 -08:00
|
|
|
|
|
|
|
|
[lib]
|
2019-05-07 10:27:45 -07:00
|
|
|
path = "binding_rust/lib.rs"
|