-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
14 changed files
with
772 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.