Skip to content

Commit

Permalink
change name, fix deps, add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul committed May 26, 2020
1 parent d4ad7aa commit 7c58f15
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,12 @@ jobs:
with:
command: rustc
args: --manifest-path=druid/examples/wasm/Cargo.toml -- -D warnings

- name: wasm-pack build hello_wasm_web example
run: wasm-pack build --target web druid/examples/hello_wasm_web

- name: Run rustc -D warnings in druid/examples/hello_wasm_web
uses: actions-rs/cargo@v1
with:
command: rustc
args: --manifest-path=druid/examples/hello_wasm_web/Cargo.toml -- -D warnings
5 changes: 1 addition & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ members = [
"druid-derive",
"docs/book_examples",
"druid/examples/wasm",
"druid/examples/hello_wasm",
"druid/examples/hello_wasm_web",
]
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "hello-wasm"
name = "hello-wasm-web"
version = "0.1.0"
license = "Apache-2.0"
description = "Minimal wasm example"
description = "Minimal wasm example for web"
repository = "https://github.com/xi-editor/druid"
edition = "2018"
publish = false
Expand All @@ -14,8 +14,3 @@ crate-type = ["cdylib", "rlib"]
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 }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7c58f15

Please sign in to comment.