mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-24 03:41:29 +11:00
f42f516339
* WIP on wasm support Fix canvas not showing by actually placing it in the document Also set the initial title Use the js! macro to draw pixels Draw to the canvas using ImageData It doesn't work because an animation frame needs to be requested somehow * Complete WASM work into a usable state. This works on the previous commits and makes it usable. There is a multi platform example about how to use it here: https://github.com/dc740/minifb-async-examples Co-authored-by: Thomas Versteeg <thomasversteeg@gmx.com>
9 lines
314 B
TOML
9 lines
314 B
TOML
# The default value of `--target` used when building this crate
|
|
# in cases where it's not specified on the command line.
|
|
default-target = "wasm32-unknown-unknown"
|
|
|
|
[cargo-web]
|
|
# Asserts the minimum required version of `cargo-web` necessary
|
|
# to compile this crate; supported since 0.6.0.
|
|
minimum-version = "0.6.0"
|