mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-31 21:37:08 -06:00
25 lines
922 B
TOML
25 lines
922 B
TOML
[package]
|
|
name = "photocraft-web-boot"
|
|
description = "Starts Photocraft in the browser from compressed parts of its WebAssembly"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[[bin]]
|
|
name = "photocraft-web-boot"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# Inflates the parts in browsers without `DecompressionStream`.
|
|
flate2 = { workspace = true }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-futures = "0.4"
|
|
js-sys = "0.3"
|
|
web-sys = { version = "0.3", features = ["Window", "Document", "Element", "Node", "Request", "RequestInit", "RequestCache", "Response", "ResponseInit", "Headers", "ReadableStream", "ReadableStreamDefaultReader", "WritableStream", "WritableStreamDefaultWriter", "TransformStream", "TransformStreamDefaultController", "Transformer", "StreamPipeOptions", "ReadableWritablePair", "console"] }
|