2 unstable releases

0.7.0 Oct 25, 2022
0.6.0 Jul 5, 2022

#403 in WebAssembly

Download history 15/week @ 2022-11-30 40/week @ 2022-12-07 12/week @ 2022-12-14 18/week @ 2022-12-21 19/week @ 2022-12-28 8/week @ 2023-01-04 14/week @ 2023-01-11 19/week @ 2023-01-18 27/week @ 2023-01-25 32/week @ 2023-02-01 16/week @ 2023-02-08 36/week @ 2023-02-15 16/week @ 2023-02-22 10/week @ 2023-03-01 10/week @ 2023-03-08 10/week @ 2023-03-15

51 downloads per month
Used in 5 crates

MIT/Apache

18KB
448 lines

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

Dependencies

~6–13MB
~231K SLoC