mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:26:23 -04:00
treewide: add taplo config and reformat toml files
This commit is contained in:
parent
921af361cf
commit
ebd2a56b5d
22
.github/cliff.toml
vendored
22
.github/cliff.toml
vendored
|
|
@ -43,16 +43,16 @@ commit_preprocessors = [
|
|||
]
|
||||
# regex for parsing and grouping commits
|
||||
commit_parsers = [
|
||||
{ message = "!:", group = "<!-- 0 -->Breaking" },
|
||||
{ message = "^feat", group = "<!-- 1 -->Features" },
|
||||
{ message = "^fix", group = "<!-- 2 -->Bug Fixes" },
|
||||
{ message = "^perf", group = "<!-- 3 -->Performance" },
|
||||
{ message = "^doc", group = "<!-- 4 -->Documentation" },
|
||||
{ message = "^refactor", group = "<!-- 5 -->Refactor" },
|
||||
{ message = "^test", group = "<!-- 6 -->Testing" },
|
||||
{ message = "^build", group = "<!-- 7 -->Build System and CI" },
|
||||
{ message = "^ci", group = "<!-- 7 -->Build System and CI" },
|
||||
{ message = ".*", group = "<!-- 8 -->Other" },
|
||||
{ group = "<!-- 0 -->Breaking", message = "!:" },
|
||||
{ group = "<!-- 1 -->Features", message = "^feat" },
|
||||
{ group = "<!-- 2 -->Bug Fixes", message = "^fix" },
|
||||
{ group = "<!-- 3 -->Performance", message = "^perf" },
|
||||
{ group = "<!-- 4 -->Documentation", message = "^doc" },
|
||||
{ group = "<!-- 5 -->Refactor", message = "^refactor" },
|
||||
{ group = "<!-- 6 -->Testing", message = "^test" },
|
||||
{ group = "<!-- 7 -->Build System and CI", message = "^build" },
|
||||
{ group = "<!-- 7 -->Build System and CI", message = "^ci" },
|
||||
{ group = "<!-- 8 -->Other", message = ".*" },
|
||||
]
|
||||
# filter out the commits that are not matched by commit parsers
|
||||
filter_commits = false
|
||||
|
|
@ -69,4 +69,4 @@ sort_commits = "oldest"
|
|||
|
||||
[remote.github]
|
||||
owner = "tree-sitter"
|
||||
repo = "tree-sitter"
|
||||
repo = "tree-sitter"
|
||||
|
|
|
|||
20
.taplo.toml
Normal file
20
.taplo.toml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[formatting]
|
||||
align_entries = true
|
||||
column_width = 100
|
||||
compact_arrays = false
|
||||
reorder_inline_tables = true
|
||||
reorder_keys = true
|
||||
|
||||
[[rule]]
|
||||
include = [ "**/Cargo.toml" ]
|
||||
keys = [ "package" ]
|
||||
|
||||
[rule.formatting]
|
||||
reorder_keys = false
|
||||
|
||||
[[rule]]
|
||||
include = [ "**/Cargo.toml" ]
|
||||
keys = [ "profile" ]
|
||||
|
||||
[rule.formatting]
|
||||
reorder_keys = false
|
||||
BIN
Cargo.lock
generated
BIN
Cargo.lock
generated
Binary file not shown.
113
Cargo.toml
113
Cargo.toml
|
|
@ -1,5 +1,5 @@
|
|||
[workspace]
|
||||
default-members = ["crates/cli"]
|
||||
default-members = [ "crates/cli" ]
|
||||
members = [
|
||||
"crates/cli",
|
||||
"crates/config",
|
||||
|
|
@ -14,25 +14,22 @@ members = [
|
|||
resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.27.0"
|
||||
authors = [
|
||||
"Max Brunsfeld <maxbrunsfeld@gmail.com>",
|
||||
"Amaan Qureshi <amaanq12@gmail.com>",
|
||||
]
|
||||
edition = "2024"
|
||||
authors = [ "Max Brunsfeld <maxbrunsfeld@gmail.com>", "Amaan Qureshi <amaanq12@gmail.com>" ]
|
||||
categories = [ "command-line-utilities", "parsing" ]
|
||||
edition = "2024"
|
||||
homepage = "https://tree-sitter.github.io/tree-sitter"
|
||||
keywords = [ "incremental", "parsing" ]
|
||||
license = "MIT"
|
||||
repository = "https://github.com/tree-sitter/tree-sitter"
|
||||
rust-version = "1.90"
|
||||
homepage = "https://tree-sitter.github.io/tree-sitter"
|
||||
repository = "https://github.com/tree-sitter/tree-sitter"
|
||||
license = "MIT"
|
||||
keywords = ["incremental", "parsing"]
|
||||
categories = ["command-line-utilities", "parsing"]
|
||||
version = "0.27.0"
|
||||
|
||||
[workspace.lints.clippy]
|
||||
cargo = { level = "warn", priority = -1 }
|
||||
dbg_macro = "deny"
|
||||
todo = "deny"
|
||||
pedantic = { level = "warn", priority = -1 }
|
||||
nursery = { level = "warn", priority = -1 }
|
||||
cargo = { level = "warn", priority = -1 }
|
||||
nursery = { level = "warn", priority = -1 }
|
||||
pedantic = { level = "warn", priority = -1 }
|
||||
todo = "deny"
|
||||
|
||||
# The lints below are a specific subset of the pedantic+nursery lints
|
||||
# that we explicitly allow in the tree-sitter codebase because they either:
|
||||
|
|
@ -42,42 +39,42 @@ cargo = { level = "warn", priority = -1 }
|
|||
# 3. Worsen the code
|
||||
|
||||
cast_possible_truncation = "allow"
|
||||
cast_possible_wrap = "allow"
|
||||
cast_precision_loss = "allow"
|
||||
cast_sign_loss = "allow"
|
||||
if_not_else = "allow"
|
||||
items_after_statements = "allow"
|
||||
missing_errors_doc = "allow"
|
||||
missing_panics_doc = "allow"
|
||||
multiple_crate_versions = "allow"
|
||||
option_if_let_else = "allow"
|
||||
similar_names = "allow"
|
||||
string_lit_as_bytes = "allow"
|
||||
struct_excessive_bools = "allow"
|
||||
too_many_lines = "allow"
|
||||
cast_possible_wrap = "allow"
|
||||
cast_precision_loss = "allow"
|
||||
cast_sign_loss = "allow"
|
||||
if_not_else = "allow"
|
||||
items_after_statements = "allow"
|
||||
missing_errors_doc = "allow"
|
||||
missing_panics_doc = "allow"
|
||||
multiple_crate_versions = "allow"
|
||||
option_if_let_else = "allow"
|
||||
similar_names = "allow"
|
||||
string_lit_as_bytes = "allow"
|
||||
struct_excessive_bools = "allow"
|
||||
too_many_lines = "allow"
|
||||
|
||||
[workspace.lints.rust]
|
||||
mismatched_lifetime_syntaxes = "allow"
|
||||
|
||||
[profile.optimize]
|
||||
inherits = "release"
|
||||
strip = true # Automatically strip symbols from the binary.
|
||||
lto = true # Link-time optimization.
|
||||
opt-level = 3 # Optimization level 3.
|
||||
codegen-units = 1 # Maximum size reduction optimizations.
|
||||
inherits = "release"
|
||||
codegen-units = 1 # Maximum size reduction optimizations.
|
||||
lto = true # Link-time optimization.
|
||||
opt-level = 3 # Optimization level 3.
|
||||
strip = true # Automatically strip symbols from the binary.
|
||||
|
||||
[profile.size]
|
||||
inherits = "optimize"
|
||||
opt-level = "s" # Optimize for size.
|
||||
inherits = "optimize"
|
||||
opt-level = "s" # Optimize for size.
|
||||
|
||||
[profile.release-dev]
|
||||
inherits = "release"
|
||||
lto = false
|
||||
debug = true
|
||||
inherits = "release"
|
||||
codegen-units = 256
|
||||
debug = true
|
||||
debug-assertions = true
|
||||
overflow-checks = true
|
||||
incremental = true
|
||||
codegen-units = 256
|
||||
incremental = true
|
||||
lto = false
|
||||
overflow-checks = true
|
||||
|
||||
[workspace.dependencies]
|
||||
ansi_colours = "1.2.3"
|
||||
|
|
@ -85,20 +82,20 @@ anstyle = "1.0.13"
|
|||
anyhow = "1.0.101"
|
||||
bstr = "1.12.0"
|
||||
cc = "1.2.56"
|
||||
clap = { version = "4.5.58", features = [
|
||||
clap = { features = [
|
||||
"cargo",
|
||||
"derive",
|
||||
"env",
|
||||
"help",
|
||||
"string",
|
||||
"unstable-styles",
|
||||
] }
|
||||
], version = "4.5.58" }
|
||||
clap_complete = "4.5.66"
|
||||
clap_complete_nushell = "4.5.10"
|
||||
crc32fast = "1.5.0"
|
||||
ctor = "0.2.9"
|
||||
ctrlc = { version = "3.5.2", features = ["termination"] }
|
||||
dialoguer = { version = "0.11.0", features = ["fuzzy-select"] }
|
||||
ctrlc = { features = [ "termination" ], version = "3.5.2" }
|
||||
dialoguer = { features = [ "fuzzy-select" ], version = "0.11.0" }
|
||||
etcetera = "0.11.0"
|
||||
fs4 = "0.12.0"
|
||||
glob = "0.3.3"
|
||||
|
|
@ -107,7 +104,7 @@ html-escape = "0.2.13"
|
|||
indexmap = "2.12.1"
|
||||
indoc = "2.0.6"
|
||||
libloading = "0.9.0"
|
||||
log = { version = "0.4.28", features = ["std"] }
|
||||
log = { features = [ "std" ], version = "0.4.28" }
|
||||
memchr = "2.7.6"
|
||||
once_cell = "1.21.3"
|
||||
pretty_assertions = "1.4.1"
|
||||
|
|
@ -115,10 +112,10 @@ rand = "0.8.5"
|
|||
regex = "1.12.3"
|
||||
regex-syntax = "0.8.9"
|
||||
rustc-hash = "2.1.1"
|
||||
schemars = "1.2.1"
|
||||
semver = { version = "1.0.27", features = ["serde"] }
|
||||
serde = { version = "1.0.219", features = ["derive"] }
|
||||
serde_json = { version = "1.0.149", features = ["preserve_order"] }
|
||||
schemars = "1.2.1"
|
||||
semver = { features = [ "serde" ], version = "1.0.27" }
|
||||
serde = { features = [ "derive" ], version = "1.0.228" }
|
||||
serde_json = { features = [ "preserve_order" ], version = "1.0.149" }
|
||||
similar = "2.7.0"
|
||||
smallbitvec = "2.6.0"
|
||||
streaming-iterator = "0.1.9"
|
||||
|
|
@ -131,11 +128,11 @@ walkdir = "2.5.0"
|
|||
wasmparser = "0.243.0"
|
||||
webbrowser = "1.0.5"
|
||||
|
||||
tree-sitter = { version = "0.27.0", path = "./lib" }
|
||||
tree-sitter-generate = { version = "0.27.0", path = "./crates/generate" }
|
||||
tree-sitter-loader = { version = "0.27.0", path = "./crates/loader" }
|
||||
tree-sitter-config = { version = "0.27.0", path = "./crates/config" }
|
||||
tree-sitter-highlight = { version = "0.27.0", path = "./crates/highlight" }
|
||||
tree-sitter-tags = { version = "0.27.0", path = "./crates/tags" }
|
||||
tree-sitter = { path = "./lib", version = "0.27.0" }
|
||||
tree-sitter-config = { path = "./crates/config", version = "0.27.0" }
|
||||
tree-sitter-generate = { path = "./crates/generate", version = "0.27.0" }
|
||||
tree-sitter-highlight = { path = "./crates/highlight", version = "0.27.0" }
|
||||
tree-sitter-loader = { path = "./crates/loader", version = "0.27.0" }
|
||||
tree-sitter-tags = { path = "./crates/tags", version = "0.27.0" }
|
||||
|
||||
tree-sitter-language = { version = "0.1", path = "./crates/language" }
|
||||
tree-sitter-language = { path = "./crates/language", version = "0.1" }
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
[package]
|
||||
name = "tree-sitter-cli"
|
||||
version.workspace = true
|
||||
description = "CLI tool for developing, testing, and using Tree-sitter parsers"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
name = "tree-sitter-cli"
|
||||
version.workspace = true
|
||||
description = "CLI tool for developing, testing, and using Tree-sitter parsers"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter-cli"
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories.workspace = true
|
||||
include = ["build.rs", "README.md", "LICENSE", "benches/*", "src/**"]
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter-cli"
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories.workspace = true
|
||||
include = [ "build.rs", "README.md", "LICENSE", "benches/*", "src/**" ]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
@ -21,63 +21,63 @@ workspace = true
|
|||
path = "src/tree_sitter_cli.rs"
|
||||
|
||||
[[bin]]
|
||||
doc = false
|
||||
name = "tree-sitter"
|
||||
path = "src/main.rs"
|
||||
doc = false
|
||||
|
||||
[[bench]]
|
||||
name = "benchmark"
|
||||
harness = false
|
||||
name = "benchmark"
|
||||
|
||||
[features]
|
||||
default = ["qjs-rt"]
|
||||
wasm = ["tree-sitter/wasm", "tree-sitter-loader/wasm"]
|
||||
qjs-rt = ["tree-sitter-generate/qjs-rt"]
|
||||
default = [ "qjs-rt" ]
|
||||
qjs-rt = [ "tree-sitter-generate/qjs-rt" ]
|
||||
wasm = [ "tree-sitter/wasm", "tree-sitter-loader/wasm" ]
|
||||
|
||||
[dependencies]
|
||||
ansi_colours.workspace = true
|
||||
anstyle.workspace = true
|
||||
anyhow.workspace = true
|
||||
bstr.workspace = true
|
||||
clap.workspace = true
|
||||
clap_complete.workspace = true
|
||||
ansi_colours.workspace = true
|
||||
anstyle.workspace = true
|
||||
anyhow.workspace = true
|
||||
bstr.workspace = true
|
||||
clap.workspace = true
|
||||
clap_complete.workspace = true
|
||||
clap_complete_nushell.workspace = true
|
||||
crc32fast.workspace = true
|
||||
ctor.workspace = true
|
||||
ctrlc.workspace = true
|
||||
dialoguer.workspace = true
|
||||
glob.workspace = true
|
||||
heck.workspace = true
|
||||
html-escape.workspace = true
|
||||
indoc.workspace = true
|
||||
log.workspace = true
|
||||
memchr.workspace = true
|
||||
rand.workspace = true
|
||||
regex.workspace = true
|
||||
schemars.workspace = true
|
||||
semver.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
similar.workspace = true
|
||||
streaming-iterator.workspace = true
|
||||
thiserror.workspace = true
|
||||
tiny_http.workspace = true
|
||||
walkdir.workspace = true
|
||||
wasmparser.workspace = true
|
||||
webbrowser.workspace = true
|
||||
crc32fast.workspace = true
|
||||
ctor.workspace = true
|
||||
ctrlc.workspace = true
|
||||
dialoguer.workspace = true
|
||||
glob.workspace = true
|
||||
heck.workspace = true
|
||||
html-escape.workspace = true
|
||||
indoc.workspace = true
|
||||
log.workspace = true
|
||||
memchr.workspace = true
|
||||
rand.workspace = true
|
||||
regex.workspace = true
|
||||
schemars.workspace = true
|
||||
semver.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
similar.workspace = true
|
||||
streaming-iterator.workspace = true
|
||||
thiserror.workspace = true
|
||||
tiny_http.workspace = true
|
||||
walkdir.workspace = true
|
||||
wasmparser.workspace = true
|
||||
webbrowser.workspace = true
|
||||
|
||||
tree-sitter.workspace = true
|
||||
tree-sitter-generate.workspace = true
|
||||
tree-sitter-config.workspace = true
|
||||
tree-sitter.workspace = true
|
||||
tree-sitter-config.workspace = true
|
||||
tree-sitter-generate.workspace = true
|
||||
tree-sitter-highlight.workspace = true
|
||||
tree-sitter-loader.workspace = true
|
||||
tree-sitter-tags.workspace = true
|
||||
tree-sitter-loader.workspace = true
|
||||
tree-sitter-tags.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
encoding_rs = "0.8.35"
|
||||
widestring = "1.2.1"
|
||||
tree_sitter_proc_macro = { path = "src/tests/proc_macro", package = "tree-sitter-tests-proc-macro" }
|
||||
encoding_rs = "0.8.35"
|
||||
tree_sitter_proc_macro = { package = "tree-sitter-tests-proc-macro", path = "src/tests/proc_macro" }
|
||||
widestring = "1.2.1"
|
||||
|
||||
tempfile.workspace = true
|
||||
pretty_assertions.workspace = true
|
||||
unindent.workspace = true
|
||||
tempfile.workspace = true
|
||||
unindent.workspace = true
|
||||
|
|
|
|||
|
|
@ -1,25 +1,18 @@
|
|||
[package]
|
||||
name = "tree-sitter-PARSER_NAME"
|
||||
description = "PARSER_DESCRIPTION"
|
||||
version = "PARSER_VERSION"
|
||||
authors = ["PARSER_AUTHOR_NAME PARSER_AUTHOR_EMAIL"]
|
||||
license = "PARSER_LICENSE"
|
||||
readme = "README.md"
|
||||
keywords = ["incremental", "parsing", "tree-sitter", "PARSER_NAME"]
|
||||
categories = ["parser-implementations", "parsing", "text-editors"]
|
||||
repository = "PARSER_URL"
|
||||
edition = "2021"
|
||||
authors = [ "PARSER_AUTHOR_NAME PARSER_AUTHOR_EMAIL" ]
|
||||
autoexamples = false
|
||||
categories = [ "parser-implementations", "parsing", "text-editors" ]
|
||||
description = "PARSER_DESCRIPTION"
|
||||
edition = "2024"
|
||||
keywords = [ "incremental", "parsing", "tree-sitter", "PARSER_NAME" ]
|
||||
license = "PARSER_LICENSE"
|
||||
name = "tree-sitter-PARSER_NAME"
|
||||
readme = "README.md"
|
||||
repository = "PARSER_URL"
|
||||
version = "PARSER_VERSION"
|
||||
|
||||
build = "bindings/rust/build.rs"
|
||||
include = [
|
||||
"bindings/rust/*",
|
||||
"grammar.js",
|
||||
"queries/*",
|
||||
"src/*",
|
||||
"tree-sitter.json",
|
||||
"/LICENSE",
|
||||
]
|
||||
build = "bindings/rust/build.rs"
|
||||
include = [ "bindings/rust/*", "grammar.js", "queries/*", "src/*", "tree-sitter.json", "/LICENSE" ]
|
||||
|
||||
[lib]
|
||||
path = "bindings/rust/lib.rs"
|
||||
|
|
|
|||
|
|
@ -1,30 +1,30 @@
|
|||
[build-system]
|
||||
requires = ["setuptools>=62.4.0", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
requires = [ "setuptools>=62.4.0", "wheel" ]
|
||||
|
||||
[project]
|
||||
name = "tree-sitter-PARSER_NAME"
|
||||
description = "PARSER_DESCRIPTION"
|
||||
version = "PARSER_VERSION"
|
||||
keywords = ["incremental", "parsing", "tree-sitter", "PARSER_NAME"]
|
||||
authors = [ { email = "PARSER_AUTHOR_EMAIL", name = "PARSER_AUTHOR_NAME" } ]
|
||||
classifiers = [
|
||||
"Intended Audience :: Developers",
|
||||
"Topic :: Software Development :: Compilers",
|
||||
"Topic :: Text Processing :: Linguistic",
|
||||
"Typing :: Typed",
|
||||
]
|
||||
authors = [{ name = "PARSER_AUTHOR_NAME", email = "PARSER_AUTHOR_EMAIL" }]
|
||||
requires-python = ">=3.10"
|
||||
description = "PARSER_DESCRIPTION"
|
||||
keywords = [ "incremental", "parsing", "tree-sitter", "PARSER_NAME" ]
|
||||
license.text = "PARSER_LICENSE"
|
||||
name = "tree-sitter-PARSER_NAME"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
version = "PARSER_VERSION"
|
||||
|
||||
[project.urls]
|
||||
Funding = "FUNDING_URL"
|
||||
Homepage = "PARSER_URL"
|
||||
Funding = "FUNDING_URL"
|
||||
|
||||
[project.optional-dependencies]
|
||||
core = ["tree-sitter~=0.24"]
|
||||
core = [ "tree-sitter~=0.24" ]
|
||||
|
||||
[tool.cibuildwheel]
|
||||
build = "cp310-*"
|
||||
build = "cp310-*"
|
||||
build-frontend = "build"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
[package]
|
||||
name = "tree-sitter-tests-proc-macro"
|
||||
version = "0.0.0"
|
||||
edition.workspace = true
|
||||
name = "tree-sitter-tests-proc-macro"
|
||||
version = "0.0.0"
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
publish = false
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
@ -13,5 +13,5 @@ proc-macro = true
|
|||
|
||||
[dependencies]
|
||||
proc-macro2 = "1.0.93"
|
||||
quote = "1.0.38"
|
||||
syn = { version = "2.0.96", features = ["full"] }
|
||||
quote = "1.0.38"
|
||||
syn = { features = [ "full" ], version = "2.0.96" }
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
[package]
|
||||
name = "tree-sitter-config"
|
||||
version.workspace = true
|
||||
description = "User configuration of tree-sitter's command line programs"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
name = "tree-sitter-config"
|
||||
version.workspace = true
|
||||
description = "User configuration of tree-sitter's command line programs"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter-config"
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories.workspace = true
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter-config"
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories.workspace = true
|
||||
|
||||
[lib]
|
||||
path = "src/tree_sitter_config.rs"
|
||||
|
|
@ -20,8 +20,8 @@ path = "src/tree_sitter_config.rs"
|
|||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
etcetera.workspace = true
|
||||
log.workspace = true
|
||||
serde.workspace = true
|
||||
etcetera.workspace = true
|
||||
log.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
thiserror.workspace = true
|
||||
thiserror.workspace = true
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
[package]
|
||||
name = "tree-sitter-generate"
|
||||
version.workspace = true
|
||||
description = "Library for generating C source code from a tree-sitter grammar"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
name = "tree-sitter-generate"
|
||||
version.workspace = true
|
||||
description = "Library for generating C source code from a tree-sitter grammar"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter-generate"
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories.workspace = true
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter-generate"
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories.workspace = true
|
||||
|
||||
[lib]
|
||||
path = "src/generate.rs"
|
||||
|
|
@ -20,9 +20,9 @@ path = "src/generate.rs"
|
|||
workspace = true
|
||||
|
||||
[features]
|
||||
default = ["qjs-rt"]
|
||||
load = ["dep:semver"]
|
||||
qjs-rt = ["load", "rquickjs", "pathdiff"]
|
||||
default = [ "qjs-rt" ]
|
||||
load = [ "dep:semver" ]
|
||||
qjs-rt = [ "load", "rquickjs", "pathdiff" ]
|
||||
|
||||
[dependencies]
|
||||
bitflags = "2.9.4"
|
||||
|
|
@ -30,17 +30,17 @@ dunce = "1.0.5"
|
|||
indexmap.workspace = true
|
||||
indoc.workspace = true
|
||||
log.workspace = true
|
||||
pathdiff = { version = "0.2.3", optional = true }
|
||||
pathdiff = { optional = true, version = "0.2.3" }
|
||||
regex.workspace = true
|
||||
regex-syntax.workspace = true
|
||||
rquickjs = { version = "0.11.0", optional = true, features = [
|
||||
rquickjs = { features = [
|
||||
"bindgen",
|
||||
"loader",
|
||||
"macro",
|
||||
"phf",
|
||||
] }
|
||||
], optional = true, version = "0.11.0" }
|
||||
rustc-hash.workspace = true
|
||||
semver = { workspace = true, optional = true }
|
||||
semver = { optional = true, workspace = true }
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
smallbitvec.workspace = true
|
||||
|
|
|
|||
|
|
@ -1,31 +1,28 @@
|
|||
[package]
|
||||
name = "tree-sitter-highlight"
|
||||
version.workspace = true
|
||||
description = "Library for performing syntax highlighting with Tree-sitter"
|
||||
authors = [
|
||||
"Max Brunsfeld <maxbrunsfeld@gmail.com>",
|
||||
"Tim Clem <timothy.clem@gmail.com>",
|
||||
]
|
||||
edition.workspace = true
|
||||
name = "tree-sitter-highlight"
|
||||
version.workspace = true
|
||||
description = "Library for performing syntax highlighting with Tree-sitter"
|
||||
authors = [ "Max Brunsfeld <maxbrunsfeld@gmail.com>", "Tim Clem <timothy.clem@gmail.com>" ]
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter-highlight"
|
||||
license.workspace = true
|
||||
keywords = ["incremental", "parsing", "syntax", "highlighting"]
|
||||
categories = ["parsing", "text-editors"]
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter-highlight"
|
||||
license.workspace = true
|
||||
keywords = [ "incremental", "parsing", "syntax", "highlighting" ]
|
||||
categories = [ "parsing", "text-editors" ]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[lib]
|
||||
path = "src/highlight.rs"
|
||||
crate-type = ["lib", "staticlib"]
|
||||
crate-type = [ "lib", "staticlib" ]
|
||||
path = "src/highlight.rs"
|
||||
|
||||
[dependencies]
|
||||
regex.workspace = true
|
||||
thiserror.workspace = true
|
||||
regex.workspace = true
|
||||
streaming-iterator.workspace = true
|
||||
thiserror.workspace = true
|
||||
|
||||
tree-sitter.workspace = true
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
[package]
|
||||
name = "tree-sitter-language"
|
||||
description = "The tree-sitter Language type, used by the library and by language implementations"
|
||||
version = "0.1.8"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version = "1.90"
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
name = "tree-sitter-language"
|
||||
description = "The tree-sitter Language type, used by the library and by language implementations"
|
||||
version = "0.1.8"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version = "1.90"
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter-language"
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories = ["api-bindings", "development-tools::ffi", "parsing"]
|
||||
documentation = "https://docs.rs/tree-sitter-language"
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories = [ "api-bindings", "development-tools::ffi", "parsing" ]
|
||||
|
||||
build = "build.rs"
|
||||
links = "tree-sitter-language"
|
||||
|
|
|
|||
|
|
@ -1,21 +1,21 @@
|
|||
[package]
|
||||
name = "tree-sitter-loader"
|
||||
version.workspace = true
|
||||
description = "Locates, builds, and loads tree-sitter grammars at runtime"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
name = "tree-sitter-loader"
|
||||
version.workspace = true
|
||||
description = "Locates, builds, and loads tree-sitter grammars at runtime"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter-loader"
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories.workspace = true
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter-loader"
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories.workspace = true
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
rustdoc-args = [ "--cfg", "docsrs" ]
|
||||
|
||||
[lib]
|
||||
path = "src/loader.rs"
|
||||
|
|
@ -24,24 +24,24 @@ path = "src/loader.rs"
|
|||
workspace = true
|
||||
|
||||
[features]
|
||||
wasm = ["tree-sitter/wasm"]
|
||||
default = ["tree-sitter-highlight", "tree-sitter-tags"]
|
||||
default = [ "tree-sitter-highlight", "tree-sitter-tags" ]
|
||||
wasm = [ "tree-sitter/wasm" ]
|
||||
|
||||
[dependencies]
|
||||
cc.workspace = true
|
||||
etcetera.workspace = true
|
||||
fs4.workspace = true
|
||||
indoc.workspace = true
|
||||
cc.workspace = true
|
||||
etcetera.workspace = true
|
||||
fs4.workspace = true
|
||||
indoc.workspace = true
|
||||
libloading.workspace = true
|
||||
log.workspace = true
|
||||
once_cell.workspace = true
|
||||
regex.workspace = true
|
||||
semver.workspace = true
|
||||
serde.workspace = true
|
||||
log.workspace = true
|
||||
once_cell.workspace = true
|
||||
regex.workspace = true
|
||||
semver.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
tempfile.workspace = true
|
||||
thiserror.workspace = true
|
||||
tempfile.workspace = true
|
||||
thiserror.workspace = true
|
||||
|
||||
tree-sitter = { workspace = true }
|
||||
tree-sitter-highlight = { workspace = true, optional = true }
|
||||
tree-sitter-tags = { workspace = true, optional = true }
|
||||
tree-sitter = { workspace = true }
|
||||
tree-sitter-highlight = { optional = true, workspace = true }
|
||||
tree-sitter-tags = { optional = true, workspace = true }
|
||||
|
|
|
|||
|
|
@ -1,32 +1,29 @@
|
|||
[package]
|
||||
name = "tree-sitter-tags"
|
||||
version.workspace = true
|
||||
description = "Library for extracting tag information"
|
||||
authors = [
|
||||
"Max Brunsfeld <maxbrunsfeld@gmail.com>",
|
||||
"Patrick Thomson <patrickt@github.com>",
|
||||
]
|
||||
edition.workspace = true
|
||||
name = "tree-sitter-tags"
|
||||
version.workspace = true
|
||||
description = "Library for extracting tag information"
|
||||
authors = [ "Max Brunsfeld <maxbrunsfeld@gmail.com>", "Patrick Thomson <patrickt@github.com>" ]
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter-tags"
|
||||
license.workspace = true
|
||||
keywords = ["incremental", "parsing", "syntax", "tagging"]
|
||||
categories = ["parsing", "text-editors"]
|
||||
readme = "README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter-tags"
|
||||
license.workspace = true
|
||||
keywords = [ "incremental", "parsing", "syntax", "tagging" ]
|
||||
categories = [ "parsing", "text-editors" ]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[lib]
|
||||
path = "src/tags.rs"
|
||||
crate-type = ["lib", "staticlib"]
|
||||
crate-type = [ "lib", "staticlib" ]
|
||||
path = "src/tags.rs"
|
||||
|
||||
[dependencies]
|
||||
memchr.workspace = true
|
||||
regex.workspace = true
|
||||
memchr.workspace = true
|
||||
regex.workspace = true
|
||||
streaming-iterator.workspace = true
|
||||
thiserror.workspace = true
|
||||
thiserror.workspace = true
|
||||
|
||||
tree-sitter.workspace = true
|
||||
|
|
|
|||
|
|
@ -1,31 +1,31 @@
|
|||
[package]
|
||||
name = "xtask"
|
||||
version = "0.1.0"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
name = "xtask"
|
||||
version = "0.1.0"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories.workspace = true
|
||||
publish = false
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories.workspace = true
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
anstyle.workspace = true
|
||||
anyhow.workspace = true
|
||||
bindgen = { version = "0.72.0" }
|
||||
clap.workspace = true
|
||||
etcetera.workspace = true
|
||||
indoc.workspace = true
|
||||
regex.workspace = true
|
||||
schemars.workspace = true
|
||||
semver.workspace = true
|
||||
serde_json.workspace = true
|
||||
tree-sitter-cli = { path = "../cli/" }
|
||||
tree-sitter-loader = { path = "../loader/" }
|
||||
notify = "8.2.0"
|
||||
anstyle.workspace = true
|
||||
anyhow.workspace = true
|
||||
bindgen = { version = "0.72.1" }
|
||||
clap.workspace = true
|
||||
etcetera.workspace = true
|
||||
indoc.workspace = true
|
||||
notify = "8.2.0"
|
||||
notify-debouncer-full = "0.6.0"
|
||||
regex.workspace = true
|
||||
schemars.workspace = true
|
||||
semver.workspace = true
|
||||
serde_json.workspace = true
|
||||
tree-sitter-cli = { path = "../cli/" }
|
||||
tree-sitter-loader = { path = "../loader/" }
|
||||
|
|
|
|||
|
|
@ -1,32 +1,26 @@
|
|||
[book]
|
||||
authors = [
|
||||
"Max Brunsfeld <maxbrunsfeld@gmail.com>",
|
||||
"Amaan Qureshi <amaanq12@gmail.com>",
|
||||
]
|
||||
authors = [ "Max Brunsfeld <maxbrunsfeld@gmail.com>", "Amaan Qureshi <amaanq12@gmail.com>" ]
|
||||
language = "en"
|
||||
src = "src"
|
||||
title = "Tree-sitter"
|
||||
src = "src"
|
||||
title = "Tree-sitter"
|
||||
|
||||
[output.html]
|
||||
additional-css = [
|
||||
"src/assets/css/playground.css",
|
||||
"src/assets/css/mdbook-admonish.css",
|
||||
]
|
||||
additional-js = ["src/assets/js/playground.js"]
|
||||
git-repository-url = "https://github.com/tree-sitter/tree-sitter"
|
||||
additional-css = [ "src/assets/css/playground.css", "src/assets/css/mdbook-admonish.css" ]
|
||||
additional-js = [ "src/assets/js/playground.js" ]
|
||||
edit-url-template = "https://github.com/tree-sitter/tree-sitter/edit/master/docs/{path}"
|
||||
git-repository-icon = "fa-github"
|
||||
edit-url-template = "https://github.com/tree-sitter/tree-sitter/edit/master/docs/{path}"
|
||||
git-repository-url = "https://github.com/tree-sitter/tree-sitter"
|
||||
|
||||
[output.html.search]
|
||||
limit-results = 20
|
||||
use-boolean-and = true
|
||||
boost-title = 2
|
||||
boost-hierarchy = 2
|
||||
boost-paragraph = 1
|
||||
expand = true
|
||||
boost-title = 2
|
||||
expand = true
|
||||
limit-results = 20
|
||||
use-boolean-and = true
|
||||
|
||||
[preprocessor]
|
||||
|
||||
[preprocessor.admonish]
|
||||
command = "mdbook-admonish"
|
||||
assets_version = "3.0.2" # do not edit: managed by `mdbook-admonish install`
|
||||
assets_version = "3.0.2" # do not edit: managed by `mdbook-admonish install`
|
||||
command = "mdbook-admonish"
|
||||
|
|
|
|||
|
|
@ -1,22 +1,17 @@
|
|||
[package]
|
||||
name = "tree-sitter"
|
||||
version.workspace = true
|
||||
description = "Rust bindings to the Tree-sitter parsing library"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version = "1.90"
|
||||
readme = "binding_rust/README.md"
|
||||
homepage.workspace = true
|
||||
name = "tree-sitter"
|
||||
version.workspace = true
|
||||
description = "Rust bindings to the Tree-sitter parsing library"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version = "1.90"
|
||||
readme = "binding_rust/README.md"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/tree-sitter"
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories = [
|
||||
"api-bindings",
|
||||
"external-ffi-bindings",
|
||||
"parsing",
|
||||
"text-editors",
|
||||
]
|
||||
documentation = "https://docs.rs/tree-sitter"
|
||||
license.workspace = true
|
||||
keywords.workspace = true
|
||||
categories = [ "api-bindings", "external-ffi-bindings", "parsing", "text-editors" ]
|
||||
|
||||
build = "binding_rust/build.rs"
|
||||
links = "tree-sitter"
|
||||
|
|
@ -35,33 +30,33 @@ include = [
|
|||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
targets = ["x86_64-unknown-linux-gnu", "x86_64-pc-windows-gnu"]
|
||||
rustdoc-args = [ "--cfg", "docsrs" ]
|
||||
targets = [ "x86_64-unknown-linux-gnu", "x86_64-pc-windows-gnu" ]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = ["regex/std", "regex/perf", "regex-syntax/unicode"]
|
||||
wasm = ["std", "wasmtime-c-api"]
|
||||
default = [ "std" ]
|
||||
std = [ "regex/std", "regex/perf", "regex-syntax/unicode" ]
|
||||
wasm = [ "std", "wasmtime-c-api" ]
|
||||
|
||||
[dependencies]
|
||||
regex = { version = "1.12.3", default-features = false, features = ["unicode"] }
|
||||
regex-syntax = { version = "0.8.9", default-features = false }
|
||||
regex = { default-features = false, features = [ "unicode" ], version = "1.12.3" }
|
||||
regex-syntax = { default-features = false, version = "0.8.9" }
|
||||
streaming-iterator = "0.1.9"
|
||||
tree-sitter-language.workspace = true
|
||||
streaming-iterator = "0.1.9"
|
||||
|
||||
[dependencies.wasmtime-c-api]
|
||||
version = "33.0.2"
|
||||
optional = true
|
||||
package = "wasmtime-c-api-impl"
|
||||
default-features = false
|
||||
features = ["cranelift", "gc-drc"]
|
||||
features = [ "cranelift", "gc-drc" ]
|
||||
optional = true
|
||||
package = "wasmtime-c-api-impl"
|
||||
version = "33.0.2"
|
||||
|
||||
[build-dependencies]
|
||||
bindgen = { version = "0.72.0", optional = true }
|
||||
cc.workspace = true
|
||||
bindgen = { optional = true, version = "0.72.1" }
|
||||
cc.workspace = true
|
||||
serde_json.workspace = true
|
||||
|
||||
[lib]
|
||||
|
|
|
|||
Loading…
Reference in a new issue