From c1d7df59cd0bb66ef628af7c84b4450d1c66d1d3 Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Thu, 23 Apr 2020 21:49:35 +0200 Subject: [PATCH] Make examples compile with wasm-pack --- examples/crm/Cargo.toml | 3 +++ examples/custom_components/Cargo.toml | 3 +++ examples/dashboard/Cargo.toml | 3 +++ examples/fragments/Cargo.toml | 3 +++ examples/game_of_life/Cargo.toml | 3 +++ examples/large_table/Cargo.toml | 3 +++ examples/minimal/Cargo.toml | 3 +++ examples/nested_list/Cargo.toml | 3 +++ examples/pub_sub/Cargo.toml | 3 +++ examples/textarea/Cargo.toml | 3 +++ examples/timer/Cargo.toml | 3 +++ 11 files changed, 33 insertions(+) diff --git a/examples/crm/Cargo.toml b/examples/crm/Cargo.toml index c9150b74a15..444d16f5a52 100644 --- a/examples/crm/Cargo.toml +++ b/examples/crm/Cargo.toml @@ -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"] diff --git a/examples/custom_components/Cargo.toml b/examples/custom_components/Cargo.toml index 1a34996fe44..1f7bfd239c9 100644 --- a/examples/custom_components/Cargo.toml +++ b/examples/custom_components/Cargo.toml @@ -10,3 +10,6 @@ yew = { path = "../../yew" } [features] std_web = ["yew/std_web"] web_sys = ["yew/web_sys"] + +[lib] +crate-type = ["cdylib", "rlib"] diff --git a/examples/dashboard/Cargo.toml b/examples/dashboard/Cargo.toml index e6d7b578061..1d5b64af6db 100644 --- a/examples/dashboard/Cargo.toml +++ b/examples/dashboard/Cargo.toml @@ -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"] diff --git a/examples/fragments/Cargo.toml b/examples/fragments/Cargo.toml index 11b2a160fc2..3ddafc8b81c 100644 --- a/examples/fragments/Cargo.toml +++ b/examples/fragments/Cargo.toml @@ -10,3 +10,6 @@ yew = { path = "../../yew" } [features] std_web = ["yew/std_web"] web_sys = ["yew/web_sys"] + +[lib] +crate-type = ["cdylib", "rlib"] diff --git a/examples/game_of_life/Cargo.toml b/examples/game_of_life/Cargo.toml index 50c20b4aeb8..2fec1e451e7 100644 --- a/examples/game_of_life/Cargo.toml +++ b/examples/game_of_life/Cargo.toml @@ -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"] diff --git a/examples/large_table/Cargo.toml b/examples/large_table/Cargo.toml index d1c2de22c4a..0e6e275daa1 100644 --- a/examples/large_table/Cargo.toml +++ b/examples/large_table/Cargo.toml @@ -10,3 +10,6 @@ yew = { path = "../../yew" } [features] std_web = ["yew/std_web"] web_sys = ["yew/web_sys"] + +[lib] +crate-type = ["cdylib", "rlib"] diff --git a/examples/minimal/Cargo.toml b/examples/minimal/Cargo.toml index b8828698913..448c0e87691 100644 --- a/examples/minimal/Cargo.toml +++ b/examples/minimal/Cargo.toml @@ -10,3 +10,6 @@ yew = { path = "../../yew" } [features] std_web = ["yew/std_web"] web_sys = ["yew/web_sys"] + +[lib] +crate-type = ["cdylib", "rlib"] diff --git a/examples/nested_list/Cargo.toml b/examples/nested_list/Cargo.toml index 8086f16a787..c958b928692 100644 --- a/examples/nested_list/Cargo.toml +++ b/examples/nested_list/Cargo.toml @@ -12,3 +12,6 @@ yew = { path = "../../yew" } [features] std_web = ["yew/std_web"] web_sys = ["yew/web_sys"] + +[lib] +crate-type = ["cdylib", "rlib"] diff --git a/examples/pub_sub/Cargo.toml b/examples/pub_sub/Cargo.toml index fd919ed4181..935da5d5b87 100644 --- a/examples/pub_sub/Cargo.toml +++ b/examples/pub_sub/Cargo.toml @@ -12,3 +12,6 @@ yew = { path = "../../yew" } [features] std_web = ["yew/std_web"] web_sys = ["yew/web_sys"] + +[lib] +crate-type = ["cdylib", "rlib"] diff --git a/examples/textarea/Cargo.toml b/examples/textarea/Cargo.toml index beaa7211050..00633587e13 100644 --- a/examples/textarea/Cargo.toml +++ b/examples/textarea/Cargo.toml @@ -10,3 +10,6 @@ yew = { path = "../../yew" } [features] std_web = ["yew/std_web"] web_sys = ["yew/web_sys"] + +[lib] +crate-type = ["cdylib", "rlib"] diff --git a/examples/timer/Cargo.toml b/examples/timer/Cargo.toml index e15f92fe2b9..bd83951c8ba 100644 --- a/examples/timer/Cargo.toml +++ b/examples/timer/Cargo.toml @@ -10,3 +10,6 @@ yew = { path = "../../yew" } [features] std_web = ["yew/std_web"] web_sys = ["yew/web_sys"] + +[lib] +crate-type = ["cdylib", "rlib"]