[package] name = "ruffle_web" version = "0.1.0" authors = ["Mike Welsh "] edition = "2018" 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 [lib] crate-type = ["cdylib", "rlib"] [features] default = ["canvas", "console_error_panic_hook", "console_log", "webgl"] lzma = ["ruffle_core/lzma"] avm_debug = ["ruffle_core/avm_debug"] canvas = ["ruffle_render_canvas"] webgl = ["ruffle_render_webgl"] [dependencies] byteorder = "1.4.2" console_error_panic_hook = { version = "0.1.1", optional = true } console_log = { version = "0.2", optional = true } fnv = "1.0.7" generational-arena = "0.2.8" js-sys = "0.3.46" 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 } url = "2.2.1" wasm-bindgen = { version = "=0.2.69", features = ["serde-serialize"] } wasm-bindgen-futures = "0.4.19" chrono = { version = "0.4", features = ["wasmbind"] } getrandom = { version = "0.2", features = ["js"] } serde = { version = "1.0.123", features = ["derive"] } [dependencies.ruffle_core] path = "../core" default-features = false features = ["puremp3", "serde", "wasm-bindgen"] [dependencies.web-sys] version = "0.3.45" features = [ "AddEventListenerOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioParam", "AudioProcessingEvent", "AudioContext", "AudioDestinationNode", "AudioNode", "CanvasRenderingContext2d", "ChannelMergerNode", "ChannelSplitterNode", "CssStyleDeclaration", "Document", "Element", "Event", "EventTarget", "GainNode", "HtmlCanvasElement", "HtmlElement", "HtmlImageElement", "MouseEvent", "Navigator", "Node", "Performance", "PointerEvent", "ScriptProcessorNode", "UiEvent", "Window", "Location", "HtmlFormElement", "KeyboardEvent", "Path2d", "CanvasGradient", "CanvasPattern", "SvgMatrix", "SvgsvgElement", "Response", "Request", "RequestInit", "Blob", "BlobPropertyBag", "Storage", "WheelEvent", "ImageData"] [dev-dependencies] wasm-bindgen-test = "0.3.19"