Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
schell committed Jan 12, 2023
2 parents 707af53 + 95b71df commit f6c3b2b
Show file tree
Hide file tree
Showing 14 changed files with 772 additions and 302 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
members = [
"cookbook",
"crates/mogwai",
"crates/mogwai-benches",
"crates/mogwai-dom",
"crates/mogwai-macros",
"examples/counter",
Expand Down
34 changes: 34 additions & 0 deletions crates/mogwai-benches/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[package]
name = "mogwai-benches"
version = "0.1.0"
edition = "2021"

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

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.68"
console_error_panic_hook = { version = "0.1.6" }
console_log = "^0.1"
getrandom = { version = "0.2", features = ["js"] }
log = "^0.4"
mogwai-dom = { path = "../mogwai-dom" }
rand = { version = "0.8.5", features = ["small_rng"] }
serde_json = "1.0.91"
serde = { version = "1.0.152", features = ["derive"]}
wasm-bindgen = "^0.2"
wasm-bindgen-futures = "0.4.33"

[dependencies.web-sys]
version = "^0.3"
features = [
"Element",
"Document",
"HtmlElement",
"HtmlCollection",
"HtmlBodyElement",
"NodeList",
"Storage"
]
25 changes: 25 additions & 0 deletions crates/mogwai-benches/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Mogwai • Benchmarks</title>
<style>
.change-red {
font-weight: bold;
color: red;
}
.change-green {
font-weight: bold;
color: green;
}
</style>
</head>
<body>
<script type=module>
import init from './pkg/mogwai_benches.js';
window.addEventListener('load', async () => {
await init();
});
</script>
</body>
</html>
Loading

0 comments on commit f6c3b2b

Please sign in to comment.