fork/helix

git clone https://git.julia.blue/fork/helix

janos-rGenerate a .deb file (#12453)d4ee22b4

25.01.1
3.7 KiB107 linesraw
1[package]
2name = "helix-term"
3description = "A post-modern text editor."
4include = ["src/**/*", "README.md"]
5default-run = "hx"
6version.workspace = true
7authors.workspace = true
8edition.workspace = true
9license.workspace = true
10rust-version.workspace = true
11categories.workspace = true
12repository.workspace = true
13homepage.workspace = true
14
15[package.metadata.deb]
16# generate a .deb in target/debian/ with the command: cargo deb --no-build
17name = "helix"
18assets = [
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]
34default = ["git"]
35unicode-lines = ["helix-core/unicode-lines", "helix-view/unicode-lines"]
36integration = ["helix-event/integration_test"]
37git = ["helix-vcs/git"]
38
39[[bin]]
40name = "hx"
41path = "src/main.rs"
42
43[dependencies]
44helix-stdx = { path = "../helix-stdx" }
45helix-core = { path = "../helix-core" }
46helix-event = { path = "../helix-event" }
47helix-view = { path = "../helix-view" }
48helix-lsp = { path = "../helix-lsp" }
49helix-dap = { path = "../helix-dap" }
50helix-vcs = { path = "../helix-vcs" }
51helix-loader = { path = "../helix-loader" }
52
53anyhow = "1"
54once_cell = "1.20"
55
56tokio = { version = "1", features = ["rt", "rt-multi-thread", "io-util", "io-std", "time", "process", "macros", "fs", "parking_lot"] }
57tui = { path = "../helix-tui", package = "helix-tui", default-features = false, features = ["crossterm"] }
58crossterm = { version = "0.28", features = ["event-stream"] }
59signal-hook = "0.3"
60tokio-stream = "0.1"
61futures-util = { version = "0.3", features = ["std", "async-await"], default-features = false }
62arc-swap = { version = "1.7.1" }
63termini = "1"
64
65# Logging
66fern = "0.7"
67chrono = { version = "0.4", default-features = false, features = ["clock"] }
68log = "0.4"
69
70# File picker
71nucleo.workspace = true
72ignore = "0.4"
73# markdown doc rendering
74pulldown-cmark = { version = "0.12", default-features = false }
75# file type detection
76content_inspector = "0.2.4"
77thiserror.workspace = true
78
79# opening URLs
80open = "5.3.2"
81url = "2.5.4"
82
83# config
84toml = "0.8"
85
86serde_json = "1.0"
87serde = { version = "1.0", features = ["derive"] }
88
89# ripgrep for global search
90grep-regex = "0.1.13"
91grep-searcher = "0.1.14"
92
93[target.'cfg(not(windows))'.dependencies]  # https://github.com/vorner/signal-hook/issues/100
94signal-hook-tokio = { version = "0.3", features = ["futures-v0_3"] }
95libc = "0.2.169"
96
97[target.'cfg(target_os = "macos")'.dependencies]
98crossterm = { version = "0.28", features = ["event-stream", "use-dev-tty", "libc"] }
99
100[build-dependencies]
101helix-loader = { path = "../helix-loader" }
102
103[dev-dependencies]
104smallvec = "1.13"
105indoc = "2.0.5"
106tempfile.workspace = true
107same-file = "1.0.1"