piying 0.1.1

Fault-tolerant Async Actors Built on Tokio
Documentation

Piying

CI Nix crates.io

Fault-tolerant async actors built on Tokio.

Piying is a fork of Kameo by tqwewe.

Why fork?

  • Larger production scope — Piying targets real-time networked games and other latency-sensitive distributed systems, driving changes to codec flexibility, networking, and error handling that go beyond upstream's focus.
  • AI-generated code welcome — the upstream project does not accept AI-generated contributions. Piying has no such restriction.

Key differences from upstream

  • Pluggable codec system (rkyv, serde, or custom) — decoupled from the core actor framework
  • PiyingRkyvCodec for high-performance binary serialization via rkyv
  • Various networking and swarm improvements for production P2P use

Upstream features (inherited)

  • Lightweight async actors on Tokio
  • Fault tolerance with supervision strategies
  • Flexible messaging (bounded/unbounded channels, backpressure)
  • Local and distributed communication via libp2p
  • Panic safety and actor isolation
  • Type-safe message interfaces

License

Piying is dual-licensed under either:

Same as the original Piying project.