Fixed library types in Cargo.toml (for wasm-pack) (#1088)

Also added some missing implementations of Component::change

Co-authored-by: Sebastian Zivota <sebastian.zivota@mailbox.org>
This commit is contained in:
Sebastian Zivota 2020-04-19 16:53:38 +02:00 committed by GitHub
parent 688a568445
commit b62e4daf47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 45 additions and 0 deletions

View File

@ -4,6 +4,9 @@ version = "0.1.1"
authors = ["Denis Kolodin <deniskolodin@gmail.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
js-sys = "0.3"
yew = { path = "../../..", features = ["services", "web_sys"] }

View File

@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Denis Kolodin <deniskolodin@gmail.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
js-sys = "0.3"
yew = { path = "../../..", features = ["web_sys"] }

View File

@ -93,6 +93,10 @@ impl Component for Model {
</div>
}
}
fn change(&mut self, _props: Self::Properties) -> ShouldRender {
false
}
}
impl Model {

View File

@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Garrett Berg <vitiral@gmail.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
web-sys = { version = "0.3", features = ["console", "Document", "Element", "Node", "Window"] }
yew = { path = "../../..", features = ["web_sys"] }

View File

@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Scott Steele <scottlsteele@gmail.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
yew = { path = "../../..", features = ["web_sys"] }

View File

@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Ben Berman <ben@standardbots.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
wasm-bindgen = "0.2"
yew = { path = "../../..", features = ["web_sys"] }

View File

@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Denis Kolodin <deniskolodin@gmail.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "multi_thread_app"
path = "src/bin/app.rs"

View File

@ -79,4 +79,8 @@ impl Component for Model {
</div>
}
}
fn change(&mut self, _props: Self::Properties) -> ShouldRender {
false
}
}

View File

@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Justin Starry <justin.starry@icloud.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
yew = { path = "../../..", features = ["web_sys"] }
web-sys = { version = "0.3", features = ["HtmlElement", "HtmlInputElement", "Node"] }

View File

@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Denis Kolodin <deniskolodin@gmail.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
anyhow = "1"
js-sys = "0.3"

View File

@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Denis Kolodin <deniskolodin@gmail.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
strum = "0.13"
strum_macros = "0.13"

View File

@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Denis Kolodin <deniskolodin@gmail.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
stdweb = "0.4.20"
yew = { path = "../../..", features = ["web_sys"] }

View File

@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Miklós Tusz <mdtusz@gmail.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
js-sys = "0.3"
yew = { path = "../../..", features = ["web_sys"] }

View File

@ -84,6 +84,10 @@ impl Component for Model {
<canvas ref={self.node_ref.clone()} />
}
}
fn change(&mut self, _props: Self::Properties) -> ShouldRender {
false
}
}
impl Model {