Last active
December 28, 2025 22:24
-
-
Save emersonmx/026a6825eb330efa8a05e347c33d7639 to your computer and use it in GitHub Desktop.
Envs for bevy games
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # shellcheck disable=SC2034 | |
| # setup common cargo options | |
| RUSTC_WRAPPER=sccache | |
| CARGO_PROFILE_DEV_STRIP=true | |
| CARGO_PROFILE_DEV_OPT_LEVEL="z" | |
| # setup wasm target | |
| CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER=wasm-server-runner | |
| WASM_SERVER_RUNNER_DIRECTORY="$PWD" | |
| WASM_SERVER_RUNNER_ADDRESS=0.0.0.0:5000 | |
| # setup windows target (WSL2) | |
| DLL_PATH="$DLL_PATH:$PWD/target/x86_64-pc-windows-gnu/debug" | |
| DLL_PATH="$DLL_PATH:$PWD/target/x86_64-pc-windows-gnu/debug/deps" | |
| DLL_PATH="$DLL_PATH:$HOME/.local/share/asdf/installs/rust/1.92.0/toolchains/1.92.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib" # rustc --target x86_64-pc-windows-gnu --print target-libdir | |
| DLL_PATH="$DLL_PATH:/usr/x86_64-w64-mingw32/bin" | |
| PATH="$DLL_PATH:$PATH" | |
| WSLENV=$WSLENV:PATH/pw | |
| # setup bevy options | |
| BEVY_ASSET_ROOT="$PWD" | |
| WSLENV=$WSLENV:BEVY_ASSET_ROOT/pw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment