46 lines
899 B
TOML
46 lines
899 B
TOML
[package]
|
|
name = "file_browser_widget"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "WASM widget for embedding the FileBrowser component in web applications"
|
|
license = "MIT"
|
|
repository = "https://github.com/herocode/framework"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
|
|
|
|
[dependencies]
|
|
components = { path = "../../components" }
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-futures = "0.4"
|
|
js-sys = "0.3"
|
|
yew = { version = "0.21", features = ["csr"] }
|
|
gloo = "0.11"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde-wasm-bindgen = "0.6"
|
|
console_error_panic_hook = "0.1"
|
|
|
|
[dependencies.web-sys]
|
|
version = "0.3"
|
|
features = [
|
|
"console",
|
|
"Document",
|
|
"Element",
|
|
"HtmlElement",
|
|
"Window",
|
|
"Location",
|
|
"UrlSearchParams"
|
|
]
|
|
|
|
[[example]]
|
|
name = "server"
|
|
path = "examples/main.rs"
|
|
|
|
[profile.release]
|
|
# Tell `rustc` to optimize for small code size.
|
|
opt-level = "s"
|
|
# Enable link time optimization
|
|
lto = true
|