Skip to content

Commit 52f914b

Browse files
committed
Add Ravel
1 parent 2d567a4 commit 52f914b

File tree

13 files changed

+898
-0
lines changed

13 files changed

+898
-0
lines changed

frameworks/non-keyed/ravel/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
/target

frameworks/non-keyed/ravel/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "ravel-benchmark"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
getrandom = { version = "0.2.15", features = ["js"] }
8+
gloo-utils = "0.2.0"
9+
rand = "0.8.5"
10+
ravel-web = "0.3"
11+
wasm-bindgen-futures = "0.4.42"
12+
13+
[profile.release]
14+
opt-level = 3
15+
lto = true
16+
codegen-units = 1
17+
panic = "abort"

frameworks/non-keyed/ravel/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Because of the heavy amount of Rust dependencies, this example is pre-compiled, so you don't need to compile anything.
2+
3+
However, if you do want to compile it, you will need the following:
4+
5+
* [Rust](https://www.rust-lang.org/tools/install)
6+
7+
After installing that, run these commands:
8+
9+
```
10+
npm install
11+
npm run build-prod-force
12+
```

frameworks/non-keyed/ravel/Trunk.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build]
2+
target = "trunk.html"
3+
dist = "bundled-dist"
4+
public_url = "/frameworks/non-keyed/ravel/bundled-dist/"
5+
filehash = false

frameworks/non-keyed/ravel/build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
rustup target add wasm32-unknown-unknown
6+
7+
trunk build --release
8+
mv bundled-dist/index.html index.html

0 commit comments

Comments
 (0)