Skip to content

WASM Bevy Resource interface #7523

Answered by TuNiman1
Faeren0327 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!
Basically, you can read and learn it from the unofficial bevy book, but I will explain it here a lil bit.

Firstly, you will need to install the rust support for Wasm, very easily and accessible with a simple: rustup target install wasm32-unknown-unknown

Then, you will need to install a cargo tool for the Wasm server, which also can be done very easily with a simple: cargo install wasm-server-runner

After that, you will need to add it to your cargo.toml, simply add: [target.wasm32-unknown-unknown]
runner = "wasm-server-runner"

Now, you will need to set the env variable for the runner by simply typing: export CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER=wasm-server-runner

Finally, you …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Faeren0327
Comment options

Answer selected by Faeren0327
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants