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

pin versions #6

merged 3 commits into from
Nov 7, 2023

Conversation

AlexErrant
Copy link
Contributor

@AlexErrant AlexErrant commented Nov 6, 2023

Closes #5

Here's a starting point :)

I think nightly is only needed for shared-memory. I went with nightly-2023-06-15 because the more recent ones broke for reasons that are beyond me so I blindly went with this answer.

Copy link
Member

@jneem jneem left a comment

Choose a reason for hiding this comment

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

Thanks for doing the work for me 😄

Just one (or maybe three) small comment(s) to not confuse people that are getting dependencies from the nix flake.

> 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)

> 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

> 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

@AlexErrant
Copy link
Contributor Author

Rubbing my two braincells together and clicking a few more links led me to rust-lang/rust#113152 so I deleted all the Cargo.lock files and recreated the workspace lockfile - now the latest nightly works.

@jneem
Copy link
Member

jneem commented Nov 7, 2023

Ah, I originally started with three separate workspaces and then when I merged it into one I guess I forgot that there should only be the top-level lockfile...

Thanks!

@jneem jneem merged commit 4aca955 into tweag:main Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DataCloneError: WebAssembly.Memory object could not be cloned.
2 participants