diff --git a/Cargo.lock b/Cargo.lock index e0463d6..6ba0658 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -134,9 +134,9 @@ checksum = "7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236" [[package]] name = "async-trait" -version = "0.1.84" +version = "0.1.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b1244b10dcd56c92219da4e14caa97e312079e185f04ba3eea25061561dc0a0" +checksum = "3f934833b4b7233644e5848f235df3f57ed8c80f1528a26c3dfa13d2147fa056" dependencies = [ "proc-macro2", "quote", @@ -2256,9 +2256,9 @@ dependencies = [ [[package]] name = "os_info" -version = "3.9.1" +version = "3.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb6651f4be5e39563c4fe5cc8326349eb99a25d805a3493f791d5bfd0269e430" +checksum = "6e6520c8cc998c5741ee68ec1dc369fc47e5f0ea5320018ecf2a1ccd6328f48b" dependencies = [ "log", "serde", @@ -2374,9 +2374,9 @@ dependencies = [ [[package]] name = "pin-project-lite" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" [[package]] name = "pkg-config" @@ -2650,6 +2650,12 @@ version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" +[[package]] +name = "rustc-hash" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" + [[package]] name = "rustc_version" version = "0.4.1" @@ -2945,9 +2951,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.94" +version = "2.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "987bc0be1cdea8b10216bd06e2ca407d40b9543468fafd3ddfb02f36e77f71f3" +checksum = "46f71c0377baf4ef1cc3e3402ded576dccc315800fbc62dfc7fe04b009773b4a" dependencies = [ "proc-macro2", "quote", @@ -3003,6 +3009,7 @@ dependencies = [ "human-panic", "lazy_static", "ratatui", + "rustc-hash", "serde", "signal-hook", "syntect", @@ -3028,7 +3035,6 @@ dependencies = [ "color-eyre", "devicons", "directories", - "eyre", "ignore", "lazy_static", "regex", diff --git a/Cargo.toml b/Cargo.toml index 3918ddb..6986d84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,15 +54,24 @@ include = [ rust-version = "1.81" readme = "README.md" +[workspace.dependencies] +directories = "5.0.1" +color-eyre = "0.6.3" +lazy_static = "1.5.0" +tokio = { version = "1.41.1", features = ["full"] } +tracing = "0.1.40" +tracing-subscriber = { version = "0.3.18", features = ["env-filter", "serde"] } +rustc-hash = "2.1.0" +syntect = "5.2.0" +unicode-width = "0.2.0" +clap = { version = "4.5.20", features = ["derive", "cargo", "string"] } +serde = { version = "1.0.214", features = ["derive"] } +toml = "0.8.19" +ratatui = { version = "0.29.0", features = ["serde", "macros"] } -[[bin]] -bench = false -path = "crates/television/main.rs" -name = "tv" [dependencies] -# workspace dependencies - +# local dependencies television-fuzzy = { path = "crates/television-fuzzy", version = "0.0.18" } television-derive = { path = "crates/television-derive", version = "0.0.18" } television-screen = { path = "crates/television-screen", version = "0.0.18" } @@ -70,23 +79,26 @@ television-channels = { path = "crates/television-channels", version = "0.0.18" television-previewers = { path = "crates/television-previewers", version = "0.0.18" } television-utils = { path = "crates/television-utils", version = "0.0.18" } +# workspace dependencies +directories = { workspace = true } +color-eyre = { workspace = true } +lazy_static = { workspace = true } +tokio = { workspace = true, features = ["full"] } +tracing = { workspace = true } +tracing-subscriber = { workspace = true, features = ["env-filter", "serde"] } +rustc-hash = { workspace = true } +syntect = { workspace = true } +unicode-width = { workspace = true } +clap = { workspace = true, features = ["derive", "cargo", "string"] } +serde = { workspace = true, features = ["derive"] } +toml = { workspace = true } +ratatui = { workspace = true, features = ["serde", "macros"] } + # external dependencies better-panic = "0.3.0" -clap = { version = "4.4.5", features = ["derive", "cargo", "string"] } -color-eyre = "0.6.3" config = "0.14.0" crossterm = { version = "0.28.1", features = ["serde"] } -directories = "5.0.1" -lazy_static = "1.5.0" -ratatui = { version = "0.29.0", features = ["serde", "macros"] } -serde = { version = "1.0.208", features = ["derive"] } signal-hook = "0.3.17" -syntect = "5.2.0" -tokio = { version = "1.39.3", features = ["full"] } -toml = "0.8.19" -tracing = "0.1.40" -tracing-subscriber = { version = "0.3.18", features = ["env-filter", "serde"] } -unicode-width = "0.2.0" human-panic = "2.0.2" copypasta = "0.10.1" @@ -94,6 +106,11 @@ copypasta = "0.10.1" criterion = "0.5.1" devicons = "0.6.11" +[[bin]] +bench = false +path = "crates/television/main.rs" +name = "tv" + [[bench]] name = "results_list_benchmark" harness = false @@ -144,4 +161,3 @@ float_cmp = "allow" implicit_hasher = "allow" wildcard_imports = "allow" from_iter_instead_of_collect = "allow" - diff --git a/crates/television-channels/Cargo.toml b/crates/television-channels/Cargo.toml index 2b940ed..381e18a 100644 --- a/crates/television-channels/Cargo.toml +++ b/crates/television-channels/Cargo.toml @@ -16,18 +16,19 @@ rust-version.workspace = true television-fuzzy = { path = "../television-fuzzy", version = "0.0.18" } television-utils = { path = "../television-utils", version = "0.0.18" } television-derive = { path = "../television-derive", version = "0.0.18" } + +tracing = { workspace = true } +tokio = { workspace = true, features = ["rt"] } +clap = { workspace = true, features = ["derive"] } +directories = { workspace = true } +color-eyre = { workspace = true } +serde = { workspace = true } +lazy_static = { workspace = true } +toml = { workspace = true } + devicons = "0.6.11" -tracing = "0.1.40" -eyre = "0.6.12" ignore = "0.4.23" -tokio = { version = "1.41.1", features = ["rt"] } -clap = { version = "4.5.20", features = ["derive"] } -directories = "5.0.1" -color-eyre = "0.6.3" -serde = "1.0.214" strum = { version = "0.26.3", features = ["derive"] } -lazy_static = "1.5.0" -toml = "0.8.19" regex = "1.11.1" [lints] diff --git a/crates/television-previewers/Cargo.toml b/crates/television-previewers/Cargo.toml index 4658771..d97aed4 100644 --- a/crates/television-previewers/Cargo.toml +++ b/crates/television-previewers/Cargo.toml @@ -13,16 +13,18 @@ edition.workspace = true rust-version.workspace = true [dependencies] -syntect = "5.2.0" television-channels = { path = "../television-channels", version = "0.0.18" } television-utils = { path = "../television-utils", version = "0.0.18" } -tracing = "0.1.40" + +syntect = { workspace = true } +tracing = { workspace = true } +tokio = { workspace = true } +color-eyre = { workspace = true } +lazy_static = { workspace = true } + parking_lot = "0.12.3" -tokio = "1.41.1" devicons = "0.6.11" -color-eyre = "0.6.3" regex = "1.11.1" -lazy_static = "1.5.0" nom = "7.1" tui = { version = "0.29", default-features = false, package = "ratatui" } thiserror = "1.0" diff --git a/crates/television-screen/Cargo.toml b/crates/television-screen/Cargo.toml index 28ad99a..df9e9be 100644 --- a/crates/television-screen/Cargo.toml +++ b/crates/television-screen/Cargo.toml @@ -13,13 +13,14 @@ edition.workspace = true rust-version.workspace = true [dependencies] -ratatui = "0.29.0" -serde = "1.0.215" television-utils = { path = "../television-utils", version = "0.0.18" } television-channels = { path = "../television-channels", version = "0.0.18" } television-previewers = { path = "../television-previewers", version = "0.0.18" } -color-eyre = "0.6.3" -syntect = "5.2.0" + +ratatui = { workspace = true } +serde = { workspace = true } +color-eyre = { workspace = true } +syntect = { workspace = true } [lints] workspace = true diff --git a/crates/television-utils/Cargo.toml b/crates/television-utils/Cargo.toml index 2b63c21..79c9279 100644 --- a/crates/television-utils/Cargo.toml +++ b/crates/television-utils/Cargo.toml @@ -13,17 +13,18 @@ edition.workspace = true rust-version.workspace = true [dependencies] +lazy_static = { workspace = true } +tracing = { workspace = true } +color-eyre = { workspace = true } +directories = { workspace = true } +syntect = { workspace = true } +unicode-width = { workspace = true } + ignore = "0.4.23" -lazy_static = "1.5.0" -tracing = "0.1.40" -color-eyre = "0.6.3" bat = { version = "0.24.0", default-features = false, features = [ "regex-onig", ] } -directories = "5.0.1" -syntect = "5.2.0" gag = "1.0.0" -unicode-width = "0.2.0" [target.'cfg(windows)'.dependencies] winapi-util = "0.1.9"