flarch

Crates.ioflarch
lib.rsflarch
version0.8.0
sourcesrc
created_at2022-07-05 18:26:17.700598
updated_at2024-09-09 11:59:41.650541
descriptionCommon implementations for libc and wasm
homepagehttps://fledg.re
repositoryhttps://github.com/ineiti/fledger
max_upload_size
id619946
size144,044
Linus Gasser (ineiti)

documentation

README

FlArch

The Fledger Arch module holds common methods that are used by libc and wasm implementation. The following methods / structures are available:

  • DataStorage allows to store key/value pairs in a file / localStorage
  • tasks::* various useful tools:
    • now() -> i64 - returns the current timestamp in milliseconds as i64
    • spawn_local<F: Future<Output = ()> + 'static>(f: F) - spawns a future locally
    • wait_ms(ms: u32) - async wait in milliseconds
    • interval(dur: Duration) - creates a stream that will send the expected time of resolution every dur
    • Interval - a stream created by interval

By default the crate compiles for libc.

Features

  • wasm compiles for the wasm target
  • node compiles for the node target
Commit count: 223

cargo fmt