A swag chat server and client written in Rust.
- Rust toolchain installed
- Optional:
podmanordockerfor container builds
From the repository root:
cargo build --package tcp-server --bin tcp-server
cargo build --package tcp-client --bin tcp-clientStart the server:
cargo run --package tcp-server --bin tcp-server -- localhost:6666Then start one or more clients in other terminals:
cargo run --package tcp-client --bin tcp-client -- localhost:6666From the repository root:
podman build -f server/docker/Dockerfile . --target runtime -t blip-serverRun the container:
podman run --rm -p 6666:6666 blip-serverOr with compose:
podman compose -f compose.yml upThen connect with the client as above.
Run the workspace tests with:
cargo test --workspace --all-targets