Skip to content

Commit

Permalink
refactor: Split linutil into TUI and Core crates
Browse files Browse the repository at this point in the history
  • Loading branch information
lj3954 committed Sep 5, 2024
1 parent 412806a commit 0280041
Show file tree
Hide file tree
Showing 55 changed files with 320 additions and 121 deletions.
208 changes: 189 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 9 additions & 26 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,37 +1,20 @@
[package]
name = "tui"
[workspace.package]
license = "MIT"
version = "0.1.0"
edition = "2021"

[dependencies]
clap = { version = "4.5.16", features = ["derive"] }
crossterm = "0.27.0"
# Use workspace dependencies for anything public in linutil_core to avoid versioning conflicts
[workspace.dependencies]
ego-tree = "0.6.2"
oneshot = "0.1.8"
portable-pty = "0.8.1"
ratatui = "0.27.0"
tui-term = "0.1.12"
include_dir = "0.7.4"
tempdir = "0.3.7"
serde = { version = "1.0.205", features = ["derive"] }
toml = "0.8.19"
which = "6.0.3"
unicode-width = "0.1.13"

[build-dependencies]
chrono = "0.4.33"

[[bin]]
name = "linutil"
path = "src/main.rs"


[workspace]
members = ["tui", "core"]
resolver = "2"

[profile.release]
opt-level = 3
opt-level = "z"
debug = false
lto = true
codegen-units = 1
panic = "abort"
strip = true
incremental = false
incremental = false
13 changes: 13 additions & 0 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "linutil_core"
edition = "2021"
version.workspace = true
license.workspace = true

[dependencies]
include_dir = "0.7.4"
tempdir = "0.3.7"
serde = { version = "1.0.205", features = ["derive"] }
toml = "0.8.19"
which = "6.0.3"
ego-tree = { workspace = true }
4 changes: 4 additions & 0 deletions core/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn main() {
// Rebuild if any tabs are modified
println!("cargo:rerun-if-changed=../tabs");
}
Loading

0 comments on commit 0280041

Please sign in to comment.