# 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 = "2024"
name = "panes"
version = "0.6.0"
build = false
exclude = [
    "docs/",
    "logs/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Renderer-agnostic layout engine with declarative ergonomics"
homepage = "https://github.com/jostled-org/panes"
readme = "README.md"
keywords = [
    "layout",
    "flexbox",
    "grid",
    "tui",
    "ui",
]
categories = ["gui"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jostled-org/panes"

[features]
toml = [
    "dep:toml",
    "dep:serde",
]

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

[[test]]
name = "add_panel_adjacent"
path = "tests/add_panel_adjacent.rs"

[[test]]
name = "audit_fixes"
path = "tests/audit_fixes.rs"

[[test]]
name = "builder"
path = "tests/builder.rs"

[[test]]
name = "compiler"
path = "tests/compiler.rs"

[[test]]
name = "diff"
path = "tests/diff.rs"

[[test]]
name = "error"
path = "tests/error.rs"

[[test]]
name = "focus_direction"
path = "tests/focus_direction.rs"

[[test]]
name = "layout"
path = "tests/layout.rs"

[[test]]
name = "layout_macro"
path = "tests/layout_macro.rs"

[[test]]
name = "node"
path = "tests/node.rs"

[[test]]
name = "panel"
path = "tests/panel.rs"

[[test]]
name = "panel_entry"
path = "tests/panel_entry.rs"

[[test]]
name = "preset"
path = "tests/preset.rs"

[[test]]
name = "rect"
path = "tests/rect.rs"

[[test]]
name = "resolver"
path = "tests/resolver.rs"

[[test]]
name = "runtime"
path = "tests/runtime.rs"

[[test]]
name = "strategy_active"
path = "tests/strategy_active.rs"

[[test]]
name = "strategy_binary"
path = "tests/strategy_binary.rs"

[[test]]
name = "strategy_grid"
path = "tests/strategy_grid.rs"

[[test]]
name = "strategy_sequence"
path = "tests/strategy_sequence.rs"

[[test]]
name = "strategy_slotted"
path = "tests/strategy_slotted.rs"

[[test]]
name = "toml_parse"
path = "tests/toml_parse.rs"

[[test]]
name = "tree"
path = "tests/tree.rs"

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

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

[dependencies.rustc-hash]
version = "2"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.taffy]
version = "0.9"

[dependencies.thiserror]
version = "2"

[dependencies.toml]
version = "0.8"
optional = true

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

[dev-dependencies.ratatui]
version = "0.30"
default-features = false

[dev-dependencies.taffy]
version = "0.9"

[lints.clippy]
collapsible_match = "warn"
expect_used = "deny"
match_ref_pats = "warn"
match_same_arms = "warn"
match_single_binding = "warn"
needless_bool = "deny"
needless_late_init = "warn"
needless_match = "warn"
panic = "deny"
redundant_guards = "warn"
redundant_pattern = "warn"
redundant_pattern_matching = "warn"
single_match = "allow"
single_match_else = "allow"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "forbid"

[profile.dev]
debug = "line-tables-only"
incremental = true

[profile.test]
incremental = true
