- Rust toolchain (Cargo)
mkcertfor generating local development certificates. (Installation Guide)justcommand runner (Installation Guide)
- Install
mkcertandjustif you haven't already (see links above). - Generate Certificates: Run the following command in the project root to generate the necessary certificates in the
cert/directory:This command usesjust cert
mkcertto create and install a local Certificate Authority (CA) if needed, and then generatescert.pem,key.pem,cert.der, andkey.der.
This repository uses just for convenient command execution. You can list all available commands with just --list.
The examples are located in the wt-rs/examples directory.
-
Start the Echo Server:
just run echo-server
This will start the WebTransport echo server, listening on the address specified in the example code (likely localhost).
-
Run the Echo Client: In a separate terminal, run:
just run echo-client
This will connect to the echo server, send a message, and print the echoed response.
- Check Code:
This runs
just check
cargo clippyandcargo check.