Networker

v2 clean reimplementation of Railscale at /Users/levander/coding/networker.

Railway Metaphor

TermMeaning
Freight/PassengerData frames inside the protocol buffer
CarriagePacket (protocol representation)
Rail NetworkDefinition of steps to route data A→B with mappings

Tech Stack

  • Rust edition 2024
  • tokio (rt-multi-thread, net, io-util, macros, time, sync, signal)
  • tokio-util (codec), tokio-stream
  • async-trait, bytes, tracing

v2 Design Differences from v1

  • More composable generics: ByteStreamSource/ByteStreamDestination traits with blanket impls
  • Generic Frame<B, P> enum with Passthrough/Buffered variants instead of concrete phase machine
  • FrameProducer extends tokio-util Decoder directly
  • Single railway package (may expand later) vs v1’s 6-crate workspace

Notes