# 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 = "dockview_dioxus"
version = "0.1.2"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A tiling/docking layout for Dioxus — panes split, resize, tab, float, and maximize, with the arrangement saved to JSON and restored on reload."
documentation = "https://docs.rs/dockview_dioxus"
readme = "README.md"
keywords = [
    "dioxus",
    "layout",
    "docking",
    "tiling",
    "wasm",
]
categories = [
    "gui",
    "wasm",
]
license = "BlueOak-1.0.0"
repository = "https://github.com/valeratrades/dockview_dioxus"

[features]
default = ["web"]
web = ["dioxus/web"]

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

[[test]]
name = "integration"
path = "tests/integration/main.rs"

[dependencies.dioxus]
version = "^0.7"

[dependencies.serde]
version = "^1"
features = ["derive"]

[dependencies.serde_json]
version = "^1"

[dev-dependencies.gloo-timers]
version = "0.3"
features = ["futures"]

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "Window",
    "Storage",
    "Document",
    "Element",
    "HtmlElement",
    "DomRect",
    "Node",
    "NodeList",
    "EventTarget",
    "KeyboardEvent",
]

[lints.clippy]
doc_lazy_continuation = "allow"
float_cmp = "allow"
get_first = "allow"
get_last_with_len = "allow"
len_zero = "allow"
manual_is_multiple_of = "allow"
tabs_in_doc_comments = "allow"
undocumented_unsafe_blocks = "warn"

[lints.rust]
unused_features = "allow"
