Skip to content

Commit

Permalink
Applications (#10)
Browse files Browse the repository at this point in the history
* `client-worker`: replace `wasm-pack build` with a script

This enables us to pass the `--split-linked-modules` flag to
`wasm-bindgen`, which we can't do through `wasm-pack`.

* `client-worker`: pin Rust toolchain

* `client-worker`: add support for Wasm atomics

* `flake.nix`: use nightly Rust

* `client-worker`: add support for running applications

* `extension`: run in an offscreen page

* `sample-app`: add support for querying the counter application

* Bump `linera-protocol`
  • Loading branch information
Twey authored Nov 27, 2024
1 parent dd4c043 commit 0251cec
Show file tree
Hide file tree
Showing 30 changed files with 6,707 additions and 687 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Build the client worker
run: |
cd client-worker
nix develop '.?submodules=1' --override-input linera-protocol ../linera-protocol --command wasm-pack build --target web
nix develop '.?submodules=1' --override-input linera-protocol ../linera-protocol --command bash build.bash
- name: Build the extension
run: |
cd extension
Expand Down
6 changes: 6 additions & 0 deletions client-worker/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
[target.wasm32-unknown-unknown]
rustflags = ["-C", "target-feature=+atomics,+bulk-memory,+mutable-globals"]

[unstable]
build-std = ["panic_abort", "std"]

[build]
target = "wasm32-unknown-unknown"
1 change: 0 additions & 1 deletion client-worker/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/target
/pkg
Cargo.lock
Loading

0 comments on commit 0251cec

Please sign in to comment.