commit cc36dcdf12387e4ccd45b89bb84c2325b98b2313
parent b9b7119eb25208a8d41e2cbe24a3e1f4c7aabc12
Author: triesap <tyson@radroots.org>
Date: Sat, 27 Jun 2026 10:14:22 +0000
dto: align manual roots with type identity API
- update manual DTO registries for the three-part RustTypeId constructor
- preserve existing package names as both crate and module identity values
- keep generated source-root DTO output unchanged
- validate affected DTO consumers with the closeout lane
Diffstat:
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/crates/events_indexed/src/dto.rs b/crates/events_indexed/src/dto.rs
@@ -93,7 +93,11 @@ impl Dto for RadrootsEventsIndexedIndexCheckpoint {
fn register(ctx: &mut DescribeCtx, rust_ident: &str, type_def: TypeDef) -> TypeRef {
ctx.register_type(
- RustTypeId::new("radroots_events_indexed", rust_ident),
+ RustTypeId::new(
+ "radroots_events_indexed",
+ "radroots_events_indexed",
+ rust_ident,
+ ),
type_def,
)
}
diff --git a/crates/replica_db_schema/src/dto.rs b/crates/replica_db_schema/src/dto.rs
@@ -77,7 +77,7 @@ pub fn dto_registry() -> Registry {
for spec in TYPE_SPECS {
let name = spec.name();
let type_id = registry.register_type(
- RustTypeId::new(env!("CARGO_PKG_NAME"), name),
+ RustTypeId::new(env!("CARGO_PKG_NAME"), env!("CARGO_PKG_NAME"), name),
spec.type_def(),
);
registry.mark_root(type_id);
diff --git a/crates/trade/src/dto.rs b/crates/trade/src/dto.rs
@@ -193,7 +193,10 @@ fn trade_listing_total_like(
}
fn register(ctx: &mut DescribeCtx, rust_ident: &str, type_def: TypeDef) -> TypeRef {
- ctx.register_type(RustTypeId::new("radroots_trade", rust_ident), type_def)
+ ctx.register_type(
+ RustTypeId::new("radroots_trade", "radroots_trade", rust_ident),
+ type_def,
+ )
}
fn ts_ref(target_type: &str) -> TypeRef {