# 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-wasm"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WASM/canvas adapter for the panes layout engine"
homepage = "https://github.com/jostled-org/panes"
readme = "README.md"
keywords = [
    "layout",
    "wasm",
    "canvas",
    "webassembly",
]
categories = [
    "gui",
    "wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jostled-org/panes"

[features]
default = []
js = ["wasm-bindgen"]

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

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

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

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

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

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

[dependencies.panes]
version = "0.18"

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

[dependencies.serde_json]
version = "1"

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

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

[dev-dependencies.panes]
version = "0.18"

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

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

[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"
