Run the winit example on desktop and mobile
devThe winit example is a modified version of the standard winit window example. It uses the #[mobile_entry_point] annotation to generate the necessary boilerplate extern functions for mobile platforms and android_logger for logging on Android.
Desktop
To run the example on your desktop, use the standard cargo command:
cargo runMobile
To run the example on mobile devices, use the following commands:
- Android:
cargo android run(orcargo android opento open the project in Android Studio) - iOS/Apple:
cargo apple run(orcargo apple opento open the project in Xcode)
# Desktop
cargo run
# Android
cargo android run
# Apple
cargo apple run