From f5532d16234427354d088d92ed6ab78fc0f4372a Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Mon, 2 Sep 2024 16:56:41 -0500 Subject: [PATCH] remove old compile-time --- Cargo.lock | 82 ---------------------------------------------------- Cargo.toml | 1 - src/state.rs | 9 +++--- 3 files changed, 5 insertions(+), 87 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 465a2e4d..40e82069 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Cargo.toml b/Cargo.toml index e3eb99b4..77ca0ab4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/state.rs b/src/state.rs index 24c090e5..6c597445 100644 --- a/src/state.rs +++ b/src/state.rs @@ -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);