Skip to content

pin versions #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion separate-memory-transfer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ crate-type = ["cdylib"]
[dependencies]
console_error_panic_hook = "0.1.7"
js-sys = "0.3.58"
wasm-bindgen = { version = "0.2.81", features = ["serde-serialize"] }
wasm-bindgen = { version = "=0.2.81", features = ["serde-serialize"] }

[dependencies.web-sys]
version = "0.3.58"
Expand Down
9 changes: 5 additions & 4 deletions separate-memory-transfer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ An example in which we spawn a worker and transfer a buffer back and forth betwe
and the worker.

To run this example, `cd` into this directory and then:
```rust
> cargo build --release
> wasm-bindgen ../target/wasm32-unknown-unknown/release/separate_memory_transfer.wasm --target=no-modules --out-dir=pkg
> python ../server.py
```sh
cargo install --version 0.2.81 wasm-bindgen-cli --force
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cargo install --version 0.2.81 wasm-bindgen-cli --force
cargo install --version 0.2.81 wasm-bindgen-cli --force # if you aren't getting it from the nix flake

(For people using nix, the flake.nix/flake.lock files already provide the correct version of wasm-bindgen-cli)

cargo build --release
wasm-bindgen ../target/wasm32-unknown-unknown/release/separate_memory_transfer.wasm --target=no-modules --out-dir=pkg
python ../server.py
```
and then open your browser and go to `http://localhost:8000`.

Expand Down
2 changes: 1 addition & 1 deletion separate-memory/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ crate-type = ["cdylib"]
[dependencies]
console_error_panic_hook = "0.1.7"
js-sys = "0.3.58"
wasm-bindgen = { version = "0.2.81", features = ["serde-serialize"] }
wasm-bindgen = { version = "=0.2.81", features = ["serde-serialize"] }

[dependencies.web-sys]
version = "0.3.58"
Expand Down
9 changes: 5 additions & 4 deletions separate-memory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ An example in which we spawn a worker and copy a buffer back and forth between t
and the worker.

To run this example, `cd` into this directory and then:
```rust
> cargo build --release
> wasm-bindgen ../target/wasm32-unknown-unknown/release/separate_memory.wasm --target=no-modules --out-dir=pkg
> python ../server.py
```sh
cargo install --version 0.2.81 wasm-bindgen-cli --force
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too

cargo build --release
wasm-bindgen ../target/wasm32-unknown-unknown/release/separate_memory.wasm --target=no-modules --out-dir=pkg
python ../server.py
```
and then open your browser and go to `http://localhost:8000`.

Expand Down
2 changes: 1 addition & 1 deletion shared-memory/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ crate-type = ["cdylib"]
[dependencies]
console_error_panic_hook = "0.1.7"
js-sys = "0.3.58"
wasm-bindgen = "0.2.81"
wasm-bindgen = "=0.2.81"

[dependencies.web-sys]
version = "0.3.58"
Expand Down
9 changes: 5 additions & 4 deletions shared-memory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ A simple example in which we spawn a worker in the same address space as its par
send a buffer back and forth using a rust channel.

To run this example, `cd` into this directory and then:
```rust
> cargo build --release
> wasm-bindgen ../target/wasm32-unknown-unknown/release/shared_memory.wasm --target=no-modules --out-dir=pkg
> python ../server.py
```sh
cargo install --version 0.2.81 wasm-bindgen-cli --force
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

cargo build --release
wasm-bindgen ../target/wasm32-unknown-unknown/release/shared_memory.wasm --target=no-modules --out-dir=pkg
python ../server.py
```
and then open your browser and go to `http://localhost:8000`.

Expand Down
2 changes: 2 additions & 0 deletions shared-memory/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "nightly-2023-06-15"