| 1 |
[package] |
| 2 |
name = "helix-term" |
| 3 |
description = "A post-modern text editor." |
| 4 |
include = ["src/**/*", "README.md"] |
| 5 |
default-run = "hx" |
| 6 |
version.workspace = true |
| 7 |
authors.workspace = true |
| 8 |
edition.workspace = true |
| 9 |
license.workspace = true |
| 10 |
rust-version.workspace = true |
| 11 |
categories.workspace = true |
| 12 |
repository.workspace = true |
| 13 |
homepage.workspace = true |
| 14 |
|
| 15 |
[package.metadata.deb] |
| 16 |
# generate a .deb in target/debian/ with the command: cargo deb --no-build |
| 17 |
name = "helix" |
| 18 |
assets = [ |
| 19 |
{ source = "target/release/hx", dest = "/usr/lib/helix/", mode = "755" }, |
| 20 |
{ source = "../contrib/hx_launcher.sh", dest = "/usr/bin/hx", mode = "755" }, |
| 21 |
{ source = "../runtime/*", dest = "/usr/lib/helix/runtime/", mode = "644" }, |
| 22 |
{ source = "../runtime/grammars/*", dest = "/usr/lib/helix/runtime/grammars/", mode = "644" }, # to avoid sources/ |
| 23 |
{ source = "../runtime/queries/**/*", dest = "/usr/lib/helix/runtime/queries/", mode = "644" }, |
| 24 |
{ source = "../runtime/themes/**/*", dest = "/usr/lib/helix/runtime/themes/", mode = "644" }, |
| 25 |
{ source = "../README.md", dest = "/usr/share/doc/helix/", mode = "644" }, |
| 26 |
{ source = "../contrib/completion/hx.bash", dest = "/usr/share/bash-completion/completions/hx", mode = "644" }, |
| 27 |
{ source = "../contrib/completion/hx.fish", dest = "/usr/share/fish/vendor_completions.d/hx.fish", mode = "644" }, |
| 28 |
{ source = "../contrib/completion/hx.zsh", dest = "/usr/share/zsh/vendor-completions/_hx", mode = "644" }, |
| 29 |
{ source = "../contrib/Helix.desktop", dest = "/usr/share/applications/Helix.desktop", mode = "644" }, |
| 30 |
{ source = "../contrib/helix.png", dest = "/usr/share/icons/hicolor/256x256/apps/helix.png", mode = "644" }, |
| 31 |
] |
| 32 |
|
| 33 |
[features] |
| 34 |
default = ["git"] |
| 35 |
unicode-lines = ["helix-core/unicode-lines", "helix-view/unicode-lines"] |
| 36 |
integration = ["helix-event/integration_test"] |
| 37 |
git = ["helix-vcs/git"] |
| 38 |
|
| 39 |
[[bin]] |
| 40 |
name = "hx" |
| 41 |
path = "src/main.rs" |
| 42 |
|
| 43 |
[dependencies] |
| 44 |
helix-stdx = { path = "../helix-stdx" } |
| 45 |
helix-core = { path = "../helix-core" } |
| 46 |
helix-event = { path = "../helix-event" } |
| 47 |
helix-view = { path = "../helix-view" } |
| 48 |
helix-lsp = { path = "../helix-lsp" } |
| 49 |
helix-dap = { path = "../helix-dap" } |
| 50 |
helix-vcs = { path = "../helix-vcs" } |
| 51 |
helix-loader = { path = "../helix-loader" } |
| 52 |
|
| 53 |
anyhow = "1" |
| 54 |
once_cell = "1.21" |
| 55 |
|
| 56 |
tokio = { version = "1", features = ["rt", "rt-multi-thread", "io-util", "io-std", "time", "process", "macros", "fs", "parking_lot"] } |
| 57 |
tui = { path = "../helix-tui", package = "helix-tui", default-features = false, features = ["termina"] } |
| 58 |
termina = { workspace = true, features = ["event-stream"] } |
| 59 |
signal-hook = "0.4" |
| 60 |
tokio-stream = "0.1" |
| 61 |
futures-util = { version = "0.3", features = ["std", "async-await"], default-features = false } |
| 62 |
arc-swap.workspace = true |
| 63 |
termini = "1" |
| 64 |
indexmap = { version = "2.14", features = ["serde"] } |
| 65 |
|
| 66 |
# Logging |
| 67 |
log = { version = "0.4", features = ["std"] } |
| 68 |
|
| 69 |
# File picker |
| 70 |
nucleo.workspace = true |
| 71 |
ignore = "0.4" |
| 72 |
grep-regex = "0.1" |
| 73 |
grep-searcher = "0.1" |
| 74 |
grep-matcher = "0.1" |
| 75 |
# markdown doc rendering |
| 76 |
pulldown-cmark = { version = "0.13", default-features = false } |
| 77 |
thiserror.workspace = true |
| 78 |
|
| 79 |
# opening URLs |
| 80 |
open = "5.3.2" |
| 81 |
|
| 82 |
# config |
| 83 |
toml.workspace = true |
| 84 |
|
| 85 |
serde_json = "1.0" |
| 86 |
serde = { version = "1.0", features = ["derive"] } |
| 87 |
|
| 88 |
dashmap = "6.1.0" |
| 89 |
|
| 90 |
parking_lot.workspace = true |
| 91 |
|
| 92 |
[target.'cfg(not(windows))'.dependencies] # https://github.com/vorner/signal-hook/issues/100 |
| 93 |
signal-hook-tokio = { version = "0.4", features = ["futures-v0_3"] } |
| 94 |
libc = "0.2.186" |
| 95 |
|
| 96 |
[build-dependencies] |
| 97 |
helix-loader = { path = "../helix-loader" } |
| 98 |
|
| 99 |
[dev-dependencies] |
| 100 |
smallvec = "1.15" |
| 101 |
indoc = "2.0.6" |
| 102 |
tempfile.workspace = true |
| 103 |
same-file = "1.0.1" |