From 73c41aed9231c8e0e21d5679858a384366759307 Mon Sep 17 00:00:00 2001 From: Niklas Eicker Date: Sat, 8 Jan 2022 16:09:46 +0100 Subject: [PATCH] Setup to run web build with wasm-server-runner --- .cargo/config.toml | 2 ++ .gitignore | 1 - README.md | 6 ++++-- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..758ed61 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.wasm32-unknown-unknown] +runner = "wasm-server-runner" diff --git a/.gitignore b/.gitignore index cd974c9..d64c378 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ target/ .idea/ -.cargo/ .DS_Store build/web/ diff --git a/README.md b/README.md index b30ec3e..d170974 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,10 @@ _Since Bevy is in heavy development, there regularly are unpublished new feature 2. Look for `ToDo` to use your own game name everywhere 3. [Update the icons as described below](#updating-the-icons) 4. Start coding :tada: - * Start the native app: `cargo run --features native` - * Start the web build: `cargo make serve` (requires `cargo-make`; to install run `cargo install cargo-make`) + * Start the native app: `cargo run` + * Start the web build: `cargo run --target wasm32-unknown-unknown` + * requires [`wasm-server-runner`](https://github.com/jakobhellermann/wasm-server-runner): `cargo install wasm-server-runner` + * requires `wasm32-unknown-unknown` target: `rustup target add wasm32-unknown-unknown` You should keep the `credits` directory up to date. The release workflow automatically includes the directory in every build.