koi-common 0.2.202603241449

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

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.