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§
- button
api-button
- Provides API for button or touch sensors.
- crypto
internal-api-crypto
- Provides API for cryptography.
- debug
- Provides debugging facilities.
- gpio
api-gpio
- Provides low-level API for GPIOs.
- led
api-led
- Provides API for LEDs.
- platform
internal-api-platform
- Provides API to interact with the platform.
- radio
internal-api-radio
- Provides API for radio.
- rng
api-rng
- Provides API for random number generation.
- rpc
internal-rpc
- Provides a generic API for RPCs.
- scheduling
- Provides API for scheduling.
- serial
internal-serial
- Provides a generic API for serial communication.
- store
internal-api-store
- Provides API for persistent storage.
- sync
- Provides API for mutexes and atomics.
- timer
api-timer
- Provides API for timers.
- uart
api-uart
- Provides API for UART.
- usb
internal-api-usb
- Provides API for USB.
Macros§
- applet
Neither native
nortest
- Defines the entry point of an applet.
- debug
- Prints a line to the debug output.
Structs§
- Error
- API errors.
Functions§
- syscall
- Board-specific syscalls.