Module agera::platforms

source ·
Expand description

Work with the final platform.

Native platforms

The following items are available when building for native platforms:

  • agera::platforms::tokio — Alias to the tokio 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 the android_activity crate.
  • agera::platforms::jni — Alias to the jni crate.
  • agera::platforms::application() — Returns an agera::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 the wasm_bindgen crate.
  • agera::platforms::js_futures — Alias to the wasm_bindgen_futures crate.
  • agera::platforms::js — Alias to the js_sys crate.

Re-exports

Macros

  • Expands an item solely if the build target is the browser.
  • Expands an item solely if the build target is a native platform.