nigig-org/nigig-lite/crates/common/Cargo.toml
arena-agent f9c12359bf
Some checks failed
repo hygiene / hygiene (push) Has been cancelled
nimanyatta: drop vendored xitca-web, use crates.io sources
Delete the vendored xitca-web framework checkout at repo root and
repoint all consumers at the published crates:

- nimanyatta/Cargo.toml: drop path overrides on xitca-web (deps +
  dev-deps), remove the xitca-client dep (never published on
  crates.io) from the manifest and the load/b_server features, and
  remove the [patch.crates-io] section that forced every xitca-*
  crate onto the vendored checkout.
- nigig-lite/crates/common: xitca-web path dep -> version 0.8 from
  crates.io (vendored snapshot was 0.8.1, identical).
- Test suites (shared_test_client, security_suite, enhanced_security,
  enhanced_security_tests) and kra-etims-sdk: migrate xitca-client
  HTTP usage to reqwest from crates.io, preserving request
  semantics (header-override order, error mapping).

Verified in a fresh clone on the pinned toolchain (1.97.1):
nigig-common checks, security/enhanced suites check, and the
session/fast/regression harness binaries build.
2026-09-26 17:16:51 +00:00

36 lines
1.2 KiB
TOML

[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",
] }