Expand description
Work with the final platform.
Native platforms
The following items are available when building for native platforms:
agera::platforms::tokio
— Alias to thetokio
crate, an asynchronous runtime for Rust.
Android platform
The folllowing items are available when building an Agera application for the Android operating system:
agera::platforms::activity
— Alias to theandroid_activity
crate.agera::platforms::jni
— Alias to thejni
crate.agera::platforms::application()
— Returns anagera::platforms::activity::AndroidApp
value providing access to the Android application.
Browser
When building an Agera application for the browser, the following dependencies are internally used:
The following items are available when building for the browser:
agera::platforms::js_bindings
— Alias to thewasm_bindgen
crate.agera::platforms::js_futures
— Alias to thewasm_bindgen_futures
crate.agera::platforms::js
— Alias to thejs_sys
crate.
Re-exports
pub use tokio;
Macros
- Expands an item solely if the build target is the browser.
- Expands an item solely if the build target is a native platform.