mirror of
https://github.com/ratatui/ratatui.git
synced 2025-09-28 13:31:14 +00:00
chore(widgets): enable calendar widget as default (#1521)
We now expect that you disable the default features if you want less dependencies
This commit is contained in:
parent
d291042e69
commit
2b7ec5cb7f
@ -20,7 +20,7 @@ cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|
|||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = ["all-widgets"]
|
||||||
|
|
||||||
## enables serialization and deserialization of style and color types using the [`serde`] crate.
|
## enables serialization and deserialization of style and color types using the [`serde`] crate.
|
||||||
## This is useful if you want to save themes to a file.
|
## This is useful if you want to save themes to a file.
|
||||||
|
@ -26,7 +26,7 @@ rustdoc-args = ["--cfg", "docsrs"]
|
|||||||
## By default, we enable the crossterm backend as this is a reasonable choice for most applications
|
## By default, we enable the crossterm backend as this is a reasonable choice for most applications
|
||||||
## as it is supported on Linux/Mac/Windows systems. We also enable the `underline-color` feature
|
## as it is supported on Linux/Mac/Windows systems. We also enable the `underline-color` feature
|
||||||
## which allows you to set the underline color of text.
|
## which allows you to set the underline color of text.
|
||||||
default = ["crossterm", "underline-color"]
|
default = ["crossterm", "underline-color", "all-widgets"]
|
||||||
#! Generally an application will only use one backend, so you should only enable one of the following features:
|
#! Generally an application will only use one backend, so you should only enable one of the following features:
|
||||||
## enables the [`CrosstermBackend`](backend::CrosstermBackend) backend and adds a dependency on [`crossterm`].
|
## enables the [`CrosstermBackend`](backend::CrosstermBackend) backend and adds a dependency on [`crossterm`].
|
||||||
crossterm = ["dep:ratatui-crossterm"]
|
crossterm = ["dep:ratatui-crossterm"]
|
||||||
@ -58,7 +58,7 @@ all-widgets = ["widget-calendar"]
|
|||||||
#! Widgets that add dependencies are gated behind feature flags to prevent unused transitive
|
#! Widgets that add dependencies are gated behind feature flags to prevent unused transitive
|
||||||
#! dependencies. The available features are:
|
#! dependencies. The available features are:
|
||||||
## enables the [`calendar`](widgets::calendar) widget module and adds a dependency on [`time`].
|
## enables the [`calendar`](widgets::calendar) widget module and adds a dependency on [`time`].
|
||||||
widget-calendar = ["ratatui-widgets/calendar"]
|
widget-calendar = ["ratatui-widgets/calendar", "dep:time"]
|
||||||
|
|
||||||
#! The following optional features are only available for some backends:
|
#! The following optional features are only available for some backends:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user