# 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 = "euv"
version = "0.8.20"
authors = ["root@ltpp.vip"]
build = false
exclude = [
    "target",
    "Cargo.lock",
    "sh",
    ".github",
    "logs",
    "img",
    "**/*.log",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and HTML macros for WebAssembly."
readme = "README.md"
keywords = ["cross-platform"]
categories = [
    "network-programming",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/euv-dev/euv.git"

[package.metadata.wasm-pack.profile.dev]
wasm-opt = false

[package.metadata.wasm-pack.profile.release]
wasm-opt = [
    "-Oz",
    "--enable-mutable-globals",
    "--enable-bulk-memory",
    "--enable-nontrapping-float-to-int",
]

[lib]
name = "euv"
crate-type = ["rlib"]
path = "src/lib.rs"

[dependencies.alloc-no-stdlib]
version = "=2.0.4"

[dependencies.console_error_panic_hook]
version = "0.1.7"

[dependencies.euv-core]
version = "0.8.20"

[dependencies.euv-macros]
version = "0.8.20"

[dependencies.js-sys]
version = "0.3.103"

[dependencies.lombok-macros]
version = "2.0.29"

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

[dependencies.wasm-bindgen-futures]
version = "0.4.76"

[dependencies.web-sys]
version = "0.3.103"
features = [
    "AnimationEvent",
    "BeforeUnloadEvent",
    "CanvasRenderingContext2d",
    "Blob",
    "Clipboard",
    "ClipboardEvent",
    "console",
    "CssStyleDeclaration",
    "DataTransfer",
    "Document",
    "DocumentFragment",
    "DomRect",
    "DragEvent",
    "Element",
    "Event",
    "EventSource",
    "EventInit",
    "EventTarget",
    "File",
    "FileList",
    "FileReader",
    "FocusEvent",
    "HashChangeEvent",
    "History",
    "HtmlButtonElement",
    "HtmlCanvasElement",
    "HtmlCollection",
    "HtmlElement",
    "HtmlFormElement",
    "HtmlHeadElement",
    "HtmlImageElement",
    "HtmlInputElement",
    "HtmlMediaElement",
    "HtmlVideoElement",
    "HtmlMetaElement",
    "MediaDevices",
    "MediaQueryList",
    "MediaStream",
    "MediaStreamConstraints",
    "MediaStreamTrack",
    "MessageEvent",
    "HtmlOptionElement",
    "HtmlSelectElement",
    "HtmlStyleElement",
    "HtmlTextAreaElement",
    "InputEvent",
    "IntersectionObserver",
    "IntersectionObserverEntry",
    "IntersectionObserverInit",
    "KeyboardEvent",
    "Location",
    "MouseEvent",
    "Navigator",
    "Node",
    "NodeList",
    "Response",
    "ScrollBehavior",
    "ScrollIntoViewOptions",
    "ScrollLogicalPosition",
    "Storage",
    "SubmitEvent",
    "Text",
    "TouchEvent",
    "TouchList",
    "Touch",
    "TransitionEvent",
    "VisualViewport",
    "WheelEvent",
    "WebSocket",
    "Window",
]

[profile.dev]
opt-level = 0
lto = false
codegen-units = 16
debug = 0
panic = "unwind"
incremental = true
strip = "none"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
panic = "unwind"
incremental = false
strip = true

[profile.release.package.euv-example]
opt-level = "z"
