#shared #ids #nodedb

no-std nodedb-types

Portable type definitions shared between NodeDB Origin and NodeDB-Lite

15 releases

Uses new Rust 2024

new 0.2.1 May 12, 2026
0.2.0 May 11, 2026
0.1.1 May 7, 2026
0.0.6 Apr 23, 2026
0.0.0-beta.1 Mar 29, 2026

#1316 in Data structures

Download history 41/week @ 2026-04-08 34/week @ 2026-04-15 13/week @ 2026-04-22 4/week @ 2026-04-29 77/week @ 2026-05-06

139 downloads per month
Used in 19 crates

Apache-2.0

1MB
27K SLoC

Shared NodeDB type definitions: strong IDs (TenantId, VShardId, RequestId, Lsn, Surrogate), error types (NodeDbError + ErrorCode + ErrorDetails), wire types for cross-plane and cross-node messages, value types, configuration schemas, and the approximate-aggregate sketches.

Every NodeDB workspace crate depends on this. Items here form the stable cross-crate vocabulary; types specific to one engine live in that engine's crate.


nodedb-types

Shared types: surrogate IDs, errors, wire shapes, value model

The foundational crate every other NodeDB crate depends on. Defines Surrogate, Lsn, TenantId, VShardId, the NodeDbError struct, nodedb_types::Value, and the cross-plane wire shapes serialized via zerompk.

Status

Pre-1.0. APIs may change between minor versions until 1.0. See the workspace README.md for the full project overview and the GitHub release notes for per-version changes.

License

Licensed under the Apache License, Version 2.0 (LICENSE-APACHE).

Dependencies

~21MB
~313K SLoC