remove old compile-time

This commit is contained in:
Chris Titus 2024-09-02 16:56:41 -05:00
parent 8d600f8f2f
commit f5532d1623
3 changed files with 5 additions and 87 deletions

82
Cargo.lock generated
View File

@ -179,20 +179,6 @@ dependencies = [
"static_assertions",
]
[[package]]
name = "compile-time"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e55ede5279d4d7c528906853743abeb26353ae1e6c440fcd6d18316c2c2dd903"
dependencies = [
"once_cell",
"proc-macro2",
"quote",
"rustc_version",
"semver",
"time",
]
[[package]]
name = "crossterm"
version = "0.27.0"
@ -218,15 +204,6 @@ dependencies = [
"winapi",
]
[[package]]
name = "deranged"
version = "0.3.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4"
dependencies = [
"powerfmt",
]
[[package]]
name = "downcast-rs"
version = "1.2.1"
@ -446,12 +423,6 @@ dependencies = [
"pin-utils",
]
[[package]]
name = "num-conv"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
[[package]]
name = "once_cell"
version = "1.19.0"
@ -520,12 +491,6 @@ dependencies = [
"winreg",
]
[[package]]
name = "powerfmt"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
[[package]]
name = "proc-macro2"
version = "1.0.83"
@ -620,15 +585,6 @@ dependencies = [
"winapi",
]
[[package]]
name = "rustc_version"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
dependencies = [
"semver",
]
[[package]]
name = "rustix"
version = "0.38.34"
@ -660,12 +616,6 @@ version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "semver"
version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b"
[[package]]
name = "serde"
version = "1.0.205"
@ -883,37 +833,6 @@ dependencies = [
"syn",
]
[[package]]
name = "time"
version = "0.3.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
dependencies = [
"deranged",
"itoa",
"num-conv",
"powerfmt",
"serde",
"time-core",
"time-macros",
]
[[package]]
name = "time-core"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
[[package]]
name = "time-macros"
version = "0.2.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"
dependencies = [
"num-conv",
"time-core",
]
[[package]]
name = "toml"
version = "0.8.19"
@ -953,7 +872,6 @@ name = "tui"
version = "0.1.0"
dependencies = [
"clap",
"compile-time",
"crossterm",
"ego-tree",
"include_dir",

View File

@ -5,7 +5,6 @@ edition = "2021"
[dependencies]
clap = { version = "4.5.16", features = ["derive"] }
compile-time = "0.2.0"
crossterm = "0.27.0"
ego-tree = "0.6.2"
oneshot = "0.1.8"

View File

@ -153,10 +153,11 @@ impl AppState {
} else {
Style::new()
})
.block(Block::default().borders(Borders::ALL).title(format!(
"Linux Toolbox - {}",
compile_time::date_str!()
)))
.block(
Block::default()
.borders(Borders::ALL)
.title(format!("Linux Toolbox")),
)
.scroll_padding(1);
frame.render_stateful_widget(list, chunks[1], &mut self.selection);