iced/web/Cargo.toml
Liam Murphy 1d85b6e887
feat(web): Support in-memory image data
I had to create two methods which basically do the same thing, `from_memory` and `from_slice`, but `from_memory` takes ownership of the bytes to be compatible with `iced_native`.

Also, `Data` is incompatible, because if I stored the bytes in `Data` and created a new object URL every render, it would have caused a memory leak because bumpalo doesn't call destructors and there'd be no way to call URL.revokeObjectUrl on it. It's also more efficient this way.
2021-03-21 14:36:06 +11:00

49 lines
961 B
TOML

[package]
name = "iced_web"
version = "0.3.0"
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
edition = "2018"
description = "A web backend for Iced"
license = "MIT"
repository = "https://github.com/hecrj/iced"
documentation = "https://docs.rs/iced_web"
readme = "README.md"
keywords = ["gui", "ui", "web", "interface", "widgets"]
categories = ["web-programming"]
[badges]
maintenance = { status = "actively-developed" }
[dependencies]
dodrio = "0.2"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
url = "2.0"
num-traits = "0.2"
js-sys = "0.3"
[dependencies.iced_core]
version = "0.3"
path = "../core"
[dependencies.iced_futures]
version = "0.2"
path = "../futures"
[dependencies.iced_style]
version = "0.2"
path = "../style"
[dependencies.web-sys]
version = "0.3.27"
features = [
"console",
"Document",
"HtmlElement",
"HtmlInputElement",
"Event",
"EventTarget",
"InputEvent",
"KeyboardEvent",
"Url",
]