Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / code / src / main / rust / Cargo.toml

Cargo.toml38 lines · 1.2 KiBRaw
1# Native tree-sitter highlighter for the `code` app (`libcode_ts.so`, arm64-v8a).
2#
3# Member of the repo-root workspace (single root Cargo.lock). The Gradle build is
4# opt-in via the `-PenableTreeSitter` property (see code/build.gradle.kts); when it
5# isn't built, the app still runs: `TreeSitterNative.isAvailable` is false and the
6# editor uses the regex highlighter.
7#
8# The grammar crate versions below must be a set that mutually agree on the tree-sitter 0.22 ABI and
9# expose `LANGUAGE` (a `LanguageFn`) + a highlights query constant; run `cargo update` on a
10# toolchain-equipped machine to generate the matching Cargo.lock before an `--locked` build.
11[package]
12name = "code_ts"
13version = "0.1.0"
14edition = "2021"
15publish = false
16
17[lib]
18name = "code_ts"
19crate-type = ["cdylib"]
20
21[dependencies]
22jni.workspace = true
23tree-sitter.workspace = true
24tree-sitter-kotlin.workspace = true
25tree-sitter-java.workspace = true
26tree-sitter-javascript.workspace = true
27tree-sitter-typescript.workspace = true
28tree-sitter-python.workspace = true
29tree-sitter-rust.workspace = true
30tree-sitter-go.workspace = true
31tree-sitter-json.workspace = true
32tree-sitter-c.workspace = true
33tree-sitter-cpp.workspace = true
34
35[profile.release]
36opt-level = "z"
37lto = true
38strip = true