Files
gpui-native-kit/crates/editor/Cargo.toml
T

46 lines
1.3 KiB
TOML

[package]
name = "gpui-native-editor"
version = "0.1.0"
edition = "2024"
description = "Read-only code surfaces for gpui applications, one cargo feature per language grammar"
[dependencies]
gpui = { workspace = true }
gpui-native-core = { workspace = true, optional = true }
gpui-native-icons = { workspace = true }
gpui-native-theme = { workspace = true }
gpui-native-utils = { workspace = true }
tree-sitter = "0.25"
similar = "2"
pulldown-cmark = { version = "0.13", default-features = false, optional = true }
tree-sitter-rust = { version = "0.24", optional = true }
tree-sitter-typescript = { version = "0.23", optional = true }
tree-sitter-javascript = { version = "0.23", optional = true }
tree-sitter-python = { version = "0.23", optional = true }
[dev-dependencies]
gpui = { workspace = true, features = ["test-support"] }
[features]
default = ["full"]
full = [
"code_view",
"diff_view",
"markdown_view",
"rust",
"typescript",
"javascript",
"python",
]
code_view = [
"dep:gpui-native-core",
"gpui-native-core/scroll_area",
"gpui-native-core/scrollbar",
]
diff_view = ["code_view"]
markdown_view = ["code_view", "dep:pulldown-cmark"]
rust = ["dep:tree-sitter-rust"]
typescript = ["dep:tree-sitter-typescript"]
javascript = ["dep:tree-sitter-javascript"]
python = ["dep:tree-sitter-python"]