Skip to content

Commit 10b15e5

Browse files
committed
Separate helix-input and helix-graphics from helix-view.
This commit separates some primitives from `helix-view` into their own crates, for later use by crates that view might depend on, without causing cyclic dependencies.
1 parent 5a92474 commit 10b15e5

File tree

13 files changed

+120
-6
lines changed

13 files changed

+120
-6
lines changed

Cargo.lock

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
resolver = "2"
33
members = [
44
"helix-core",
5+
"helix-graphics",
6+
"helix-input",
57
"helix-view",
68
"helix-term",
79
"helix-tui",

helix-graphics/Cargo.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[package]
2+
name = "helix-graphics"
3+
version.workspace = true
4+
edition.workspace = true
5+
authors.workspace = true
6+
categories.workspace = true
7+
repository.workspace = true
8+
homepage.workspace = true
9+
license.workspace = true
10+
rust-version.workspace = true
11+
12+
[features]
13+
default = []
14+
term = ["termina", "crossterm"]
15+
16+
[dependencies]
17+
helix-core = { path = "../helix-core" }
18+
helix-loader = { path = "../helix-loader" }
19+
bitflags.workspace = true
20+
anyhow = "1"
21+
22+
termina = { workspace = true, optional = true }
23+
24+
# Conversion traits
25+
once_cell = "1.21"
26+
27+
serde = { version = "1.0", features = ["derive"] }
28+
toml.workspace = true
29+
log = "~0.4"
30+
31+
[target.'cfg(windows)'.dependencies]
32+
crossterm = { version = "0.28", optional = true }
File renamed without changes.

helix-graphics/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pub mod graphics;
2+
pub mod theme;
File renamed without changes.

helix-input/Cargo.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[package]
2+
name = "helix-input"
3+
version.workspace = true
4+
edition.workspace = true
5+
authors.workspace = true
6+
categories.workspace = true
7+
repository.workspace = true
8+
homepage.workspace = true
9+
license.workspace = true
10+
rust-version.workspace = true
11+
12+
[features]
13+
default = []
14+
term = ["termina", "crossterm"]
15+
16+
[dependencies]
17+
helix-stdx = { path = "../helix-stdx" }
18+
helix-core = { path = "../helix-core" }
19+
20+
bitflags.workspace = true
21+
anyhow = "1"
22+
termina = { workspace = true, optional = true }
23+
24+
serde = { version = "1.0", features = ["derive"] }
25+
log = "~0.4"
26+
27+
thiserror.workspace = true
28+
29+
[target.'cfg(windows)'.dependencies]
30+
clipboard-win = { version = "5.4", features = ["std"] }
31+
crossterm = { version = "0.28", optional = true }
32+
33+
[target.'cfg(unix)'.dependencies]
34+
libc = "0.2"
35+
rustix = { version = "1.1", features = ["fs"] }
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)