Skip to main content

Module platform

Module platform 

Source
Expand description

跨平台工具(Native / WASM 差异封装)

将浏览器与 Native 在时钟、环境、实例标识等方面的差异集中在此, 业务代码优先使用本模块 API,避免在业务层散落 cfg(target_arch = "wasm32")

Re-exports§

pub use async_time::*;
pub use encryption::*;
pub use env::*;
pub use time::*;

Modules§

async_time
Async timers: Native tokio::time, browser WASM wasmtimer::tokio.
encryption
AES-256-GCM encryption key resolution for Native / WASM.
env
跨平台环境与实例标识
time
跨平台时间工具