# 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"
rust-version = "1.89"
name = "animato-yew"
version = "1.4.0"
authors = ["Aarambh Dev Hub"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Yew integration for Animato: hooks, CSS, scroll, presence, lists, gestures, transitions, and agent coordination."
readme = "README.md"
keywords = [
    "animation",
    "yew",
    "wasm",
    "web",
    "gui",
]
categories = [
    "wasm",
    "web-programming",
    "gui",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/AarambhDevHub/animato"
resolver = "2"

[features]
agent = [
    "dep:yew-agent",
    "dep:serde",
    "animato-core/serde",
    "animato-tween/serde",
    "animato-spring/serde",
]
color = ["dep:animato-color"]
csr = ["yew/csr"]
css = []
default = [
    "css",
    "scroll",
    "presence",
    "transition",
    "list",
    "gesture",
    "agent",
]
gesture = ["dep:animato-physics"]
hydration = ["yew/hydration"]
list = ["presence"]
path = ["dep:animato-path"]
presence = ["css"]
scroll = []
ssr = ["yew/ssr"]
transition = [
    "presence",
    "dep:yew-router",
]

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

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

[dependencies.animato-color]
version = "1.4"
optional = true

[dependencies.animato-core]
version = "1.4"

[dependencies.animato-path]
version = "1.4"
features = ["std"]
optional = true

[dependencies.animato-physics]
version = "1.4"
features = ["std"]
optional = true

[dependencies.animato-spring]
version = "1.4"
features = ["std"]

[dependencies.animato-timeline]
version = "1.4"
features = ["std"]

[dependencies.animato-tween]
version = "1.4"
features = ["std"]

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

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

[dependencies.web-sys]
version = "0.3"
features = [
    "CssStyleDeclaration",
    "Document",
    "DomRect",
    "Element",
    "Event",
    "EventTarget",
    "HtmlCollection",
    "HtmlElement",
    "MouseEvent",
    "Node",
    "Performance",
    "PointerEvent",
    "Touch",
    "TouchEvent",
    "TouchList",
    "Window",
]

[dependencies.yew]
version = "0.23"
default-features = false

[dependencies.yew-agent]
version = "0.5"
optional = true

[dependencies.yew-router]
version = "0.20"
optional = true
default-features = false

[dev-dependencies.approx]
version = "0.5"

[dev-dependencies.pollster]
version = "0.4"
