Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
19c186f
Add wasm backend + fix std::time dep
elrnv Mar 25, 2020
30d66ba
Disable simple logger on wasm
elrnv Mar 25, 2020
cfb3627
Fix resizing in wasm backends
elrnv Mar 25, 2020
fbce712
Added scrolling support + fixed hidpi handling
elrnv Mar 25, 2020
999ef45
Use explicit lifetime in StrOrChar
elrnv Mar 26, 2020
8ee237f
Added keyboard support on wasm
elrnv Mar 26, 2020
659e136
Fix browser zooming issue for web backend
elrnv Mar 26, 2020
4658a17
Fix a typo causing the web build to break
elrnv Mar 27, 2020
439b319
Format with cargo fmt
elrnv Mar 27, 2020
85f400b
Prevent the browser from going back on backspace
elrnv Mar 28, 2020
3316120
Fix key text + require console_log + adjust style
elrnv Apr 3, 2020
e2d8e00
Run rustfmt on stepper.rs
elrnv Apr 3, 2020
204230c
Fix up console_log dependency
elrnv Apr 4, 2020
c191012
Add wasm build to ci
elrnv Apr 5, 2020
844cbc2
Update ci by running wasm-pack explicitly
elrnv Apr 5, 2020
a37c3b4
Add druid/examples/wasm to workspace toml
elrnv Apr 5, 2020
2d67cd7
Address format and clippy warnings
elrnv Apr 5, 2020
481b796
Add wasm32 tests for druid & druid-shell in ci.yml
elrnv Apr 5, 2020
9b2a3d8
Fix build.rs in druid-wasm-examples
elrnv Apr 5, 2020
fbd6073
Fix windows build for druid-wasm-examples
elrnv Apr 5, 2020
23424af
Added simple_logger dep for wasm
elrnv Apr 5, 2020
510a60a
Remove invald cfg feature guard
elrnv Apr 5, 2020
e7e257c
Unwrap from examples that return result
elrnv Apr 5, 2020
cfe5153
Run rustfmt on build.rs for druid-wasm-examples
elrnv Apr 5, 2020
4b6150d
Address clippy concerns in druid examples
elrnv Apr 5, 2020
5609e38
Fix the build script for wasm examples
elrnv Apr 5, 2020
5ed32cb
Add .gitignore to wasm examples + fix clippy bugs
elrnv Apr 5, 2020
ad3c7e8
Update README.md formatting in druid wasm examples
elrnv Apr 5, 2020
d101869
Revert accidental change to build.rs
elrnv Apr 5, 2020
8d05b09
Fix examples for wasm
elrnv Apr 10, 2020
ea81ffe
Fix x11 keycodes StrOrChar conversion
elrnv Apr 10, 2020
78b4631
Rustfmt on recent changes to examples
elrnv Apr 10, 2020
3cd4144
Fix clippy warnings -- small structs passed by ref
elrnv Apr 12, 2020
1dbb4e9
Fix wasm build for multiwin example
elrnv Apr 12, 2020
2102f82
Add --no-run to `cargo test` for wasm targets
elrnv Apr 12, 2020
5021017
Do not build the unit test module for wasm32
elrnv Apr 12, 2020
a143692
Install necessary deps in wasm CI for macos/ubuntu
elrnv Apr 12, 2020
e0949ff
Add warnings for unimplemented file ops in web backend
elrnv Apr 13, 2020
0df38af
Remove windows specific comment from web/window.rs
elrnv Apr 13, 2020
5f64d4b
Ignore automatically generated html files in wasm example
elrnv Apr 13, 2020
ee88c7f
Remove unused dialog module from web backend
elrnv Apr 13, 2020
ea79c84
Remove TODO for adding to app state in web backend
elrnv Apr 13, 2020
e072555
Rework the generated examples in the wasm example
elrnv Apr 13, 2020
d0bc9df
Update Cargo.lock
elrnv Apr 13, 2020
3a528fa
Rename switch example js entry point for wasm build
elrnv Apr 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added simple_logger dep for wasm
This allows the wasm examples to build even when the target arch is not
wasm32.
  • Loading branch information
elrnv committed Apr 12, 2020
commit 23424afcca72749775c1874a568f8e657d782990
21 changes: 21 additions & 0 deletions druid/examples/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "druid-wasm-examples"
version = "0.1.0"
license = "Apache-2.0"
description = "Wasm scaffolding for druid examples"
repository = "https://github.com/xi-editor/druid"
edition = "2018"
publish = false

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
druid = { path="../.."}
wasm-bindgen = "0.2.60"
console_error_panic_hook = { version = "0.1.6" }
log = "0.4.8"
instant = { version = "0.1", features = [ "wasm-bindgen" ] }

[target.'cfg(not(target_arch="wasm32"))'.dependencies]
simple_logger = { version = "1.6.0", default-features = false }