Rename bin/wgpu_runner.rs to main.rs (#1111)

* Rename bin/wgpu_runner.rs to main.rs

Fixes running `cargo run --bin example-runner-wgpu` as documented at
https://embarkstudios.github.io/rust-gpu/book/building-rust-gpu.html

* Add --lib to sample commands in android.nix
This commit is contained in:
Fredrik Fornwall 2024-01-02 15:20:01 +01:00 committed by GitHub
parent 83f8c72f04
commit ed697bc192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@
# Tested in `NIXPKGS_ACCEPT_ANDROID_SDK_LICENSE=1 nix-shell android.nix --pure`,
# by running the following commands (x64 target is for the Android Emulator):
# rustup target add aarch64-linux-android x86_64-linux-android
# cargo apk build -p example-runner-wgpu --target aarch64-linux-android
# cargo apk build -p example-runner-wgpu --target x86_64-linux-android
# cargo apk build -p example-runner-wgpu --lib --target aarch64-linux-android
# cargo apk build -p example-runner-wgpu --lib --target x86_64-linux-android
#
# (you can also replace `cargo apk build` with `cargo apk run` to launch it,
# via `adb`, into either the Android Emulator, or a physical Android device)