#service-discovery #koi #pipeline #type

koi-common

Shared types, traits, and utilities for the Koi local network toolkit

10 releases

new 0.2.202603241449 Mar 26, 2026
0.2.202603181223 Mar 20, 2026
0.2.202602261914 Feb 27, 2026

#1 in #koi

27 downloads per month
Used in 12 crates

Apache-2.0 OR MIT

180KB
2.5K SLoC

koi-common

Crates.io Docs.rs License

Shared types, traits, and utilities for the Koi local network toolkit.

Overview

koi-common is the shared kernel of the Koi workspace. It provides the foundational types used across all domain crates: ServiceRecord, ErrorCode, PipelineResponse, session ID generation, data directory paths, ceremony protocol, and capability gating. Domain crates depend on koi-common but never on each other.

Key Types

  • ServiceRecord — core service data (name, type, host, ip, port, txt)
  • PipelineResponse<B> — generic wire envelope with status/warning fields
  • ErrorCode — wire error codes with HTTP status mapping
  • generate_short_id() — UUID v4 prefix for registration IDs

Part of Koi

This crate is part of the Koi workspace. It is a transitive dependency of all Koi domain crates and is not typically used directly by end users.

License

Licensed under either of Apache License, Version 2.0 or MIT License at your option.

Dependencies

~14–20MB
~269K SLoC