Skip to content
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

Rust and WASM #58

Open
heathdbrown opened this issue Apr 7, 2023 · 3 comments
Open

Rust and WASM #58

heathdbrown opened this issue Apr 7, 2023 · 3 comments

Comments

@heathdbrown
Copy link
Owner

heathdbrown commented Apr 7, 2023

Rust and WASM

Rust the language natively can compile target down to web assembly (?).

https://rustwasm.github.io/docs/book/game-of-life/introduction.html

@heathdbrown
Copy link
Owner Author

heathdbrown commented Apr 7, 2023

  ', /home/heath/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.84/build/find_normal.rs:190:5
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-generate v0.18.1`, intermediate artifacts can be found at `/tmp/cargo-installW5IAcz`
heath@laptop:~/projects$ ls

Solved by installing on Ubuntu:

  • pkg-config
  • libopenssl-dev

@heathdbrown
Copy link
Owner Author

Watch out for lifetime annotations.

To get around these for the beginner:

1.) dont' use references
2.) copy and clone everything
3.) obey the compiler

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

No branches or pull requests

1 participant