[package] name = "nigig-common" version = "0.1.0" edition = "2024" description = """ Shared foundation for the nigig / nimanyatta family: strong IDs, the unified AppError error model (with xitca-web HTTP mapping), REST DTOs for auth, rooms, roles and sync, the WebSocket chat protocol, and input validators. """ # Standalone crate: it is consumed as a path dependency by `nimanyatta` # (`../nigig-lite/crates/common` from that crate's root). The empty workspace # table keeps it independent from any parent workspace. [workspace] [dependencies] serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" # Binary wire format for the WebSocket chat protocol — must match # `nimanyatta/crates/nimanyatta-protocol` (the client library). postcard = { version = "1", features = ["alloc", "use-std"] } chrono = { version = "0.4", default-features = false, features = ["serde", "clock", "std"] } ulid = { version = "1.2", features = ["serde"] } # Web integration: converts `AppError` into status-mapped JSON HTTP responses # for xitca-web handlers that return `nigig_common::Result<_>`. xitca-web = { version = "0.8", features = [ "codegen", "params", "logger", "websocket", "cookie", "json", "rate-limit", "tower-http-compat", ] }