# 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.75"
name = "presentar-widgets"
version = "0.1.3"
authors = ["Pragmatic AI Labs"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Widget implementations for Presentar UI framework"
readme = false
license = "MIT"
repository = "https://github.com/paiml/presentar"

[features]
all-widgets = [
    "data-widgets",
    "input-widgets",
    "layout-widgets",
]
data-widgets = []
default = ["all-widgets"]
input-widgets = []
layout-widgets = []

[lib]
name = "presentar_widgets"
path = "src/lib.rs"

[[bench]]
name = "widgets"
path = "benches/widgets.rs"
harness = false

[dependencies.presentar-core]
version = "0.1.3"

[dependencies.presentar-yaml]
version = "0.1.3"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.proptest]
version = "1.9"

[dev-dependencies.serde_json]
version = "1.0"

[lints.clippy]
cargo_common_metadata = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
expect_used = "allow"
float_cmp = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
redundant_pub_crate = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
unused_self = "allow"
unwrap_used = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unreachable_pub = "warn"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "warn"
