# 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 = "2021"
name = "eulumdat-wasm"
version = "0.3.0"
authors = ["Holger Trahe <trahe@mac.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WebAssembly Eulumdat (LDT/IES) Editor - Browser-based photometric file editor"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/holg/eulumdat-rs"

[package.metadata.bevy_cli.web.release]
wasm-opt = [
    "-Oz",
    "-all",
]

[features]
bevy-viewer = ["eulumdat-bevy"]
csr = ["leptos/csr"]
default = ["csr"]
hydrate = ["leptos/hydrate"]
ssr = ["leptos/ssr"]

[lib]
name = "eulumdat_wasm"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "eulumdat-wasm"
path = "src/main.rs"

[dependencies.base64]
version = "0.22"

[dependencies.console_error_panic_hook]
version = "0.1"

[dependencies.eulumdat]
version = "0.3.0"

[dependencies.eulumdat-bevy]
version = "0.3.0"
optional = true

[dependencies.gloo]
version = "0.11"

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

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

[dependencies.leptos]
version = "0.7"
features = ["csr"]

[dependencies.leptos_router]
version = "0.7"

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

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

[dependencies.web-sys]
version = "0.3"
features = [
    "File",
    "FileList",
    "FileReader",
    "Blob",
    "BlobPropertyBag",
    "Url",
    "DragEvent",
    "DataTransfer",
    "HtmlInputElement",
    "HtmlSelectElement",
    "HtmlTextAreaElement",
    "HtmlAnchorElement",
    "Window",
    "Document",
    "Element",
    "HtmlElement",
    "MouseEvent",
    "WheelEvent",
    "DomRect",
    "console",
    "Navigator",
    "Clipboard",
    "HtmlCanvasElement",
    "CanvasRenderingContext2d",
    "WebGlRenderingContext",
    "WebGl2RenderingContext",
    "WebGlProgram",
    "WebGlShader",
    "WebGlBuffer",
    "WebGlUniformLocation",
    "Performance",
    "Storage",
]

[dev-dependencies.wasm-bindgen-test]
version = "0.3"

[profile.web-release]
opt-level = "z"
lto = "fat"
codegen-units = 1
debug = 0
inherits = "release"
strip = true
