From 1874b9dd55284952931d58646904f0437e48ce76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jagoda=20Estera=20=C5=9Al=C4=85zak?= <128227338+j-g00da@users.noreply.github.com> Date: Sat, 10 May 2025 17:11:00 +0200 Subject: [PATCH] chore: move time to dev-dependencies (#1835) --- ratatui/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ratatui/Cargo.toml b/ratatui/Cargo.toml index 4c62d1e4..ac85c167 100644 --- a/ratatui/Cargo.toml +++ b/ratatui/Cargo.toml @@ -76,8 +76,8 @@ all-widgets = ["widget-calendar"] #! Widgets that add dependencies are gated behind feature flags to prevent unused transitive #! dependencies. The available features are: -## enables the [`calendar`](widgets::calendar) widget module and adds a dependency on [`time`]. -widget-calendar = ["ratatui-widgets/calendar", "dep:time"] +## enables the [`calendar`](widgets::calendar) widget module. +widget-calendar = ["ratatui-widgets/calendar"] #! The following optional features are only available for some backends: @@ -124,7 +124,6 @@ ratatui-macros = { workspace = true, optional = true } ratatui-termwiz = { workspace = true, optional = true } ratatui-widgets = { workspace = true } serde = { workspace = true, optional = true } -time = { version = "0.3.39", optional = true, features = ["local-offset"] } [target.'cfg(not(windows))'.dependencies] ratatui-termion = { workspace = true, optional = true } @@ -142,6 +141,7 @@ rand = "0.9.1" rand_chacha = "0.9.0" rstest = "0.25.0" serde_json.workspace = true +time = { version = "0.3.39", features = ["local-offset"] } tokio = { version = "1.44.2", features = ["rt", "macros", "time", "rt-multi-thread"] } tracing = "0.1.40" tracing-appender = "0.2.3"