Re: [PATCH v2 4/7] tools: add spectrum-router

Alyssa Ross
2025-11-29T13:18:48Z

[-- Attachment #1: Type: text/plain, Size: 1435 bytes --]

Yureka Lilian <yureka@cyberchaos.dev> writes:

> The tokio-vhost & vhost-device-net crates which we also wrote and depend
> on are left external in the outlook of becoming a rust-vmm project soon.
>
> Signed-off-by: Yureka Lilian <yureka@cyberchaos.dev>
> ---
> pkgs/default.nix | 2 +
> tools/router/Cargo.lock | 807 ++++++++++++++++++++++++++++++++
> tools/router/Cargo.lock.license | 2 +
> tools/router/Cargo.toml | 21 +
> tools/router/default.nix | 18 +
> tools/router/src/main.rs | 73 +++
> tools/router/src/packet.rs | 187 ++++++++
> tools/router/src/protocol.rs | 65 +++
> tools/router/src/router.rs | 133 ++++++
> tools/router/src/upstream.rs | 170 +++++++
> 10 files changed, 1478 insertions(+)
> create mode 100644 tools/router/Cargo.lock
> create mode 100644 tools/router/Cargo.lock.license
> create mode 100644 tools/router/Cargo.toml
> create mode 100644 tools/router/default.nix
> create mode 100644 tools/router/src/main.rs
> create mode 100644 tools/router/src/packet.rs
> create mode 100644 tools/router/src/protocol.rs
> create mode 100644 tools/router/src/router.rs
> create mode 100644 tools/router/src/upstream.rs

Acked-by: Alyssa Ross <hi@alyssa.is>

I think there's some stuff that would be nice to do here to better match
the rest of the Rust code in the Spectrum tree, but I think that'll all
happen naturally over time.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]