Crate wasefire

source ·
Expand description

This crate provides high-level access to the applet API.

In particular, it provides the following:

  • A panic handler that prints the panic info and traps.
  • A global allocator using the rlsf crate.
  • High-level wrappers around the applet API.

The high-level wrappers provide the following:

  • A safe API. (The applet API requires unsafe.)
  • Rust types like byte slices (instead of their internal representation).
  • Closures for callbacks.

Re-exports

Modules

  • Provides API for button or touch sensors.
  • Provides API for clocks and timers.
  • Provides API for cryptography.
  • Provides debugging facilities.
  • Provides API for LEDs.
  • Provides API for random number generation.
  • Provides API for scheduling.
  • Provides API for persistent storage.
  • Provides API for USB.

Macros

  • Prints a line to the debug output.