Crates.io | sunset-embassy |
lib.rs | sunset-embassy |
version | 0.2.0 |
source | src |
created_at | 2024-03-03 06:21:13.889167 |
updated_at | 2024-03-03 06:21:13.889167 |
description | async wrapper for Sunset SSH |
homepage | |
repository | https://github.com/mkj/sunset |
max_upload_size | |
id | 1160409 |
size | 32,977 |
Embassy requires Rust nightly, often with a specific version.
rust-toolchain.toml
records a known-good version.
demos/
has some examples. These are separate crates since they have fairly distinct dependencies.
picow
Running on a Raspberry Pi Pico W.
Requires a capacitor soldered between a GPIO pin and gnd, 0.1 to 1 nF is suitable, this example uses GPIO Pin 10. This is used for random number generation - it is somewhat experimental and should have more analysis of the RNG quality before use in real applications.
std
Running on the host system, useful for development and debugging.
The network stack is smoltcp with a tap
device. Based on Embassy's examples/std/src/tuntap.rs
, it needs
local network setup something like this, where a local dhcp server is running on tap0. Alternatively tap0
can be bridged to another network which has dhcp available.
sudo ip tuntap add name tap0 mode tap user $USER
sudo ip link set tap0 up
sudo ip addr add 10.9.0.1/16 dev tap0
# or
sudo brctl addif br0 tap0