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§

pub use wasefire_error as error;

Modules§

buttonapi-button
Provides API for button or touch sensors.
cryptointernal-api-crypto
Provides API for cryptography.
debug
Provides debugging facilities.
gpioapi-gpio
Provides low-level API for GPIOs.
ledapi-led
Provides API for LEDs.
platforminternal-api-platform
Provides API to interact with the platform.
radiointernal-api-radio
Provides API for radio.
rngapi-rng
Provides API for random number generation.
rpcinternal-rpc
Provides a generic API for RPCs.
scheduling
Provides API for scheduling.
serialinternal-serial
Provides a generic API for serial communication.
storeinternal-api-store
Provides API for persistent storage.
sync
Provides API for mutexes and atomics.
timerapi-timer
Provides API for timers.
uartapi-uart
Provides API for UART.
usbinternal-api-usb
Provides API for USB.

Macros§

appletNeither native nor test
Defines the entry point of an applet.
debug
Prints a line to the debug output.

Structs§

Error
API errors.

Functions§

syscall
Board-specific syscalls.