# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.74.0" name = "ratatui" version = "0.27.0" authors = [ "Florian Dehau ", "The Ratatui Developers", ] exclude = [ "assets/*", ".github", "Makefile.toml", "CONTRIBUTING.md", "*.log", "tags", ] autoexamples = true description = "A library that's all about cooking up terminal user interfaces" homepage = "https://ratatui.rs" documentation = "https://docs.rs/ratatui/latest/ratatui/" readme = "README.md" keywords = [ "tui", "terminal", "dashboard", ] categories = ["command-line-interface"] license = "MIT" repository = "https://github.com/ratatui-org/ratatui" [package.metadata.docs.rs] all-features = true cargo-args = [ "-Zunstable-options", "-Zrustdoc-scrape-examples", ] rustdoc-args = [ "--cfg", "docsrs", ] [profile.bench] lto = true codegen-units = 1 [lib] bench = false [[example]] name = "barchart" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "block" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "calendar" doc-scrape-examples = true required-features = [ "crossterm", "widget-calendar", ] [[example]] name = "canvas" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "chart" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "colors" doc-scrape-examples = false required-features = ["crossterm"] [[example]] name = "colors_rgb" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "constraint-explorer" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "constraints" doc-scrape-examples = false required-features = ["crossterm"] [[example]] name = "custom_widget" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "demo" doc-scrape-examples = false [[example]] name = "demo2" doc-scrape-examples = true required-features = [ "crossterm", "widget-calendar", ] [[example]] name = "docsrs" doc-scrape-examples = false required-features = ["crossterm"] [[example]] name = "flex" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "gauge" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "hello_world" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "inline" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "layout" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "line_gauge" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "hyperlink" doc-scrape-examples = true required-features = [ "crossterm", "unstable-widget-ref", ] [[example]] name = "list" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "minimal" doc-scrape-examples = false required-features = ["crossterm"] [[example]] name = "modifiers" doc-scrape-examples = false required-features = ["crossterm"] [[example]] name = "panic" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "paragraph" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "popup" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "ratatui-logo" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "scrollbar" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "sparkline" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "table" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "tabs" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "tracing" doc-scrape-examples = true required-features = ["crossterm"] [[example]] name = "user_input" doc-scrape-examples = true required-features = ["crossterm"] [[test]] name = "state_serde" required-features = ["serde"] [[bench]] name = "barchart" harness = false [[bench]] name = "block" harness = false [[bench]] name = "line" harness = false [[bench]] name = "list" harness = false [[bench]] name = "paragraph" harness = false [[bench]] name = "sparkline" harness = false [dependencies.bitflags] version = "2.3" [dependencies.cassowary] version = "0.3" [dependencies.compact_str] version = "0.7.1" [dependencies.crossterm] version = "0.27" optional = true [dependencies.document-features] version = "0.2.7" optional = true [dependencies.itertools] version = "0.13" [dependencies.lru] version = "0.12.0" [dependencies.palette] version = "0.7.6" optional = true [dependencies.paste] version = "1.0.2" [dependencies.serde] version = "1" features = ["derive"] optional = true [dependencies.stability] version = "0.2.0" [dependencies.strum] version = "0.26" features = ["derive"] [dependencies.strum_macros] version = "0.26.3" [dependencies.termion] version = "4.0.0" optional = true [dependencies.termwiz] version = "0.22.0" optional = true [dependencies.time] version = "0.3.11" features = ["local-offset"] optional = true [dependencies.unicode-segmentation] version = "1.10" [dependencies.unicode-truncate] version = "1" [dependencies.unicode-width] version = "0.1.13" [dev-dependencies.anyhow] version = "1.0.71" [dev-dependencies.argh] version = "0.1.12" [dev-dependencies.better-panic] version = "0.3.0" [dev-dependencies.color-eyre] version = "0.6.2" [dev-dependencies.criterion] version = "0.5.1" features = ["html_reports"] [dev-dependencies.derive_builder] version = "0.20.0" [dev-dependencies.fakeit] version = "1.1" [dev-dependencies.font8x8] version = "0.3.1" [dev-dependencies.indoc] version = "2" [dev-dependencies.palette] version = "0.7.3" [dev-dependencies.pretty_assertions] version = "1.4.0" [dev-dependencies.rand] version = "0.8.5" [dev-dependencies.rand_chacha] version = "0.3.1" [dev-dependencies.rstest] version = "0.21.0" [dev-dependencies.serde_json] version = "1.0.109" [dev-dependencies.tracing] version = "0.1.40" [dev-dependencies.tracing-appender] version = "0.2.3" [dev-dependencies.tracing-subscriber] version = "0.3.18" features = ["env-filter"] [features] all-widgets = ["widget-calendar"] crossterm = ["dep:crossterm"] default = [ "crossterm", "underline-color", ] macros = [] palette = ["dep:palette"] serde = [ "dep:serde", "bitflags/serde", "compact_str/serde", ] termion = ["dep:termion"] termwiz = ["dep:termwiz"] underline-color = ["dep:crossterm"] unstable = [ "unstable-rendered-line-info", "unstable-widget-ref", ] unstable-rendered-line-info = [] unstable-widget-ref = [] widget-calendar = ["dep:time"] [badges] [lints.clippy] as_underscore = "warn" cast_possible_truncation = "allow" cast_possible_wrap = "allow" cast_precision_loss = "allow" cast_sign_loss = "allow" deref_by_slicing = "warn" else_if_without_else = "warn" empty_line_after_doc_comments = "warn" equatable_if_let = "warn" fn_to_numeric_cast_any = "warn" format_push_string = "warn" map_err_ignore = "warn" missing_const_for_fn = "warn" missing_errors_doc = "allow" missing_panics_doc = "allow" mixed_read_write_in_expression = "warn" mod_module_files = "warn" module_name_repetitions = "allow" must_use_candidate = "allow" needless_pass_by_ref_mut = "warn" needless_raw_strings = "warn" or_fun_call = "warn" redundant_type_annotations = "warn" rest_pat_in_fully_bound_structs = "warn" string_lit_chars_any = "warn" string_slice = "warn" string_to_string = "warn" unnecessary_self_imports = "warn" use_self = "warn" [lints.clippy.cargo] level = "warn" priority = -1 [lints.clippy.pedantic] level = "warn" priority = -1 [lints.rust] unsafe_code = "forbid"