sunset-embassy

Crates.iosunset-embassy
lib.rssunset-embassy
version0.2.0
sourcesrc
created_at2024-03-03 06:21:13.889167
updated_at2024-03-03 06:21:13.889167
descriptionasync wrapper for Sunset SSH
homepage
repositoryhttps://github.com/mkj/sunset
max_upload_size
id1160409
size32,977
Matt Johnston (mkj)

documentation

README

Toolchain

Embassy requires Rust nightly, often with a specific version. rust-toolchain.toml records a known-good version.

Demos

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
Commit count: 343

cargo fmt