Skip to content

Commit

Permalink
Make examples compile with wasm-pack (#1124)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Zivota <sebastian.zivota@mailbox.org>
  • Loading branch information
loewenheim and Sebastian Zivota committed Apr 24, 2020
1 parent 5491bf9 commit 3b669fa
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/crm/Cargo.toml
Expand Up @@ -13,3 +13,6 @@ pulldown-cmark = { version = "0.7.0", default-features = false }
[features]
std_web = ["yew/std_web"]
web_sys = ["yew/web_sys"]

[lib]
crate-type = ["cdylib", "rlib"]
3 changes: 3 additions & 0 deletions examples/custom_components/Cargo.toml
Expand Up @@ -10,3 +10,6 @@ yew = { path = "../../yew" }
[features]
std_web = ["yew/std_web"]
web_sys = ["yew/web_sys"]

[lib]
crate-type = ["cdylib", "rlib"]
3 changes: 3 additions & 0 deletions examples/dashboard/Cargo.toml
Expand Up @@ -13,3 +13,6 @@ yew = { path = "../../yew", features = ["toml"] }
[features]
std_web = ["yew/std_web"]
web_sys = ["yew/web_sys"]

[lib]
crate-type = ["cdylib", "rlib"]
3 changes: 3 additions & 0 deletions examples/fragments/Cargo.toml
Expand Up @@ -10,3 +10,6 @@ yew = { path = "../../yew" }
[features]
std_web = ["yew/std_web"]
web_sys = ["yew/web_sys"]

[lib]
crate-type = ["cdylib", "rlib"]
3 changes: 3 additions & 0 deletions examples/game_of_life/Cargo.toml
Expand Up @@ -15,3 +15,6 @@ yew = { path = "../../yew" }
[features]
std_web = ["rand/stdweb", "yew/std_web"]
web_sys = ["rand/wasm-bindgen", "yew/web_sys"]

[lib]
crate-type = ["cdylib", "rlib"]
3 changes: 3 additions & 0 deletions examples/large_table/Cargo.toml
Expand Up @@ -10,3 +10,6 @@ yew = { path = "../../yew" }
[features]
std_web = ["yew/std_web"]
web_sys = ["yew/web_sys"]

[lib]
crate-type = ["cdylib", "rlib"]
3 changes: 3 additions & 0 deletions examples/minimal/Cargo.toml
Expand Up @@ -10,3 +10,6 @@ yew = { path = "../../yew" }
[features]
std_web = ["yew/std_web"]
web_sys = ["yew/web_sys"]

[lib]
crate-type = ["cdylib", "rlib"]
3 changes: 3 additions & 0 deletions examples/nested_list/Cargo.toml
Expand Up @@ -12,3 +12,6 @@ yew = { path = "../../yew" }
[features]
std_web = ["yew/std_web"]
web_sys = ["yew/web_sys"]

[lib]
crate-type = ["cdylib", "rlib"]
3 changes: 3 additions & 0 deletions examples/pub_sub/Cargo.toml
Expand Up @@ -12,3 +12,6 @@ yew = { path = "../../yew" }
[features]
std_web = ["yew/std_web"]
web_sys = ["yew/web_sys"]

[lib]
crate-type = ["cdylib", "rlib"]
3 changes: 3 additions & 0 deletions examples/textarea/Cargo.toml
Expand Up @@ -10,3 +10,6 @@ yew = { path = "../../yew" }
[features]
std_web = ["yew/std_web"]
web_sys = ["yew/web_sys"]

[lib]
crate-type = ["cdylib", "rlib"]
3 changes: 3 additions & 0 deletions examples/timer/Cargo.toml
Expand Up @@ -10,3 +10,6 @@ yew = { path = "../../yew" }
[features]
std_web = ["yew/std_web"]
web_sys = ["yew/web_sys"]

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

0 comments on commit 3b669fa

Please sign in to comment.