ruffle/web/Cargo.toml

64 lines
2.4 KiB
TOML
Raw Normal View History

2019-04-28 01:15:43 +00:00
[package]
2019-05-08 16:46:19 +00:00
name = "ruffle_web"
2019-04-28 01:15:43 +00:00
version = "0.1.0"
authors = ["Mike Welsh <mwelsh@gmail.com>"]
2021-10-21 16:27:12 +00:00
edition = "2021"
2020-05-26 13:57:28 +00:00
license = "MIT OR Apache-2.0"
description = "Web (WASM) bindings to the Ruffle flash player"
readme = "README.md"
homepage = "https://ruffle.rs"
repository = "https://github.com/ruffle-rs/ruffle/"
publish = false # This crate is useless alone, people should use the npm package
2019-04-28 01:15:43 +00:00
[lib]
crate-type = ["cdylib", "rlib"]
2019-04-28 06:08:59 +00:00
[features]
default = ["canvas", "console_error_panic_hook", "console_log", "webgl"]
2021-04-21 07:22:42 +00:00
# core features
2020-07-23 17:32:22 +00:00
avm_debug = ["ruffle_core/avm_debug"]
2021-04-21 07:22:42 +00:00
h263 = ["ruffle_core/h263"]
lzma = ["ruffle_core/lzma"]
# web features
canvas = ["ruffle_render_canvas"]
webgl = ["ruffle_render_webgl"]
wgpu = ["ruffle_render_wgpu"]
2019-04-28 06:08:59 +00:00
2019-04-28 01:15:43 +00:00
[dependencies]
byteorder = "1.4"
console_error_panic_hook = { version = "0.1.7", optional = true }
console_log = { version = "0.2", optional = true }
fnv = "1.0.7"
generational-arena = "0.2.8"
js-sys = "0.3.55"
2021-01-20 02:10:35 +00:00
log = { version = "0.4", features = ["serde"] }
ruffle_render_canvas = { path = "../render/canvas", optional = true }
ruffle_web_common = { path = "common" }
ruffle_render_webgl = { path = "../render/webgl", optional = true }
ruffle_render_wgpu = { path = "../render/wgpu", optional = true }
url = "2.2.2"
wasm-bindgen = { version = "=0.2.78", features = ["serde-serialize"] }
wasm-bindgen-futures = "0.4.28"
2020-07-08 18:26:00 +00:00
chrono = { version = "0.4", features = ["wasmbind"] }
2021-09-17 07:35:13 +00:00
getrandom = { version = "0.2", features = ["js"] }
serde = { version = "1.0.136", features = ["derive"] }
thiserror = "1.0"
base64 = "0.13.0"
[dependencies.ruffle_core]
path = "../core"
default-features = false
features = ["h263", "vp6", "screenvideo", "serde", "wasm-bindgen"]
2019-04-28 01:15:43 +00:00
2019-04-28 06:08:59 +00:00
[dependencies.web-sys]
version = "0.3.50"
features = [
2020-08-22 00:04:02 +00:00
"AddEventListenerOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioParam", "AudioProcessingEvent", "AudioContext", "AudioDestinationNode",
2019-10-30 21:06:00 +00:00
"AudioNode", "CanvasRenderingContext2d", "ChannelMergerNode", "ChannelSplitterNode", "CssStyleDeclaration", "Document",
"Element", "Event", "EventTarget", "GainNode", "Gpu", "HtmlCanvasElement", "HtmlElement", "HtmlImageElement", "MouseEvent",
2019-12-23 20:15:06 +00:00
"Navigator", "Node", "Performance", "PointerEvent", "ScriptProcessorNode", "UiEvent", "Window", "Location", "HtmlFormElement",
"KeyboardEvent", "Path2d", "CanvasGradient", "CanvasPattern", "SvgMatrix", "SvgsvgElement", "Response", "Request", "RequestInit",
2020-11-01 21:07:27 +00:00
"Blob", "BlobPropertyBag", "Storage", "WheelEvent", "ImageData"]