Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-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] |
| 12 | name = "code_ts" |
| 13 | version = "0.1.0" |
| 14 | edition = "2021" |
| 15 | publish = false |
| 16 | |
| 17 | [lib] |
| 18 | name = "code_ts" |
| 19 | crate-type = ["cdylib"] |
| 20 | |
| 21 | [dependencies] |
| 22 | jni.workspace = true |
| 23 | tree-sitter.workspace = true |
| 24 | tree-sitter-kotlin.workspace = true |
| 25 | tree-sitter-java.workspace = true |
| 26 | tree-sitter-javascript.workspace = true |
| 27 | tree-sitter-typescript.workspace = true |
| 28 | tree-sitter-python.workspace = true |
| 29 | tree-sitter-rust.workspace = true |
| 30 | tree-sitter-go.workspace = true |
| 31 | tree-sitter-json.workspace = true |
| 32 | tree-sitter-c.workspace = true |
| 33 | tree-sitter-cpp.workspace = true |
| 34 | |
| 35 | [profile.release] |
| 36 | opt-level = "z" |
| 37 | lto = true |
| 38 | strip = true |