From 1a4ba061ad485ec1687fdc43c765c5e45a4f4afb Mon Sep 17 00:00:00 2001 From: Jeffrey Rooks Date: Fri, 10 Apr 2026 09:40:56 -0400 Subject: [PATCH 1/7] updates --- crates/codegen/src/rust.rs | 2 +- .../snapshots/codegen__codegen_rust.snap | 3 +- sdks/rust/src/table.rs | 39 +++++-------------- 3 files changed, 13 insertions(+), 31 deletions(-) diff --git a/crates/codegen/src/rust.rs b/crates/codegen/src/rust.rs index 638d6f29ec8..59524519b3c 100644 --- a/crates/codegen/src/rust.rs +++ b/crates/codegen/src/rust.rs @@ -1877,7 +1877,7 @@ impl"), - "[`__sdk::Table::on_insert`], [`__sdk::Table::on_delete`] and [`__sdk::TableWithPrimaryKey::on_update`] callbacks", + "[`__sdk::TableLike::on_insert`], [`__sdk::Table::on_delete`] and [`__sdk::TableWithPrimaryKey::on_update`] callbacks", Some("[`__sdk::Event`]"), ); diff --git a/crates/codegen/tests/snapshots/codegen__codegen_rust.snap b/crates/codegen/tests/snapshots/codegen__codegen_rust.snap index 0fc95787a01..a915331c608 100644 --- a/crates/codegen/tests/snapshots/codegen__codegen_rust.snap +++ b/crates/codegen/tests/snapshots/codegen__codegen_rust.snap @@ -1,5 +1,6 @@ --- source: crates/codegen/tests/codegen.rs +assertion_line: 37 expression: outfiles --- "add_player_reducer.rs" = ''' @@ -1603,7 +1604,7 @@ impl Self::InsertCallbackId; /// Cancel a callback previously registered by [`Self::on_insert`], causing it not to run in the future. fn remove_on_insert(&self, callback: Self::InsertCallbackId); +} +/// Trait implemented by table handles, which mediate access to tables in the client cache. +/// +/// Obtain a table handle by calling a method on `ctx.db`, where `ctx` is a `DbConnection` or `EventContext`. +/// +/// For persistent (non-event) tables only. See [`EventTable`] for transient event tables. +pub trait Table: TableLike { type DeleteCallbackId; /// Register a callback to run whenever a subscribed row is deleted from the client cache. /// @@ -84,28 +89,4 @@ pub trait TableWithPrimaryKey: Table { /// only `on_insert` callbacks fire, and `count`/`iter` always reflect an empty table. /// /// Obtain a table handle by calling a method on `ctx.db`, where `ctx` is a `DbConnection` or `EventContext`. -pub trait EventTable { - /// The type of rows in this table. - type Row: 'static; - - /// The `EventContext` type generated for the module which defines this table. - type EventContext; - - /// The number of subscribed rows in the client cache (always 0 for event tables). - fn count(&self) -> u64; - - /// An iterator over all the subscribed rows in the client cache (always empty for event tables). - fn iter(&self) -> impl Iterator + '_; - - type InsertCallbackId; - /// Register a callback to run whenever a row is inserted. - /// - /// The returned [`Self::InsertCallbackId`] can be passed to [`Self::remove_on_insert`] - /// to cancel the callback. - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> Self::InsertCallbackId; - /// Cancel a callback previously registered by [`Self::on_insert`], causing it not to run in the future. - fn remove_on_insert(&self, callback: Self::InsertCallbackId); -} +pub trait EventTable: TableLike {} From 03d2091b21948508d53cdd26e1f4e615ebf9c175 Mon Sep 17 00:00:00 2001 From: Jeffrey Rooks Date: Fri, 10 Apr 2026 09:43:46 -0400 Subject: [PATCH 2/7] wip --- crates/codegen/tests/snapshots/codegen__codegen_rust.snap | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/codegen/tests/snapshots/codegen__codegen_rust.snap b/crates/codegen/tests/snapshots/codegen__codegen_rust.snap index a915331c608..0fc95787a01 100644 --- a/crates/codegen/tests/snapshots/codegen__codegen_rust.snap +++ b/crates/codegen/tests/snapshots/codegen__codegen_rust.snap @@ -1,6 +1,5 @@ --- source: crates/codegen/tests/codegen.rs -assertion_line: 37 expression: outfiles --- "add_player_reducer.rs" = ''' @@ -1604,7 +1603,7 @@ impl Date: Fri, 10 Apr 2026 10:38:34 -0400 Subject: [PATCH 3/7] With<> traits --- sdks/rust/src/table.rs | 59 ++++++++++++------ .../identity_connected_reducer.rs | 62 ------------------- .../identity_disconnected_reducer.rs | 62 ------------------- .../src/module_bindings/mod.rs | 17 +---- 4 files changed, 41 insertions(+), 159 deletions(-) delete mode 100644 sdks/rust/tests/connect_disconnect_client/src/module_bindings/identity_connected_reducer.rs delete mode 100644 sdks/rust/tests/connect_disconnect_client/src/module_bindings/identity_disconnected_reducer.rs diff --git a/sdks/rust/src/table.rs b/sdks/rust/src/table.rs index 44154f7d54c..1f521ada5ec 100644 --- a/sdks/rust/src/table.rs +++ b/sdks/rust/src/table.rs @@ -1,4 +1,5 @@ -//! The [`Table`] and [`TableWithPrimaryKey`] traits, +//! The [`TableLike`], [`Table`], [`TableWithPrimaryKey`], and [`EventTable`] traits, +//! together with the [`WithInsert`], [`WithDelete`], and [`WithUpdate`] capability traits, //! which allow certain simple queries of the client cache, //! and expose row callbacks which run when subscribed rows are inserted, deleted or updated. //! @@ -22,9 +23,16 @@ pub trait TableLike { /// An iterator over all the subscribed rows in the client cache. fn iter(&self) -> impl Iterator + '_; +} +/// Capability trait for table-like handles which support insert callbacks. +pub trait WithInsert: TableLike { type InsertCallbackId; - /// Register a callback to run whenever a subscribed row is inserted into the client cache. + + /// Register a callback to run whenever a row is observed as inserted by this table handle. + /// + /// For persistent tables, this means a subscribed row is inserted into the client cache. + /// For event tables, this means an event row is delivered. /// /// The returned [`Self::InsertCallbackId`] can be passed to [`Self::remove_on_insert`] /// to cancel the callback. @@ -32,17 +40,15 @@ pub trait TableLike { &self, callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, ) -> Self::InsertCallbackId; + /// Cancel a callback previously registered by [`Self::on_insert`], causing it not to run in the future. fn remove_on_insert(&self, callback: Self::InsertCallbackId); } -/// Trait implemented by table handles, which mediate access to tables in the client cache. -/// -/// Obtain a table handle by calling a method on `ctx.db`, where `ctx` is a `DbConnection` or `EventContext`. -/// -/// For persistent (non-event) tables only. See [`EventTable`] for transient event tables. -pub trait Table: TableLike { +/// Capability trait for table-like handles which support delete callbacks. +pub trait WithDelete: TableLike { type DeleteCallbackId; + /// Register a callback to run whenever a subscribed row is deleted from the client cache. /// /// The returned [`Self::DeleteCallbackId`] can be passed to [`Self::remove_on_delete`] @@ -51,22 +57,15 @@ pub trait Table: TableLike { &self, callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, ) -> Self::DeleteCallbackId; + /// Cancel a callback previously registered by [`Self::on_delete`], causing it not to run in the future. fn remove_on_delete(&self, callback: Self::DeleteCallbackId); } -/// Subtrait of [`Table`] implemented only by tables with a column designated as a primary key, -/// which allows the SDK to identify updates. -/// -/// SpacetimeDB does not have a special notion of updates as a primitive operation. -/// Instead, an update is a delete followed by an insert -/// of rows with the same primary key within the same transaction. -/// This means that the module's calls to `ctx.db.some_table().unique_column().update(...)` -/// may not result in an update event on the client if `unique_column` is not the primary key, -/// and that clients may observe update events resulting from deletes and inserts by the module -/// without going through such an `update` method. -pub trait TableWithPrimaryKey: Table { +/// Capability trait for table-like handles which support update callbacks. +pub trait WithUpdate: TableLike { type UpdateCallbackId; + /// Register a callback to run whenever a subscribed row is updated within a transaction, /// with an old version deleted and a new version inserted with the same primary key. /// @@ -79,14 +78,34 @@ pub trait TableWithPrimaryKey: Table { &self, callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, ) -> Self::UpdateCallbackId; + /// Cancel a callback previously registered by [`Self::on_update`], causing it not to run in the future. fn remove_on_update(&self, callback: Self::UpdateCallbackId); } +/// Trait implemented by persistent table handles, which mediate access to tables in the client cache. +/// +/// Obtain a table handle by calling a method on `ctx.db`, where `ctx` is a `DbConnection` or `EventContext`. +/// +/// For persistent (non-event) tables only. See [`EventTable`] for transient event tables. +pub trait Table: TableLike + WithInsert + WithDelete {} + +/// Subtrait of [`Table`] implemented only by tables with a column designated as a primary key, +/// which allows the SDK to identify updates. +/// +/// SpacetimeDB does not have a special notion of updates as a primitive operation. +/// Instead, an update is a delete followed by an insert +/// of rows with the same primary key within the same transaction. +/// This means that the module's calls to `ctx.db.some_table().unique_column().update(...)` +/// may not result in an update event on the client if `unique_column` is not the primary key, +/// and that clients may observe update events resulting from deletes and inserts by the module +/// without going through such an `update` method. +pub trait TableWithPrimaryKey: Table + WithUpdate {} + /// Trait for event tables, whose rows are transient and never persisted in the client cache. /// /// Event table rows are delivered as inserts but are not stored; /// only `on_insert` callbacks fire, and `count`/`iter` always reflect an empty table. /// /// Obtain a table handle by calling a method on `ctx.db`, where `ctx` is a `DbConnection` or `EventContext`. -pub trait EventTable: TableLike {} +pub trait EventTable: TableLike + WithInsert {} diff --git a/sdks/rust/tests/connect_disconnect_client/src/module_bindings/identity_connected_reducer.rs b/sdks/rust/tests/connect_disconnect_client/src/module_bindings/identity_connected_reducer.rs deleted file mode 100644 index cfbf1d03d30..00000000000 --- a/sdks/rust/tests/connect_disconnect_client/src/module_bindings/identity_connected_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct IdentityConnectedArgs {} - -impl From for super::Reducer { - fn from(args: IdentityConnectedArgs) -> Self { - Self::IdentityConnected - } -} - -impl __sdk::InModule for IdentityConnectedArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `identity_connected`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait identity_connected { - /// Request that the remote module invoke the reducer `identity_connected` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`identity_connected:identity_connected_then`] to run a callback after the reducer completes. - fn identity_connected(&self) -> __sdk::Result<()> { - self.identity_connected_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `identity_connected` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn identity_connected_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl identity_connected for super::RemoteReducers { - fn identity_connected_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(IdentityConnectedArgs {}, callback) - } -} diff --git a/sdks/rust/tests/connect_disconnect_client/src/module_bindings/identity_disconnected_reducer.rs b/sdks/rust/tests/connect_disconnect_client/src/module_bindings/identity_disconnected_reducer.rs deleted file mode 100644 index 8cec050f73e..00000000000 --- a/sdks/rust/tests/connect_disconnect_client/src/module_bindings/identity_disconnected_reducer.rs +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct IdentityDisconnectedArgs {} - -impl From for super::Reducer { - fn from(args: IdentityDisconnectedArgs) -> Self { - Self::IdentityDisconnected - } -} - -impl __sdk::InModule for IdentityDisconnectedArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `identity_disconnected`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait identity_disconnected { - /// Request that the remote module invoke the reducer `identity_disconnected` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`identity_disconnected:identity_disconnected_then`] to run a callback after the reducer completes. - fn identity_disconnected(&self) -> __sdk::Result<()> { - self.identity_disconnected_then(|_, _| {}) - } - - /// Request that the remote module invoke the reducer `identity_disconnected` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn identity_disconnected_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl identity_disconnected for super::RemoteReducers { - fn identity_disconnected_then( - &self, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(IdentityDisconnectedArgs {}, callback) - } -} diff --git a/sdks/rust/tests/connect_disconnect_client/src/module_bindings/mod.rs b/sdks/rust/tests/connect_disconnect_client/src/module_bindings/mod.rs index 1ef84bbcf6b..c2b647d1b82 100644 --- a/sdks/rust/tests/connect_disconnect_client/src/module_bindings/mod.rs +++ b/sdks/rust/tests/connect_disconnect_client/src/module_bindings/mod.rs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 2.0.5 (commit ca7484e072f9514fb2f890f26600a5d096f59431). +// This was generated using spacetimedb cli version 2.1.0 (commit 6981f48b4bc1a71c8dd9bdfe5a2c343f6370243d). #![allow(unused, clippy::all)] use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; @@ -10,15 +10,11 @@ pub mod connected_table; pub mod connected_type; pub mod disconnected_table; pub mod disconnected_type; -pub mod identity_connected_reducer; -pub mod identity_disconnected_reducer; pub use connected_table::*; pub use connected_type::Connected; pub use disconnected_table::*; pub use disconnected_type::Disconnected; -pub use identity_connected_reducer::identity_connected; -pub use identity_disconnected_reducer::identity_disconnected; #[derive(Clone, PartialEq, Debug)] @@ -27,10 +23,7 @@ pub use identity_disconnected_reducer::identity_disconnected; /// Contained within a [`__sdk::ReducerEvent`] in [`EventContext`]s for reducer events /// to indicate which reducer caused the event. -pub enum Reducer { - IdentityConnected, - IdentityDisconnected, -} +pub enum Reducer {} impl __sdk::InModule for Reducer { type Module = RemoteModule; @@ -39,18 +32,12 @@ impl __sdk::InModule for Reducer { impl __sdk::Reducer for Reducer { fn reducer_name(&self) -> &'static str { match self { - Reducer::IdentityConnected => "identity_connected", - Reducer::IdentityDisconnected => "identity_disconnected", _ => unreachable!(), } } #[allow(clippy::clone_on_copy)] fn args_bsatn(&self) -> Result, __sats::bsatn::EncodeError> { match self { - Reducer::IdentityConnected => __sats::bsatn::to_vec(&identity_connected_reducer::IdentityConnectedArgs {}), - Reducer::IdentityDisconnected => { - __sats::bsatn::to_vec(&identity_disconnected_reducer::IdentityDisconnectedArgs {}) - } _ => unreachable!(), } } From a55e72b38408edd544d8a8e126ada5daac70da46 Mon Sep 17 00:00:00 2001 From: Jeffrey Rooks Date: Fri, 10 Apr 2026 11:01:23 -0400 Subject: [PATCH 4/7] regenerate --- crates/codegen/src/rust.rs | 20 +- sdks/rust/src/lib.rs | 4 +- .../src/module_bindings/connected_table.rs | 8 +- .../src/module_bindings/disconnected_table.rs | 8 +- .../src/module_bindings/mod.rs | 4 +- .../src/module_bindings/mod.rs | 4 +- .../src/module_bindings/test_event_table.rs | 6 +- .../src/module_bindings/mod.rs | 31 +- .../src/module_bindings/my_table_table.rs | 8 +- .../src/module_bindings/pk_uuid_table.rs | 8 +- .../proc_inserts_into_table.rs | 8 +- .../scheduled_proc_procedure.rs | 46 - .../scheduled_proc_table_table.rs | 159 - .../view-client/src/module_bindings/mod.rs | 21 +- .../my_player_and_level_table.rs | 8 +- .../src/module_bindings/my_player_table.rs | 8 +- .../module_bindings/nearby_players_table.rs | 8 +- .../src/module_bindings/player_level_table.rs | 8 +- .../module_bindings/player_location_table.rs | 142 - .../src/module_bindings/player_table.rs | 12 +- .../players_at_level_0_table.rs | 8 +- .../all_view_pk_players_table.rs | 12 +- .../view-pk-client/src/module_bindings/mod.rs | 4 +- .../sender_view_pk_players_a_table.rs | 12 +- .../sender_view_pk_players_b_table.rs | 12 +- .../view_pk_membership_secondary_table.rs | 12 +- .../view_pk_membership_table.rs | 12 +- .../module_bindings/view_pk_player_table.rs | 12 +- templates/basic-rs/Cargo.lock | 2653 +++++++++++++++++ 29 files changed, 2827 insertions(+), 431 deletions(-) delete mode 100644 sdks/rust/tests/procedure-client/src/module_bindings/scheduled_proc_procedure.rs delete mode 100644 sdks/rust/tests/procedure-client/src/module_bindings/scheduled_proc_table_table.rs delete mode 100644 sdks/rust/tests/view-client/src/module_bindings/player_location_table.rs create mode 100644 templates/basic-rs/Cargo.lock diff --git a/crates/codegen/src/rust.rs b/crates/codegen/src/rust.rs index 59524519b3c..9e9d5e329b4 100644 --- a/crates/codegen/src/rust.rs +++ b/crates/codegen/src/rust.rs @@ -183,13 +183,15 @@ pub struct {insert_callback_id}(__sdk::CallbackId); write!( out, " -impl<'ctx> __sdk::EventTable for {table_handle}<'ctx> {{ +impl<'ctx> __sdk::TableLike for {table_handle}<'ctx> {{ type Row = {row_type}; type EventContext = super::EventContext; fn count(&self) -> u64 {{ self.imp.count() }} fn iter(&self) -> impl Iterator + '_ {{ self.imp.iter() }} +}} +impl<'ctx> __sdk::WithInsert for {table_handle}<'ctx> {{ type InsertCallbackId = {insert_callback_id}; fn on_insert( @@ -203,6 +205,8 @@ impl<'ctx> __sdk::EventTable for {table_handle}<'ctx> {{ self.imp.remove_on_insert(callback.0) }} }} + +impl<'ctx> __sdk::EventTable for {table_handle}<'ctx> {{}} " ); } else { @@ -213,13 +217,15 @@ impl<'ctx> __sdk::EventTable for {table_handle}<'ctx> {{ out, "pub struct {delete_callback_id}(__sdk::CallbackId); -impl<'ctx> __sdk::Table for {table_handle}<'ctx> {{ +impl<'ctx> __sdk::TableLike for {table_handle}<'ctx> {{ type Row = {row_type}; type EventContext = super::EventContext; fn count(&self) -> u64 {{ self.imp.count() }} fn iter(&self) -> impl Iterator + '_ {{ self.imp.iter() }} +}} +impl<'ctx> __sdk::WithInsert for {table_handle}<'ctx> {{ type InsertCallbackId = {insert_callback_id}; fn on_insert( @@ -232,7 +238,9 @@ impl<'ctx> __sdk::Table for {table_handle}<'ctx> {{ fn remove_on_insert(&self, callback: {insert_callback_id}) {{ self.imp.remove_on_insert(callback.0) }} +}} +impl<'ctx> __sdk::WithDelete for {table_handle}<'ctx> {{ type DeleteCallbackId = {delete_callback_id}; fn on_delete( @@ -246,6 +254,8 @@ impl<'ctx> __sdk::Table for {table_handle}<'ctx> {{ self.imp.remove_on_delete(callback.0) }} }} + +impl<'ctx> __sdk::Table for {table_handle}<'ctx> {{}} " ); @@ -258,7 +268,7 @@ impl<'ctx> __sdk::Table for {table_handle}<'ctx> {{ " pub struct {update_callback_id}(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for {table_handle}<'ctx> {{ +impl<'ctx> __sdk::WithUpdate for {table_handle}<'ctx> {{ type UpdateCallbackId = {update_callback_id}; fn on_update( @@ -272,6 +282,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for {table_handle}<'ctx> {{ self.imp.remove_on_update(callback.0) }} }} + +impl<'ctx> __sdk::TableWithPrimaryKey for {table_handle}<'ctx> {{}} " ); } @@ -1877,7 +1889,7 @@ impl"), - "[`__sdk::TableLike::on_insert`], [`__sdk::Table::on_delete`] and [`__sdk::TableWithPrimaryKey::on_update`] callbacks", + "[`__sdk::WithInsert::on_insert`], [`__sdk::WithDelete::on_delete`] and [`__sdk::WithUpdate::on_update`] callbacks", Some("[`__sdk::Event`]"), ); diff --git a/sdks/rust/src/lib.rs b/sdks/rust/src/lib.rs index d99447d440f..5e5d4010572 100644 --- a/sdks/rust/src/lib.rs +++ b/sdks/rust/src/lib.rs @@ -29,7 +29,7 @@ pub use db_connection::DbConnectionBuilder; pub use db_context::DbContext; pub use error::{Error, Result}; pub use event::{Event, ReducerEvent, Status}; -pub use table::{EventTable, Table, TableWithPrimaryKey}; +pub use table::{EventTable, Table, TableLike, TableWithPrimaryKey, WithDelete, WithInsert, WithUpdate}; pub use spacetime_module::SubscriptionHandle; pub use spacetimedb_client_api_messages::websocket::v1::Compression; @@ -62,7 +62,7 @@ pub mod __codegen { pub use crate::subscription::{OnEndedCallback, SubscriptionBuilder, SubscriptionHandleImpl}; pub use crate::{ ConnectionId, DbConnectionBuilder, DbContext, Event, EventTable, Identity, ReducerEvent, ScheduleAt, Table, - TableWithPrimaryKey, TimeDuration, Timestamp, Uuid, + TableLike, TableWithPrimaryKey, TimeDuration, Timestamp, Uuid, WithDelete, WithInsert, WithUpdate, }; } diff --git a/sdks/rust/tests/connect_disconnect_client/src/module_bindings/connected_table.rs b/sdks/rust/tests/connect_disconnect_client/src/module_bindings/connected_table.rs index 26873a10c5d..d0f4697c946 100644 --- a/sdks/rust/tests/connect_disconnect_client/src/module_bindings/connected_table.rs +++ b/sdks/rust/tests/connect_disconnect_client/src/module_bindings/connected_table.rs @@ -40,7 +40,7 @@ impl ConnectedTableAccess for super::RemoteTables { pub struct ConnectedInsertCallbackId(__sdk::CallbackId); pub struct ConnectedDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for ConnectedTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for ConnectedTableHandle<'ctx> { type Row = Connected; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for ConnectedTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for ConnectedTableHandle<'ctx> { type InsertCallbackId = ConnectedInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for ConnectedTableHandle<'ctx> { fn remove_on_insert(&self, callback: ConnectedInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for ConnectedTableHandle<'ctx> { type DeleteCallbackId = ConnectedDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for ConnectedTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for ConnectedTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("connected"); diff --git a/sdks/rust/tests/connect_disconnect_client/src/module_bindings/disconnected_table.rs b/sdks/rust/tests/connect_disconnect_client/src/module_bindings/disconnected_table.rs index 35147a9e6e3..6b3bd3948de 100644 --- a/sdks/rust/tests/connect_disconnect_client/src/module_bindings/disconnected_table.rs +++ b/sdks/rust/tests/connect_disconnect_client/src/module_bindings/disconnected_table.rs @@ -40,7 +40,7 @@ impl DisconnectedTableAccess for super::RemoteTables { pub struct DisconnectedInsertCallbackId(__sdk::CallbackId); pub struct DisconnectedDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for DisconnectedTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for DisconnectedTableHandle<'ctx> { type Row = Disconnected; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for DisconnectedTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for DisconnectedTableHandle<'ctx> { type InsertCallbackId = DisconnectedInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for DisconnectedTableHandle<'ctx> { fn remove_on_insert(&self, callback: DisconnectedInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for DisconnectedTableHandle<'ctx> { type DeleteCallbackId = DisconnectedDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for DisconnectedTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for DisconnectedTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("disconnected"); diff --git a/sdks/rust/tests/connect_disconnect_client/src/module_bindings/mod.rs b/sdks/rust/tests/connect_disconnect_client/src/module_bindings/mod.rs index c2b647d1b82..c48bee35cc9 100644 --- a/sdks/rust/tests/connect_disconnect_client/src/module_bindings/mod.rs +++ b/sdks/rust/tests/connect_disconnect_client/src/module_bindings/mod.rs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 2.1.0 (commit 6981f48b4bc1a71c8dd9bdfe5a2c343f6370243d). +// This was generated using spacetimedb cli version 2.1.0 (commit aa84d00c80f19e20a89d7cb52b3470e59e844168). #![allow(unused, clippy::all)] use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; @@ -408,7 +408,7 @@ impl< } /// An [`__sdk::DbContext`] augmented with a [`__sdk::Event`], -/// passed to [`__sdk::Table::on_insert`], [`__sdk::Table::on_delete`] and [`__sdk::TableWithPrimaryKey::on_update`] callbacks. +/// passed to [`__sdk::WithInsert::on_insert`], [`__sdk::WithDelete::on_delete`] and [`__sdk::WithUpdate::on_update`] callbacks. pub struct EventContext { /// Access to tables defined by the module via extension traits implemented for [`RemoteTables`]. pub db: RemoteTables, diff --git a/sdks/rust/tests/event-table-client/src/module_bindings/mod.rs b/sdks/rust/tests/event-table-client/src/module_bindings/mod.rs index 36db8c84b50..dc719761a69 100644 --- a/sdks/rust/tests/event-table-client/src/module_bindings/mod.rs +++ b/sdks/rust/tests/event-table-client/src/module_bindings/mod.rs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 2.0.5 (commit ca7484e072f9514fb2f890f26600a5d096f59431). +// This was generated using spacetimedb cli version 2.1.0 (commit aa84d00c80f19e20a89d7cb52b3470e59e844168). #![allow(unused, clippy::all)] use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; @@ -414,7 +414,7 @@ impl< } /// An [`__sdk::DbContext`] augmented with a [`__sdk::Event`], -/// passed to [`__sdk::Table::on_insert`], [`__sdk::Table::on_delete`] and [`__sdk::TableWithPrimaryKey::on_update`] callbacks. +/// passed to [`__sdk::WithInsert::on_insert`], [`__sdk::WithDelete::on_delete`] and [`__sdk::WithUpdate::on_update`] callbacks. pub struct EventContext { /// Access to tables defined by the module via extension traits implemented for [`RemoteTables`]. pub db: RemoteTables, diff --git a/sdks/rust/tests/event-table-client/src/module_bindings/test_event_table.rs b/sdks/rust/tests/event-table-client/src/module_bindings/test_event_table.rs index b6d14f66674..668bd8fc229 100644 --- a/sdks/rust/tests/event-table-client/src/module_bindings/test_event_table.rs +++ b/sdks/rust/tests/event-table-client/src/module_bindings/test_event_table.rs @@ -39,7 +39,7 @@ impl TestEventTableAccess for super::RemoteTables { pub struct TestEventInsertCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::EventTable for TestEventTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for TestEventTableHandle<'ctx> { type Row = TestEvent; type EventContext = super::EventContext; @@ -49,7 +49,9 @@ impl<'ctx> __sdk::EventTable for TestEventTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for TestEventTableHandle<'ctx> { type InsertCallbackId = TestEventInsertCallbackId; fn on_insert( @@ -64,6 +66,8 @@ impl<'ctx> __sdk::EventTable for TestEventTableHandle<'ctx> { } } +impl<'ctx> __sdk::EventTable for TestEventTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("test_event"); diff --git a/sdks/rust/tests/procedure-client/src/module_bindings/mod.rs b/sdks/rust/tests/procedure-client/src/module_bindings/mod.rs index 18eef1b125e..2c2b85bd61b 100644 --- a/sdks/rust/tests/procedure-client/src/module_bindings/mod.rs +++ b/sdks/rust/tests/procedure-client/src/module_bindings/mod.rs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 2.0.5 (commit ca7484e072f9514fb2f890f26600a5d096f59431). +// This was generated using spacetimedb cli version 2.1.0 (commit aa84d00c80f19e20a89d7cb52b3470e59e844168). #![allow(unused, clippy::all)] use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; @@ -23,8 +23,6 @@ pub mod return_primitive_procedure; pub mod return_struct_procedure; pub mod return_struct_type; pub mod schedule_proc_reducer; -pub mod scheduled_proc_procedure; -pub mod scheduled_proc_table_table; pub mod scheduled_proc_table_type; pub mod sorted_uuids_insert_procedure; pub mod will_panic_procedure; @@ -46,8 +44,6 @@ pub use return_primitive_procedure::return_primitive; pub use return_struct_procedure::return_struct; pub use return_struct_type::ReturnStruct; pub use schedule_proc_reducer::schedule_proc; -pub use scheduled_proc_procedure::scheduled_proc; -pub use scheduled_proc_table_table::*; pub use scheduled_proc_table_type::ScheduledProcTable; pub use sorted_uuids_insert_procedure::sorted_uuids_insert; pub use will_panic_procedure::will_panic; @@ -90,7 +86,6 @@ pub struct DbUpdate { my_table: __sdk::TableUpdate, pk_uuid: __sdk::TableUpdate, proc_inserts_into: __sdk::TableUpdate, - scheduled_proc_table: __sdk::TableUpdate, } impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { @@ -108,9 +103,6 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { "proc_inserts_into" => db_update .proc_inserts_into .append(proc_inserts_into_table::parse_table_update(table_update)?), - "scheduled_proc_table" => db_update - .scheduled_proc_table - .append(scheduled_proc_table_table::parse_table_update(table_update)?), unknown => { return Err(__sdk::InternalError::unknown_name("table", unknown, "DatabaseUpdate").into()); @@ -133,9 +125,6 @@ impl __sdk::DbUpdate for DbUpdate { diff.pk_uuid = cache.apply_diff_to_table::("pk_uuid", &self.pk_uuid); diff.proc_inserts_into = cache.apply_diff_to_table::("proc_inserts_into", &self.proc_inserts_into); - diff.scheduled_proc_table = cache - .apply_diff_to_table::("scheduled_proc_table", &self.scheduled_proc_table) - .with_updates_by_pk(|row| &row.scheduled_id); diff } @@ -152,9 +141,6 @@ impl __sdk::DbUpdate for DbUpdate { "proc_inserts_into" => db_update .proc_inserts_into .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "scheduled_proc_table" => db_update - .scheduled_proc_table - .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), unknown => { return Err(__sdk::InternalError::unknown_name("table", unknown, "QueryRows").into()); } @@ -175,9 +161,6 @@ impl __sdk::DbUpdate for DbUpdate { "proc_inserts_into" => db_update .proc_inserts_into .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "scheduled_proc_table" => db_update - .scheduled_proc_table - .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), unknown => { return Err(__sdk::InternalError::unknown_name("table", unknown, "QueryRows").into()); } @@ -194,7 +177,6 @@ pub struct AppliedDiff<'r> { my_table: __sdk::TableAppliedDiff<'r, MyTable>, pk_uuid: __sdk::TableAppliedDiff<'r, PkUuid>, proc_inserts_into: __sdk::TableAppliedDiff<'r, ProcInsertsInto>, - scheduled_proc_table: __sdk::TableAppliedDiff<'r, ScheduledProcTable>, __unused: std::marker::PhantomData<&'r ()>, } @@ -207,11 +189,6 @@ impl<'r> __sdk::AppliedDiff<'r> for AppliedDiff<'r> { callbacks.invoke_table_row_callbacks::("my_table", &self.my_table, event); callbacks.invoke_table_row_callbacks::("pk_uuid", &self.pk_uuid, event); callbacks.invoke_table_row_callbacks::("proc_inserts_into", &self.proc_inserts_into, event); - callbacks.invoke_table_row_callbacks::( - "scheduled_proc_table", - &self.scheduled_proc_table, - event, - ); } } @@ -481,7 +458,7 @@ impl< } /// An [`__sdk::DbContext`] augmented with a [`__sdk::Event`], -/// passed to [`__sdk::Table::on_insert`], [`__sdk::Table::on_delete`] and [`__sdk::TableWithPrimaryKey::on_update`] callbacks. +/// passed to [`__sdk::WithInsert::on_insert`], [`__sdk::WithDelete::on_delete`] and [`__sdk::WithUpdate::on_update`] callbacks. pub struct EventContext { /// Access to tables defined by the module via extension traits implemented for [`RemoteTables`]. pub db: RemoteTables, @@ -872,8 +849,6 @@ impl __sdk::SpacetimeModule for RemoteModule { my_table_table::register_table(client_cache); pk_uuid_table::register_table(client_cache); proc_inserts_into_table::register_table(client_cache); - scheduled_proc_table_table::register_table(client_cache); } - const ALL_TABLE_NAMES: &'static [&'static str] = - &["my_table", "pk_uuid", "proc_inserts_into", "scheduled_proc_table"]; + const ALL_TABLE_NAMES: &'static [&'static str] = &["my_table", "pk_uuid", "proc_inserts_into"]; } diff --git a/sdks/rust/tests/procedure-client/src/module_bindings/my_table_table.rs b/sdks/rust/tests/procedure-client/src/module_bindings/my_table_table.rs index a9215f629c4..c3cdf53b23d 100644 --- a/sdks/rust/tests/procedure-client/src/module_bindings/my_table_table.rs +++ b/sdks/rust/tests/procedure-client/src/module_bindings/my_table_table.rs @@ -41,7 +41,7 @@ impl MyTableTableAccess for super::RemoteTables { pub struct MyTableInsertCallbackId(__sdk::CallbackId); pub struct MyTableDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for MyTableTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for MyTableTableHandle<'ctx> { type Row = MyTable; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for MyTableTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for MyTableTableHandle<'ctx> { type InsertCallbackId = MyTableInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for MyTableTableHandle<'ctx> { fn remove_on_insert(&self, callback: MyTableInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for MyTableTableHandle<'ctx> { type DeleteCallbackId = MyTableDeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for MyTableTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for MyTableTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("my_table"); diff --git a/sdks/rust/tests/procedure-client/src/module_bindings/pk_uuid_table.rs b/sdks/rust/tests/procedure-client/src/module_bindings/pk_uuid_table.rs index f177d36ead8..d17e294c193 100644 --- a/sdks/rust/tests/procedure-client/src/module_bindings/pk_uuid_table.rs +++ b/sdks/rust/tests/procedure-client/src/module_bindings/pk_uuid_table.rs @@ -40,7 +40,7 @@ impl PkUuidTableAccess for super::RemoteTables { pub struct PkUuidInsertCallbackId(__sdk::CallbackId); pub struct PkUuidDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkUuidTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkUuidTableHandle<'ctx> { type Row = PkUuid; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkUuidTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkUuidTableHandle<'ctx> { type InsertCallbackId = PkUuidInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkUuidTableHandle<'ctx> { fn remove_on_insert(&self, callback: PkUuidInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkUuidTableHandle<'ctx> { type DeleteCallbackId = PkUuidDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for PkUuidTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkUuidTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("pk_uuid"); diff --git a/sdks/rust/tests/procedure-client/src/module_bindings/proc_inserts_into_table.rs b/sdks/rust/tests/procedure-client/src/module_bindings/proc_inserts_into_table.rs index 6f61280d313..b88e0896f4a 100644 --- a/sdks/rust/tests/procedure-client/src/module_bindings/proc_inserts_into_table.rs +++ b/sdks/rust/tests/procedure-client/src/module_bindings/proc_inserts_into_table.rs @@ -40,7 +40,7 @@ impl ProcInsertsIntoTableAccess for super::RemoteTables { pub struct ProcInsertsIntoInsertCallbackId(__sdk::CallbackId); pub struct ProcInsertsIntoDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for ProcInsertsIntoTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for ProcInsertsIntoTableHandle<'ctx> { type Row = ProcInsertsInto; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for ProcInsertsIntoTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for ProcInsertsIntoTableHandle<'ctx> { type InsertCallbackId = ProcInsertsIntoInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for ProcInsertsIntoTableHandle<'ctx> { fn remove_on_insert(&self, callback: ProcInsertsIntoInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for ProcInsertsIntoTableHandle<'ctx> { type DeleteCallbackId = ProcInsertsIntoDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for ProcInsertsIntoTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for ProcInsertsIntoTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("proc_inserts_into"); diff --git a/sdks/rust/tests/procedure-client/src/module_bindings/scheduled_proc_procedure.rs b/sdks/rust/tests/procedure-client/src/module_bindings/scheduled_proc_procedure.rs deleted file mode 100644 index 124f51162f0..00000000000 --- a/sdks/rust/tests/procedure-client/src/module_bindings/scheduled_proc_procedure.rs +++ /dev/null @@ -1,46 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::scheduled_proc_table_type::ScheduledProcTable; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -struct ScheduledProcArgs { - pub data: ScheduledProcTable, -} - -impl __sdk::InModule for ScheduledProcArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the procedure `scheduled_proc`. -/// -/// Implemented for [`super::RemoteProcedures`]. -pub trait scheduled_proc { - fn scheduled_proc(&self, data: ScheduledProcTable) { - self.scheduled_proc_then(data, |_, _| {}); - } - - fn scheduled_proc_then( - &self, - data: ScheduledProcTable, - - __callback: impl FnOnce(&super::ProcedureEventContext, Result<(), __sdk::InternalError>) + Send + 'static, - ); -} - -impl scheduled_proc for super::RemoteProcedures { - fn scheduled_proc_then( - &self, - data: ScheduledProcTable, - - __callback: impl FnOnce(&super::ProcedureEventContext, Result<(), __sdk::InternalError>) + Send + 'static, - ) { - self.imp - .invoke_procedure_with_callback::<_, ()>("scheduled_proc", ScheduledProcArgs { data }, __callback); - } -} diff --git a/sdks/rust/tests/procedure-client/src/module_bindings/scheduled_proc_table_table.rs b/sdks/rust/tests/procedure-client/src/module_bindings/scheduled_proc_table_table.rs deleted file mode 100644 index 03f3ea0fda9..00000000000 --- a/sdks/rust/tests/procedure-client/src/module_bindings/scheduled_proc_table_table.rs +++ /dev/null @@ -1,159 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::scheduled_proc_table_type::ScheduledProcTable; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `scheduled_proc_table`. -/// -/// Obtain a handle from the [`ScheduledProcTableTableAccess::scheduled_proc_table`] method on [`super::RemoteTables`], -/// like `ctx.db.scheduled_proc_table()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.scheduled_proc_table().on_insert(...)`. -pub struct ScheduledProcTableTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `scheduled_proc_table`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait ScheduledProcTableTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`ScheduledProcTableTableHandle`], which mediates access to the table `scheduled_proc_table`. - fn scheduled_proc_table(&self) -> ScheduledProcTableTableHandle<'_>; -} - -impl ScheduledProcTableTableAccess for super::RemoteTables { - fn scheduled_proc_table(&self) -> ScheduledProcTableTableHandle<'_> { - ScheduledProcTableTableHandle { - imp: self.imp.get_table::("scheduled_proc_table"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct ScheduledProcTableInsertCallbackId(__sdk::CallbackId); -pub struct ScheduledProcTableDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for ScheduledProcTableTableHandle<'ctx> { - type Row = ScheduledProcTable; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = ScheduledProcTableInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> ScheduledProcTableInsertCallbackId { - ScheduledProcTableInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: ScheduledProcTableInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = ScheduledProcTableDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> ScheduledProcTableDeleteCallbackId { - ScheduledProcTableDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: ScheduledProcTableDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -pub struct ScheduledProcTableUpdateCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::TableWithPrimaryKey for ScheduledProcTableTableHandle<'ctx> { - type UpdateCallbackId = ScheduledProcTableUpdateCallbackId; - - fn on_update( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row, &Self::Row) + Send + 'static, - ) -> ScheduledProcTableUpdateCallbackId { - ScheduledProcTableUpdateCallbackId(self.imp.on_update(Box::new(callback))) - } - - fn remove_on_update(&self, callback: ScheduledProcTableUpdateCallbackId) { - self.imp.remove_on_update(callback.0) - } -} - -/// Access to the `scheduled_id` unique index on the table `scheduled_proc_table`, -/// which allows point queries on the field of the same name -/// via the [`ScheduledProcTableScheduledIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.scheduled_proc_table().scheduled_id().find(...)`. -pub struct ScheduledProcTableScheduledIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> ScheduledProcTableTableHandle<'ctx> { - /// Get a handle on the `scheduled_id` unique index on the table `scheduled_proc_table`. - pub fn scheduled_id(&self) -> ScheduledProcTableScheduledIdUnique<'ctx> { - ScheduledProcTableScheduledIdUnique { - imp: self.imp.get_unique_constraint::("scheduled_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> ScheduledProcTableScheduledIdUnique<'ctx> { - /// Find the subscribed row whose `scheduled_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("scheduled_proc_table"); - _table.add_unique_constraint::("scheduled_id", |row| &row.scheduled_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `ScheduledProcTable`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait scheduled_proc_tableQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `ScheduledProcTable`. - fn scheduled_proc_table(&self) -> __sdk::__query_builder::Table; -} - -impl scheduled_proc_tableQueryTableAccess for __sdk::QueryTableAccessor { - fn scheduled_proc_table(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("scheduled_proc_table") - } -} diff --git a/sdks/rust/tests/view-client/src/module_bindings/mod.rs b/sdks/rust/tests/view-client/src/module_bindings/mod.rs index 9a292ee9a48..903c78773ba 100644 --- a/sdks/rust/tests/view-client/src/module_bindings/mod.rs +++ b/sdks/rust/tests/view-client/src/module_bindings/mod.rs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 2.0.5 (commit ca7484e072f9514fb2f890f26600a5d096f59431). +// This was generated using spacetimedb cli version 2.1.0 (commit aa84d00c80f19e20a89d7cb52b3470e59e844168). #![allow(unused, clippy::all)] use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; @@ -15,7 +15,6 @@ pub mod nearby_players_table; pub mod player_and_level_type; pub mod player_level_table; pub mod player_level_type; -pub mod player_location_table; pub mod player_location_type; pub mod player_table; pub mod player_type; @@ -30,7 +29,6 @@ pub use nearby_players_table::*; pub use player_and_level_type::PlayerAndLevel; pub use player_level_table::*; pub use player_level_type::PlayerLevel; -pub use player_location_table::*; pub use player_location_type::PlayerLocation; pub use player_table::*; pub use player_type::Player; @@ -92,7 +90,6 @@ pub struct DbUpdate { nearby_players: __sdk::TableUpdate, player: __sdk::TableUpdate, player_level: __sdk::TableUpdate, - player_location: __sdk::TableUpdate, players_at_level_0: __sdk::TableUpdate, } @@ -115,9 +112,6 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { "player_level" => db_update .player_level .append(player_level_table::parse_table_update(table_update)?), - "player_location" => db_update - .player_location - .append(player_location_table::parse_table_update(table_update)?), "players_at_level_0" => db_update .players_at_level_0 .append(players_at_level_0_table::parse_table_update(table_update)?), @@ -143,7 +137,6 @@ impl __sdk::DbUpdate for DbUpdate { .apply_diff_to_table::("player", &self.player) .with_updates_by_pk(|row| &row.entity_id); diff.player_level = cache.apply_diff_to_table::("player_level", &self.player_level); - diff.player_location = cache.apply_diff_to_table::("player_location", &self.player_location); diff.my_player = cache.apply_diff_to_table::("my_player", &self.my_player); diff.my_player_and_level = cache.apply_diff_to_table::("my_player_and_level", &self.my_player_and_level); @@ -171,9 +164,6 @@ impl __sdk::DbUpdate for DbUpdate { "player_level" => db_update .player_level .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "player_location" => db_update - .player_location - .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "players_at_level_0" => db_update .players_at_level_0 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), @@ -203,9 +193,6 @@ impl __sdk::DbUpdate for DbUpdate { "player_level" => db_update .player_level .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "player_location" => db_update - .player_location - .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "players_at_level_0" => db_update .players_at_level_0 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), @@ -227,7 +214,6 @@ pub struct AppliedDiff<'r> { nearby_players: __sdk::TableAppliedDiff<'r, PlayerLocation>, player: __sdk::TableAppliedDiff<'r, Player>, player_level: __sdk::TableAppliedDiff<'r, PlayerLevel>, - player_location: __sdk::TableAppliedDiff<'r, PlayerLocation>, players_at_level_0: __sdk::TableAppliedDiff<'r, Player>, __unused: std::marker::PhantomData<&'r ()>, } @@ -243,7 +229,6 @@ impl<'r> __sdk::AppliedDiff<'r> for AppliedDiff<'r> { callbacks.invoke_table_row_callbacks::("nearby_players", &self.nearby_players, event); callbacks.invoke_table_row_callbacks::("player", &self.player, event); callbacks.invoke_table_row_callbacks::("player_level", &self.player_level, event); - callbacks.invoke_table_row_callbacks::("player_location", &self.player_location, event); callbacks.invoke_table_row_callbacks::("players_at_level_0", &self.players_at_level_0, event); } } @@ -514,7 +499,7 @@ impl< } /// An [`__sdk::DbContext`] augmented with a [`__sdk::Event`], -/// passed to [`__sdk::Table::on_insert`], [`__sdk::Table::on_delete`] and [`__sdk::TableWithPrimaryKey::on_update`] callbacks. +/// passed to [`__sdk::WithInsert::on_insert`], [`__sdk::WithDelete::on_delete`] and [`__sdk::WithUpdate::on_update`] callbacks. pub struct EventContext { /// Access to tables defined by the module via extension traits implemented for [`RemoteTables`]. pub db: RemoteTables, @@ -907,7 +892,6 @@ impl __sdk::SpacetimeModule for RemoteModule { nearby_players_table::register_table(client_cache); player_table::register_table(client_cache); player_level_table::register_table(client_cache); - player_location_table::register_table(client_cache); players_at_level_0_table::register_table(client_cache); } const ALL_TABLE_NAMES: &'static [&'static str] = &[ @@ -916,7 +900,6 @@ impl __sdk::SpacetimeModule for RemoteModule { "nearby_players", "player", "player_level", - "player_location", "players_at_level_0", ]; } diff --git a/sdks/rust/tests/view-client/src/module_bindings/my_player_and_level_table.rs b/sdks/rust/tests/view-client/src/module_bindings/my_player_and_level_table.rs index ac0ac773bdc..65cd6ff9f24 100644 --- a/sdks/rust/tests/view-client/src/module_bindings/my_player_and_level_table.rs +++ b/sdks/rust/tests/view-client/src/module_bindings/my_player_and_level_table.rs @@ -40,7 +40,7 @@ impl MyPlayerAndLevelTableAccess for super::RemoteTables { pub struct MyPlayerAndLevelInsertCallbackId(__sdk::CallbackId); pub struct MyPlayerAndLevelDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for MyPlayerAndLevelTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for MyPlayerAndLevelTableHandle<'ctx> { type Row = PlayerAndLevel; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for MyPlayerAndLevelTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for MyPlayerAndLevelTableHandle<'ctx> { type InsertCallbackId = MyPlayerAndLevelInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for MyPlayerAndLevelTableHandle<'ctx> { fn remove_on_insert(&self, callback: MyPlayerAndLevelInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for MyPlayerAndLevelTableHandle<'ctx> { type DeleteCallbackId = MyPlayerAndLevelDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for MyPlayerAndLevelTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for MyPlayerAndLevelTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("my_player_and_level"); diff --git a/sdks/rust/tests/view-client/src/module_bindings/my_player_table.rs b/sdks/rust/tests/view-client/src/module_bindings/my_player_table.rs index ddb0d624e15..464c70748fa 100644 --- a/sdks/rust/tests/view-client/src/module_bindings/my_player_table.rs +++ b/sdks/rust/tests/view-client/src/module_bindings/my_player_table.rs @@ -40,7 +40,7 @@ impl MyPlayerTableAccess for super::RemoteTables { pub struct MyPlayerInsertCallbackId(__sdk::CallbackId); pub struct MyPlayerDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for MyPlayerTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for MyPlayerTableHandle<'ctx> { type Row = Player; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for MyPlayerTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for MyPlayerTableHandle<'ctx> { type InsertCallbackId = MyPlayerInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for MyPlayerTableHandle<'ctx> { fn remove_on_insert(&self, callback: MyPlayerInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for MyPlayerTableHandle<'ctx> { type DeleteCallbackId = MyPlayerDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for MyPlayerTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for MyPlayerTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("my_player"); diff --git a/sdks/rust/tests/view-client/src/module_bindings/nearby_players_table.rs b/sdks/rust/tests/view-client/src/module_bindings/nearby_players_table.rs index 9ecc2f275fe..fa2322fefcc 100644 --- a/sdks/rust/tests/view-client/src/module_bindings/nearby_players_table.rs +++ b/sdks/rust/tests/view-client/src/module_bindings/nearby_players_table.rs @@ -40,7 +40,7 @@ impl NearbyPlayersTableAccess for super::RemoteTables { pub struct NearbyPlayersInsertCallbackId(__sdk::CallbackId); pub struct NearbyPlayersDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for NearbyPlayersTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for NearbyPlayersTableHandle<'ctx> { type Row = PlayerLocation; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for NearbyPlayersTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for NearbyPlayersTableHandle<'ctx> { type InsertCallbackId = NearbyPlayersInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for NearbyPlayersTableHandle<'ctx> { fn remove_on_insert(&self, callback: NearbyPlayersInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for NearbyPlayersTableHandle<'ctx> { type DeleteCallbackId = NearbyPlayersDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for NearbyPlayersTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for NearbyPlayersTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("nearby_players"); diff --git a/sdks/rust/tests/view-client/src/module_bindings/player_level_table.rs b/sdks/rust/tests/view-client/src/module_bindings/player_level_table.rs index 2f092d15467..a825ff7d183 100644 --- a/sdks/rust/tests/view-client/src/module_bindings/player_level_table.rs +++ b/sdks/rust/tests/view-client/src/module_bindings/player_level_table.rs @@ -40,7 +40,7 @@ impl PlayerLevelTableAccess for super::RemoteTables { pub struct PlayerLevelInsertCallbackId(__sdk::CallbackId); pub struct PlayerLevelDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PlayerLevelTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PlayerLevelTableHandle<'ctx> { type Row = PlayerLevel; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PlayerLevelTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PlayerLevelTableHandle<'ctx> { type InsertCallbackId = PlayerLevelInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PlayerLevelTableHandle<'ctx> { fn remove_on_insert(&self, callback: PlayerLevelInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PlayerLevelTableHandle<'ctx> { type DeleteCallbackId = PlayerLevelDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for PlayerLevelTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PlayerLevelTableHandle<'ctx> {} + /// Access to the `entity_id` unique index on the table `player_level`, /// which allows point queries on the field of the same name /// via the [`PlayerLevelEntityIdUnique::find`] method. diff --git a/sdks/rust/tests/view-client/src/module_bindings/player_location_table.rs b/sdks/rust/tests/view-client/src/module_bindings/player_location_table.rs deleted file mode 100644 index 6114b8bc3b5..00000000000 --- a/sdks/rust/tests/view-client/src/module_bindings/player_location_table.rs +++ /dev/null @@ -1,142 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::player_location_type::PlayerLocation; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `player_location`. -/// -/// Obtain a handle from the [`PlayerLocationTableAccess::player_location`] method on [`super::RemoteTables`], -/// like `ctx.db.player_location()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.player_location().on_insert(...)`. -pub struct PlayerLocationTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `player_location`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait PlayerLocationTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`PlayerLocationTableHandle`], which mediates access to the table `player_location`. - fn player_location(&self) -> PlayerLocationTableHandle<'_>; -} - -impl PlayerLocationTableAccess for super::RemoteTables { - fn player_location(&self) -> PlayerLocationTableHandle<'_> { - PlayerLocationTableHandle { - imp: self.imp.get_table::("player_location"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct PlayerLocationInsertCallbackId(__sdk::CallbackId); -pub struct PlayerLocationDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for PlayerLocationTableHandle<'ctx> { - type Row = PlayerLocation; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = PlayerLocationInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PlayerLocationInsertCallbackId { - PlayerLocationInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: PlayerLocationInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = PlayerLocationDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> PlayerLocationDeleteCallbackId { - PlayerLocationDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: PlayerLocationDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -/// Access to the `entity_id` unique index on the table `player_location`, -/// which allows point queries on the field of the same name -/// via the [`PlayerLocationEntityIdUnique::find`] method. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.player_location().entity_id().find(...)`. -pub struct PlayerLocationEntityIdUnique<'ctx> { - imp: __sdk::UniqueConstraintHandle, - phantom: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -impl<'ctx> PlayerLocationTableHandle<'ctx> { - /// Get a handle on the `entity_id` unique index on the table `player_location`. - pub fn entity_id(&self) -> PlayerLocationEntityIdUnique<'ctx> { - PlayerLocationEntityIdUnique { - imp: self.imp.get_unique_constraint::("entity_id"), - phantom: std::marker::PhantomData, - } - } -} - -impl<'ctx> PlayerLocationEntityIdUnique<'ctx> { - /// Find the subscribed row whose `entity_id` column value is equal to `col_val`, - /// if such a row is present in the client cache. - pub fn find(&self, col_val: &u64) -> Option { - self.imp.find(col_val) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("player_location"); - _table.add_unique_constraint::("entity_id", |row| &row.entity_id); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `PlayerLocation`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait player_locationQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `PlayerLocation`. - fn player_location(&self) -> __sdk::__query_builder::Table; -} - -impl player_locationQueryTableAccess for __sdk::QueryTableAccessor { - fn player_location(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("player_location") - } -} diff --git a/sdks/rust/tests/view-client/src/module_bindings/player_table.rs b/sdks/rust/tests/view-client/src/module_bindings/player_table.rs index 1214943ef52..db5aecfbaf3 100644 --- a/sdks/rust/tests/view-client/src/module_bindings/player_table.rs +++ b/sdks/rust/tests/view-client/src/module_bindings/player_table.rs @@ -40,7 +40,7 @@ impl PlayerTableAccess for super::RemoteTables { pub struct PlayerInsertCallbackId(__sdk::CallbackId); pub struct PlayerDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PlayerTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PlayerTableHandle<'ctx> { type Row = Player; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PlayerTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PlayerTableHandle<'ctx> { type InsertCallbackId = PlayerInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PlayerTableHandle<'ctx> { fn remove_on_insert(&self, callback: PlayerInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PlayerTableHandle<'ctx> { type DeleteCallbackId = PlayerDeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PlayerTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PlayerTableHandle<'ctx> {} + pub struct PlayerUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PlayerTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PlayerTableHandle<'ctx> { type UpdateCallbackId = PlayerUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PlayerTableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PlayerTableHandle<'ctx> {} + /// Access to the `entity_id` unique index on the table `player`, /// which allows point queries on the field of the same name /// via the [`PlayerEntityIdUnique::find`] method. diff --git a/sdks/rust/tests/view-client/src/module_bindings/players_at_level_0_table.rs b/sdks/rust/tests/view-client/src/module_bindings/players_at_level_0_table.rs index 57c3ae723eb..827c95bc771 100644 --- a/sdks/rust/tests/view-client/src/module_bindings/players_at_level_0_table.rs +++ b/sdks/rust/tests/view-client/src/module_bindings/players_at_level_0_table.rs @@ -40,7 +40,7 @@ impl PlayersAtLevel0TableAccess for super::RemoteTables { pub struct PlayersAtLevel0InsertCallbackId(__sdk::CallbackId); pub struct PlayersAtLevel0DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PlayersAtLevel0TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PlayersAtLevel0TableHandle<'ctx> { type Row = Player; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PlayersAtLevel0TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PlayersAtLevel0TableHandle<'ctx> { type InsertCallbackId = PlayersAtLevel0InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PlayersAtLevel0TableHandle<'ctx> { fn remove_on_insert(&self, callback: PlayersAtLevel0InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PlayersAtLevel0TableHandle<'ctx> { type DeleteCallbackId = PlayersAtLevel0DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for PlayersAtLevel0TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PlayersAtLevel0TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("players_at_level_0"); diff --git a/sdks/rust/tests/view-pk-client/src/module_bindings/all_view_pk_players_table.rs b/sdks/rust/tests/view-pk-client/src/module_bindings/all_view_pk_players_table.rs index 4a64417bb6a..57f18185427 100644 --- a/sdks/rust/tests/view-pk-client/src/module_bindings/all_view_pk_players_table.rs +++ b/sdks/rust/tests/view-pk-client/src/module_bindings/all_view_pk_players_table.rs @@ -40,7 +40,7 @@ impl AllViewPkPlayersTableAccess for super::RemoteTables { pub struct AllViewPkPlayersInsertCallbackId(__sdk::CallbackId); pub struct AllViewPkPlayersDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for AllViewPkPlayersTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for AllViewPkPlayersTableHandle<'ctx> { type Row = ViewPkPlayer; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for AllViewPkPlayersTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for AllViewPkPlayersTableHandle<'ctx> { type InsertCallbackId = AllViewPkPlayersInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for AllViewPkPlayersTableHandle<'ctx> { fn remove_on_insert(&self, callback: AllViewPkPlayersInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for AllViewPkPlayersTableHandle<'ctx> { type DeleteCallbackId = AllViewPkPlayersDeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for AllViewPkPlayersTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for AllViewPkPlayersTableHandle<'ctx> {} + pub struct AllViewPkPlayersUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for AllViewPkPlayersTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for AllViewPkPlayersTableHandle<'ctx> { type UpdateCallbackId = AllViewPkPlayersUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for AllViewPkPlayersTableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for AllViewPkPlayersTableHandle<'ctx> {} + /// Access to the `id` unique index on the table `all_view_pk_players`, /// which allows point queries on the field of the same name /// via the [`AllViewPkPlayersIdUnique::find`] method. diff --git a/sdks/rust/tests/view-pk-client/src/module_bindings/mod.rs b/sdks/rust/tests/view-pk-client/src/module_bindings/mod.rs index 04ee8aedb08..0e2c4c7ec89 100644 --- a/sdks/rust/tests/view-pk-client/src/module_bindings/mod.rs +++ b/sdks/rust/tests/view-pk-client/src/module_bindings/mod.rs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 2.0.5 (commit ca7484e072f9514fb2f890f26600a5d096f59431). +// This was generated using spacetimedb cli version 2.1.0 (commit aa84d00c80f19e20a89d7cb52b3470e59e844168). #![allow(unused, clippy::all)] use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; @@ -538,7 +538,7 @@ impl< } /// An [`__sdk::DbContext`] augmented with a [`__sdk::Event`], -/// passed to [`__sdk::Table::on_insert`], [`__sdk::Table::on_delete`] and [`__sdk::TableWithPrimaryKey::on_update`] callbacks. +/// passed to [`__sdk::WithInsert::on_insert`], [`__sdk::WithDelete::on_delete`] and [`__sdk::WithUpdate::on_update`] callbacks. pub struct EventContext { /// Access to tables defined by the module via extension traits implemented for [`RemoteTables`]. pub db: RemoteTables, diff --git a/sdks/rust/tests/view-pk-client/src/module_bindings/sender_view_pk_players_a_table.rs b/sdks/rust/tests/view-pk-client/src/module_bindings/sender_view_pk_players_a_table.rs index a052c0291d2..08c3ff3d0e2 100644 --- a/sdks/rust/tests/view-pk-client/src/module_bindings/sender_view_pk_players_a_table.rs +++ b/sdks/rust/tests/view-pk-client/src/module_bindings/sender_view_pk_players_a_table.rs @@ -40,7 +40,7 @@ impl SenderViewPkPlayersATableAccess for super::RemoteTables { pub struct SenderViewPkPlayersAInsertCallbackId(__sdk::CallbackId); pub struct SenderViewPkPlayersADeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for SenderViewPkPlayersATableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for SenderViewPkPlayersATableHandle<'ctx> { type Row = ViewPkPlayer; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for SenderViewPkPlayersATableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for SenderViewPkPlayersATableHandle<'ctx> { type InsertCallbackId = SenderViewPkPlayersAInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for SenderViewPkPlayersATableHandle<'ctx> { fn remove_on_insert(&self, callback: SenderViewPkPlayersAInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for SenderViewPkPlayersATableHandle<'ctx> { type DeleteCallbackId = SenderViewPkPlayersADeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for SenderViewPkPlayersATableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for SenderViewPkPlayersATableHandle<'ctx> {} + pub struct SenderViewPkPlayersAUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for SenderViewPkPlayersATableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for SenderViewPkPlayersATableHandle<'ctx> { type UpdateCallbackId = SenderViewPkPlayersAUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for SenderViewPkPlayersATableHandle<'ctx> } } +impl<'ctx> __sdk::TableWithPrimaryKey for SenderViewPkPlayersATableHandle<'ctx> {} + /// Access to the `id` unique index on the table `sender_view_pk_players_a`, /// which allows point queries on the field of the same name /// via the [`SenderViewPkPlayersAIdUnique::find`] method. diff --git a/sdks/rust/tests/view-pk-client/src/module_bindings/sender_view_pk_players_b_table.rs b/sdks/rust/tests/view-pk-client/src/module_bindings/sender_view_pk_players_b_table.rs index cdb82a39446..e720806654d 100644 --- a/sdks/rust/tests/view-pk-client/src/module_bindings/sender_view_pk_players_b_table.rs +++ b/sdks/rust/tests/view-pk-client/src/module_bindings/sender_view_pk_players_b_table.rs @@ -40,7 +40,7 @@ impl SenderViewPkPlayersBTableAccess for super::RemoteTables { pub struct SenderViewPkPlayersBInsertCallbackId(__sdk::CallbackId); pub struct SenderViewPkPlayersBDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for SenderViewPkPlayersBTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for SenderViewPkPlayersBTableHandle<'ctx> { type Row = ViewPkPlayer; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for SenderViewPkPlayersBTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for SenderViewPkPlayersBTableHandle<'ctx> { type InsertCallbackId = SenderViewPkPlayersBInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for SenderViewPkPlayersBTableHandle<'ctx> { fn remove_on_insert(&self, callback: SenderViewPkPlayersBInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for SenderViewPkPlayersBTableHandle<'ctx> { type DeleteCallbackId = SenderViewPkPlayersBDeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for SenderViewPkPlayersBTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for SenderViewPkPlayersBTableHandle<'ctx> {} + pub struct SenderViewPkPlayersBUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for SenderViewPkPlayersBTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for SenderViewPkPlayersBTableHandle<'ctx> { type UpdateCallbackId = SenderViewPkPlayersBUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for SenderViewPkPlayersBTableHandle<'ctx> } } +impl<'ctx> __sdk::TableWithPrimaryKey for SenderViewPkPlayersBTableHandle<'ctx> {} + /// Access to the `id` unique index on the table `sender_view_pk_players_b`, /// which allows point queries on the field of the same name /// via the [`SenderViewPkPlayersBIdUnique::find`] method. diff --git a/sdks/rust/tests/view-pk-client/src/module_bindings/view_pk_membership_secondary_table.rs b/sdks/rust/tests/view-pk-client/src/module_bindings/view_pk_membership_secondary_table.rs index f7f49d58b73..2121000de5a 100644 --- a/sdks/rust/tests/view-pk-client/src/module_bindings/view_pk_membership_secondary_table.rs +++ b/sdks/rust/tests/view-pk-client/src/module_bindings/view_pk_membership_secondary_table.rs @@ -42,7 +42,7 @@ impl ViewPkMembershipSecondaryTableAccess for super::RemoteTables { pub struct ViewPkMembershipSecondaryInsertCallbackId(__sdk::CallbackId); pub struct ViewPkMembershipSecondaryDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for ViewPkMembershipSecondaryTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for ViewPkMembershipSecondaryTableHandle<'ctx> { type Row = ViewPkMembershipSecondary; type EventContext = super::EventContext; @@ -52,7 +52,9 @@ impl<'ctx> __sdk::Table for ViewPkMembershipSecondaryTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for ViewPkMembershipSecondaryTableHandle<'ctx> { type InsertCallbackId = ViewPkMembershipSecondaryInsertCallbackId; fn on_insert( @@ -65,7 +67,9 @@ impl<'ctx> __sdk::Table for ViewPkMembershipSecondaryTableHandle<'ctx> { fn remove_on_insert(&self, callback: ViewPkMembershipSecondaryInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for ViewPkMembershipSecondaryTableHandle<'ctx> { type DeleteCallbackId = ViewPkMembershipSecondaryDeleteCallbackId; fn on_delete( @@ -80,9 +84,11 @@ impl<'ctx> __sdk::Table for ViewPkMembershipSecondaryTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for ViewPkMembershipSecondaryTableHandle<'ctx> {} + pub struct ViewPkMembershipSecondaryUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for ViewPkMembershipSecondaryTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for ViewPkMembershipSecondaryTableHandle<'ctx> { type UpdateCallbackId = ViewPkMembershipSecondaryUpdateCallbackId; fn on_update( @@ -97,6 +103,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for ViewPkMembershipSecondaryTableHandle<' } } +impl<'ctx> __sdk::TableWithPrimaryKey for ViewPkMembershipSecondaryTableHandle<'ctx> {} + /// Access to the `id` unique index on the table `view_pk_membership_secondary`, /// which allows point queries on the field of the same name /// via the [`ViewPkMembershipSecondaryIdUnique::find`] method. diff --git a/sdks/rust/tests/view-pk-client/src/module_bindings/view_pk_membership_table.rs b/sdks/rust/tests/view-pk-client/src/module_bindings/view_pk_membership_table.rs index bc491cad1bf..e2b9dd58ccc 100644 --- a/sdks/rust/tests/view-pk-client/src/module_bindings/view_pk_membership_table.rs +++ b/sdks/rust/tests/view-pk-client/src/module_bindings/view_pk_membership_table.rs @@ -40,7 +40,7 @@ impl ViewPkMembershipTableAccess for super::RemoteTables { pub struct ViewPkMembershipInsertCallbackId(__sdk::CallbackId); pub struct ViewPkMembershipDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for ViewPkMembershipTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for ViewPkMembershipTableHandle<'ctx> { type Row = ViewPkMembership; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for ViewPkMembershipTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for ViewPkMembershipTableHandle<'ctx> { type InsertCallbackId = ViewPkMembershipInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for ViewPkMembershipTableHandle<'ctx> { fn remove_on_insert(&self, callback: ViewPkMembershipInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for ViewPkMembershipTableHandle<'ctx> { type DeleteCallbackId = ViewPkMembershipDeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for ViewPkMembershipTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for ViewPkMembershipTableHandle<'ctx> {} + pub struct ViewPkMembershipUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for ViewPkMembershipTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for ViewPkMembershipTableHandle<'ctx> { type UpdateCallbackId = ViewPkMembershipUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for ViewPkMembershipTableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for ViewPkMembershipTableHandle<'ctx> {} + /// Access to the `id` unique index on the table `view_pk_membership`, /// which allows point queries on the field of the same name /// via the [`ViewPkMembershipIdUnique::find`] method. diff --git a/sdks/rust/tests/view-pk-client/src/module_bindings/view_pk_player_table.rs b/sdks/rust/tests/view-pk-client/src/module_bindings/view_pk_player_table.rs index 6a5db875df9..06ace456731 100644 --- a/sdks/rust/tests/view-pk-client/src/module_bindings/view_pk_player_table.rs +++ b/sdks/rust/tests/view-pk-client/src/module_bindings/view_pk_player_table.rs @@ -40,7 +40,7 @@ impl ViewPkPlayerTableAccess for super::RemoteTables { pub struct ViewPkPlayerInsertCallbackId(__sdk::CallbackId); pub struct ViewPkPlayerDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for ViewPkPlayerTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for ViewPkPlayerTableHandle<'ctx> { type Row = ViewPkPlayer; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for ViewPkPlayerTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for ViewPkPlayerTableHandle<'ctx> { type InsertCallbackId = ViewPkPlayerInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for ViewPkPlayerTableHandle<'ctx> { fn remove_on_insert(&self, callback: ViewPkPlayerInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for ViewPkPlayerTableHandle<'ctx> { type DeleteCallbackId = ViewPkPlayerDeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for ViewPkPlayerTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for ViewPkPlayerTableHandle<'ctx> {} + pub struct ViewPkPlayerUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for ViewPkPlayerTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for ViewPkPlayerTableHandle<'ctx> { type UpdateCallbackId = ViewPkPlayerUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for ViewPkPlayerTableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for ViewPkPlayerTableHandle<'ctx> {} + /// Access to the `id` unique index on the table `view_pk_player`, /// which allows point queries on the field of the same name /// via the [`ViewPkPlayerIdUnique::find`] method. diff --git a/templates/basic-rs/Cargo.lock b/templates/basic-rs/Cargo.lock new file mode 100644 index 00000000000..301013aaecc --- /dev/null +++ b/templates/basic-rs/Cargo.lock @@ -0,0 +1,2653 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "once_cell", + "version_check", + "zerocopy", +] + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "anymap3" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "170433209e817da6aae2c51aa0dd443009a613425dd041ebfb2492d1c4c11a25" + +[[package]] +name = "approx" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0e60b75072ecd4168020818c0107f2857bb6c4e64252d8d3983f6263b40a5c3" +dependencies = [ + "num-traits", +] + +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bitflags" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" + +[[package]] +name = "blake3" +version = "1.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d2d5991425dfd0785aed03aedcf0b321d61975c9b5b3689c774a2610ae0b51e" +dependencies = [ + "arrayref", + "arrayvec", + "cc", + "cfg-if", + "constant_time_eq", + "cpufeatures 0.3.0", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "brotli" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d640d25bc63c50fb1f0b545ffd80207d2e10a4c965530809b40ba3386825c391" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "2.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e2e4afe60d7dd600fdd3de8d0f08c2b7ec039712e3b6137ff98b7004e82de4f" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bumpalo" +version = "3.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + +[[package]] +name = "bytemuck" +version = "1.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" + +[[package]] +name = "bytestring" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "113b4343b5f6617e7ad401ced8de3cc8b012e73a594347c307b90db3e9271289" +dependencies = [ + "bytes", + "serde_core", +] + +[[package]] +name = "castaway" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dec551ab6e7578819132c713a93c022a05d60159dc86e7a7050223577484c55a" +dependencies = [ + "rustversion", +] + +[[package]] +name = "cc" +version = "1.2.60" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43c5703da9466b66a946814e1adf53ea2c90f10063b86290cc9eb67ce3478a20" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "chrono" +version = "0.4.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" +dependencies = [ + "iana-time-zone", + "num-traits", + "serde", + "windows-link", +] + +[[package]] +name = "console" +version = "0.16.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d64e8af5551369d19cf50138de61f1c42074ab970f74e99be916646777f8fc87" +dependencies = [ + "encode_unicode", + "libc", + "windows-sys", +] + +[[package]] +name = "constant_time_eq" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" + +[[package]] +name = "convert_case" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" + +[[package]] +name = "convert_case" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-queue" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f58bbc28f91df819d0aa2a2c00cd19754769c2fad90579b3592b1c9ba7a3115" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "darling" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn", +] + +[[package]] +name = "darling_macro" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" +dependencies = [ + "darling_core", + "quote", + "syn", +] + +[[package]] +name = "data-encoding" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea" + +[[package]] +name = "decorum" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "281759d3c8a14f5c3f0c49363be56810fcd7f910422f97f2db850c2920fde5cf" +dependencies = [ + "approx", + "num-traits", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "powerfmt", + "serde_core", +] + +[[package]] +name = "derive_more" +version = "0.99.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6edb4b64a43d977b8e99788fe3a04d483834fba1215a7e02caa415b626497f7f" +dependencies = [ + "convert_case 0.4.0", + "proc-macro2", + "quote", + "rustc_version", + "syn", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "either" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" + +[[package]] +name = "encode_unicode" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" + +[[package]] +name = "enum-as-inner" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1e6a265c649f3f5979b601d26f1d05ada116434c87741c9493cb56218f76cbc" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "enum-map" +version = "2.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6866f3bfdf8207509a033af1a75a7b08abda06bbaaeae6669323fd5a097df2e9" +dependencies = [ + "enum-map-derive", +] + +[[package]] +name = "enum-map-derive" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f282cfdfe92516eb26c2af8589c274c7c17681f5ecc03c18255fe741c6aa64eb" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys", +] + +[[package]] +name = "ethnum" +version = "1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca81e6b4777c89fd810c25a4be2b1bd93ea034fbe58e6a75216a34c6b82c539b" +dependencies = [ + "serde", +] + +[[package]] +name = "fastrand" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6" + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "fixedbitset" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-executor" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + +[[package]] +name = "futures-macro" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "futures-sink" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", + "wasip2", + "wasip3", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "equivalent", + "rayon", + "serde", + "serde_core", +] + +[[package]] +name = "hashbrown" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f467dd6dccf739c208452f8014c75c18bb8301b050ad1cfb27153803edb0f51" + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "home" +version = "0.5.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d" +dependencies = [ + "windows-sys", +] + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "humantime" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "135b12329e5e3ce057a9f972339ea52bc954fe1e9358ef27f95e89716fbc5424" + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "icu_collections" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" + +[[package]] +name = "icu_properties" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" + +[[package]] +name = "icu_provider" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" +dependencies = [ + "equivalent", + "hashbrown 0.17.0", + "serde", + "serde_core", +] + +[[package]] +name = "insta" +version = "1.47.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b4a6248eb93a4401ed2f37dfe8ea592d3cf05b7cf4f8efa867b6895af7e094e" +dependencies = [ + "console", + "once_cell", + "regex", + "serde", + "similar", + "tempfile", + "toml_edit", + "toml_writer", +] + +[[package]] +name = "itertools" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "js-sys" +version = "0.3.94" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e04e2ef80ce82e13552136fabeef8a5ed1f985a96805761cbb9a2c34e7664d9" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "keccak" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb26cec98cce3a3d96cbb7bced3c4b16e3d13f27ec56dbd62cbc8f39cfb9d653" +dependencies = [ + "cpufeatures 0.2.17", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "lean_string" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a262b6ae1dd9c2d3cf7977a816578b03bf8fb60b61545c395880f95eefc5b24" +dependencies = [ + "castaway", + "itoa", + "ryu", +] + +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + +[[package]] +name = "libc" +version = "0.2.184" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48f5d2a454e16a5ea0f4ced81bd44e4cfc7bd3a507b61887c99fd3538b28e4af" + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1" +dependencies = [ + "libc", + "wasi", + "windows-sys", +] + +[[package]] +name = "native-tls" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + +[[package]] +name = "nohash-hasher" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" + +[[package]] +name = "num-conv" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6673768db2d862beb9b39a78fdcb1a69439615d5794a1be50caa9bc92c81967" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "openssl" +version = "0.10.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "951c002c75e16ea2c65b8c7e4d3d51d5530d8dfa7d060b4776828c88cfb18ecf" +dependencies = [ + "bitflags", + "cfg-if", + "foreign-types", + "libc", + "once_cell", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "openssl-probe" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" + +[[package]] +name = "openssl-sys" +version = "0.9.112" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57d55af3b3e226502be1526dfdba67ab0e9c96fc293004e79576b2b9edb0dbdb" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "petgraph" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" +dependencies = [ + "fixedbitset", + "indexmap 2.14.0", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pkg-config" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" + +[[package]] +name = "potential_utf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "prometheus" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ca5326d8d0b950a9acd87e6a3f94745394f62e4dae1b1ee22b2bc0c394af43a" +dependencies = [ + "cfg-if", + "fnv", + "lazy_static", + "memchr", + "parking_lot", + "protobuf", + "thiserror 2.0.18", +] + +[[package]] +name = "protobuf" +version = "3.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d65a1d4ddae7d8b5de68153b48f6aa3bba8cb002b243dbdbc55a5afbc98f99f4" +dependencies = [ + "once_cell", + "protobuf-support", + "thiserror 1.0.69", +] + +[[package]] +name = "protobuf-support" +version = "3.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e36c2f31e0a47f9280fb347ef5e461ffcd2c52dd520d8e216b52f93b0b0d7d6" +dependencies = [ + "thiserror 1.0.69", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + +[[package]] +name = "rayon" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "ref-cast" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "regex" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "schannel" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +dependencies = [ + "windows-sys", +] + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "second-stack" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4904c83c6e51f1b9b08bfa5a86f35a51798e8307186e6f5513852210a219c0bb" + +[[package]] +name = "security-framework" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" +dependencies = [ + "bitflags", + "core-foundation", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_spanned" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_with" +version = "3.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd5414fad8e6907dbdd5bc441a50ae8d6e26151a03b1de04d89a5576de61d01f" +dependencies = [ + "base64 0.22.1", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.14.0", + "schemars 0.9.0", + "schemars 1.2.1", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3db8978e608f1fe7357e211969fd9abdcae80bac1ba7a3369bb7eb6b404eb65" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "sha1" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "digest", +] + +[[package]] +name = "sha3" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" +dependencies = [ + "digest", + "keccak", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214" + +[[package]] +name = "similar" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" +dependencies = [ + "libc", + "windows-sys", +] + +[[package]] +name = "spacetimedb-bindings-macro" +version = "2.1.0" +dependencies = [ + "heck 0.4.1", + "humantime", + "proc-macro2", + "quote", + "spacetimedb-primitives", + "syn", +] + +[[package]] +name = "spacetimedb-client" +version = "0.1.0" +dependencies = [ + "spacetimedb-sdk", +] + +[[package]] +name = "spacetimedb-client-api-messages" +version = "2.1.0" +dependencies = [ + "bytes", + "bytestring", + "chrono", + "derive_more", + "enum-as-inner", + "serde", + "serde_json", + "serde_with", + "smallvec", + "spacetimedb-lib", + "spacetimedb-primitives", + "spacetimedb-sats", + "strum", + "thiserror 1.0.69", +] + +[[package]] +name = "spacetimedb-data-structures" +version = "2.1.0" +dependencies = [ + "ahash", + "crossbeam-queue", + "either", + "hashbrown 0.16.1", + "nohash-hasher", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "spacetimedb-lib" +version = "2.1.0" +dependencies = [ + "anyhow", + "bitflags", + "blake3", + "chrono", + "derive_more", + "enum-as-inner", + "enum-map", + "hex", + "itertools", + "log", + "serde", + "spacetimedb-bindings-macro", + "spacetimedb-metrics", + "spacetimedb-primitives", + "spacetimedb-sats", + "thiserror 1.0.69", +] + +[[package]] +name = "spacetimedb-memory-usage" +version = "2.1.0" +dependencies = [ + "decorum", + "ethnum", +] + +[[package]] +name = "spacetimedb-metrics" +version = "2.1.0" +dependencies = [ + "arrayvec", + "itertools", + "paste", + "prometheus", +] + +[[package]] +name = "spacetimedb-primitives" +version = "2.1.0" +dependencies = [ + "bitflags", + "either", + "enum-as-inner", + "itertools", + "nohash-hasher", + "spacetimedb-memory-usage", +] + +[[package]] +name = "spacetimedb-query-builder" +version = "2.1.0" +dependencies = [ + "spacetimedb-lib", +] + +[[package]] +name = "spacetimedb-sats" +version = "2.1.0" +dependencies = [ + "anyhow", + "arrayvec", + "bitflags", + "bytemuck", + "bytes", + "bytestring", + "chrono", + "decorum", + "derive_more", + "enum-as-inner", + "ethnum", + "hex", + "itertools", + "lean_string", + "rand", + "second-stack", + "serde", + "sha3", + "smallvec", + "spacetimedb-bindings-macro", + "spacetimedb-memory-usage", + "spacetimedb-metrics", + "spacetimedb-primitives", + "thiserror 1.0.69", + "uuid", +] + +[[package]] +name = "spacetimedb-schema" +version = "2.1.0" +dependencies = [ + "anyhow", + "convert_case 0.6.0", + "derive_more", + "enum-as-inner", + "enum-map", + "indexmap 2.14.0", + "insta", + "itertools", + "lazy_static", + "lean_string", + "petgraph", + "serde_json", + "smallvec", + "spacetimedb-data-structures", + "spacetimedb-lib", + "spacetimedb-memory-usage", + "spacetimedb-primitives", + "spacetimedb-sats", + "spacetimedb-sql-parser", + "termcolor", + "thiserror 1.0.69", + "unicode-ident", + "unicode-normalization", +] + +[[package]] +name = "spacetimedb-sdk" +version = "2.1.0" +dependencies = [ + "anymap3", + "base64 0.21.7", + "brotli", + "bytes", + "flate2", + "futures", + "futures-channel", + "home", + "http", + "log", + "native-tls", + "once_cell", + "prometheus", + "rand", + "spacetimedb-client-api-messages", + "spacetimedb-data-structures", + "spacetimedb-lib", + "spacetimedb-metrics", + "spacetimedb-query-builder", + "spacetimedb-sats", + "spacetimedb-schema", + "thiserror 1.0.69", + "tokio", + "tokio-tungstenite", +] + +[[package]] +name = "spacetimedb-sql-parser" +version = "2.1.0" +dependencies = [ + "derive_more", + "spacetimedb-lib", + "sqlparser", + "thiserror 1.0.69", +] + +[[package]] +name = "sqlparser" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0272b7bb0a225320170c99901b4b5fb3a4384e255a7f2cc228f61e2ba3893e75" +dependencies = [ + "log", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "strum" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.25.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23dc1fa9ac9c169a78ba62f0b841814b7abae11bdd047b9c58f893439e309ea0" +dependencies = [ + "heck 0.4.1", + "proc-macro2", + "quote", + "rustversion", + "syn", +] + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.2", + "once_cell", + "rustix", + "windows-sys", +] + +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "time" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.51.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f66bf9585cda4b724d3e78ab34b73fb2bbaba9011b9bfdf69dc836382ea13b8c" +dependencies = [ + "bytes", + "libc", + "mio", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys", +] + +[[package]] +name = "tokio-macros" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tokio-native-tls" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" +dependencies = [ + "native-tls", + "tokio", +] + +[[package]] +name = "tokio-tungstenite" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "489a59b6730eda1b0171fcfda8b121f4bee2b35cba8645ca35c5f7ba3eb736c1" +dependencies = [ + "futures-util", + "log", + "native-tls", + "tokio", + "tokio-native-tls", + "tungstenite", +] + +[[package]] +name = "toml_datetime" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.25.11+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b59c4d22ed448339746c59b905d24568fcbb3ab65a500494f7b8c3e97739f2b" +dependencies = [ + "indexmap 2.14.0", + "serde_core", + "serde_spanned", + "toml_datetime", + "toml_parser", + "toml_writer", + "winnow", +] + +[[package]] +name = "toml_parser" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526" +dependencies = [ + "winnow", +] + +[[package]] +name = "toml_writer" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db" + +[[package]] +name = "tungstenite" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadc29d668c91fcc564941132e17b28a7ceb2f3ebf0b9dae3e03fd7a6748eb0d" +dependencies = [ + "bytes", + "data-encoding", + "http", + "httparse", + "log", + "native-tls", + "rand", + "sha1", + "thiserror 2.0.18", + "url", + "utf-8", +] + +[[package]] +name = "typenum" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-normalization" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fd4f6878c9cb28d874b009da9e8d183b5abc80117c40bbd187a1fde336be6e8" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-segmentation" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "uuid" +version = "1.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ac8b6f42ead25368cf5b098aeb3dc8a1a2c05a3eee8a9a1a68c640edbfc79d9" +dependencies = [ + "getrandom 0.4.2", +] + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.2+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0551fc1bb415591e3372d0bc4780db7e587d84e2a7e79da121051c5c4b89d0b0" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fbdf9a35adf44786aecd5ff89b4563a90325f9da0923236f6104e603c7e86be" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dca9693ef2bab6d4e6707234500350d8dad079eb508dca05530c85dc3a529ff2" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39129a682a6d2d841b6c429d0c51e5cb0ed1a03829d8b3d1e69a011e62cb3d3b" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap 2.14.0", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags", + "hashbrown 0.15.5", + "indexmap 2.14.0", + "semver", +] + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "winnow" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09dac053f1cd375980747450bfc7250c264eaae0583872e845c0c7cd578872b5" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck 0.5.0", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck 0.5.0", + "indexmap 2.14.0", + "prettyplease", + "syn", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags", + "indexmap 2.14.0", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap 2.14.0", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + +[[package]] +name = "writeable" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" + +[[package]] +name = "yoke" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.8.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zerofrom" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69faa1f2a1ea75661980b013019ed6687ed0e83d069bc1114e2cc74c6c04c4df" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" From c372050a906a217e9fe1f9802212b8206a0b15a7 Mon Sep 17 00:00:00 2001 From: Jeffrey Rooks Date: Fri, 10 Apr 2026 11:18:42 -0400 Subject: [PATCH 5/7] remove lock --- templates/basic-rs/Cargo.lock | 2653 --------------------------------- 1 file changed, 2653 deletions(-) delete mode 100644 templates/basic-rs/Cargo.lock diff --git a/templates/basic-rs/Cargo.lock b/templates/basic-rs/Cargo.lock deleted file mode 100644 index 301013aaecc..00000000000 --- a/templates/basic-rs/Cargo.lock +++ /dev/null @@ -1,2653 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 4 - -[[package]] -name = "adler2" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" - -[[package]] -name = "ahash" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" -dependencies = [ - "cfg-if", - "once_cell", - "version_check", - "zerocopy", -] - -[[package]] -name = "aho-corasick" -version = "1.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" -dependencies = [ - "memchr", -] - -[[package]] -name = "alloc-no-stdlib" -version = "2.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" - -[[package]] -name = "alloc-stdlib" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" -dependencies = [ - "alloc-no-stdlib", -] - -[[package]] -name = "android_system_properties" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" -dependencies = [ - "libc", -] - -[[package]] -name = "anyhow" -version = "1.0.102" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" - -[[package]] -name = "anymap3" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "170433209e817da6aae2c51aa0dd443009a613425dd041ebfb2492d1c4c11a25" - -[[package]] -name = "approx" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0e60b75072ecd4168020818c0107f2857bb6c4e64252d8d3983f6263b40a5c3" -dependencies = [ - "num-traits", -] - -[[package]] -name = "arrayref" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" - -[[package]] -name = "arrayvec" -version = "0.7.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" - -[[package]] -name = "autocfg" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" - -[[package]] -name = "base64" -version = "0.21.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" - -[[package]] -name = "base64" -version = "0.22.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" - -[[package]] -name = "bitflags" -version = "2.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" - -[[package]] -name = "blake3" -version = "1.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d2d5991425dfd0785aed03aedcf0b321d61975c9b5b3689c774a2610ae0b51e" -dependencies = [ - "arrayref", - "arrayvec", - "cc", - "cfg-if", - "constant_time_eq", - "cpufeatures 0.3.0", -] - -[[package]] -name = "block-buffer" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" -dependencies = [ - "generic-array", -] - -[[package]] -name = "brotli" -version = "3.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d640d25bc63c50fb1f0b545ffd80207d2e10a4c965530809b40ba3386825c391" -dependencies = [ - "alloc-no-stdlib", - "alloc-stdlib", - "brotli-decompressor", -] - -[[package]] -name = "brotli-decompressor" -version = "2.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e2e4afe60d7dd600fdd3de8d0f08c2b7ec039712e3b6137ff98b7004e82de4f" -dependencies = [ - "alloc-no-stdlib", - "alloc-stdlib", -] - -[[package]] -name = "bumpalo" -version = "3.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" - -[[package]] -name = "bytemuck" -version = "1.25.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" - -[[package]] -name = "bytes" -version = "1.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" - -[[package]] -name = "bytestring" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "113b4343b5f6617e7ad401ced8de3cc8b012e73a594347c307b90db3e9271289" -dependencies = [ - "bytes", - "serde_core", -] - -[[package]] -name = "castaway" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dec551ab6e7578819132c713a93c022a05d60159dc86e7a7050223577484c55a" -dependencies = [ - "rustversion", -] - -[[package]] -name = "cc" -version = "1.2.60" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43c5703da9466b66a946814e1adf53ea2c90f10063b86290cc9eb67ce3478a20" -dependencies = [ - "find-msvc-tools", - "shlex", -] - -[[package]] -name = "cfg-if" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" - -[[package]] -name = "chrono" -version = "0.4.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" -dependencies = [ - "iana-time-zone", - "num-traits", - "serde", - "windows-link", -] - -[[package]] -name = "console" -version = "0.16.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d64e8af5551369d19cf50138de61f1c42074ab970f74e99be916646777f8fc87" -dependencies = [ - "encode_unicode", - "libc", - "windows-sys", -] - -[[package]] -name = "constant_time_eq" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" - -[[package]] -name = "convert_case" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" - -[[package]] -name = "convert_case" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" -dependencies = [ - "unicode-segmentation", -] - -[[package]] -name = "core-foundation" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" -dependencies = [ - "core-foundation-sys", - "libc", -] - -[[package]] -name = "core-foundation-sys" -version = "0.8.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" - -[[package]] -name = "cpufeatures" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" -dependencies = [ - "libc", -] - -[[package]] -name = "cpufeatures" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201" -dependencies = [ - "libc", -] - -[[package]] -name = "crc32fast" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "crossbeam-deque" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" -dependencies = [ - "crossbeam-epoch", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.9.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-queue" -version = "0.3.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f58bbc28f91df819d0aa2a2c00cd19754769c2fad90579b3592b1c9ba7a3115" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-utils" -version = "0.8.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" - -[[package]] -name = "crypto-common" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" -dependencies = [ - "generic-array", - "typenum", -] - -[[package]] -name = "darling" -version = "0.23.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" -dependencies = [ - "darling_core", - "darling_macro", -] - -[[package]] -name = "darling_core" -version = "0.23.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" -dependencies = [ - "ident_case", - "proc-macro2", - "quote", - "strsim", - "syn", -] - -[[package]] -name = "darling_macro" -version = "0.23.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" -dependencies = [ - "darling_core", - "quote", - "syn", -] - -[[package]] -name = "data-encoding" -version = "2.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea" - -[[package]] -name = "decorum" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "281759d3c8a14f5c3f0c49363be56810fcd7f910422f97f2db850c2920fde5cf" -dependencies = [ - "approx", - "num-traits", -] - -[[package]] -name = "deranged" -version = "0.5.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" -dependencies = [ - "powerfmt", - "serde_core", -] - -[[package]] -name = "derive_more" -version = "0.99.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6edb4b64a43d977b8e99788fe3a04d483834fba1215a7e02caa415b626497f7f" -dependencies = [ - "convert_case 0.4.0", - "proc-macro2", - "quote", - "rustc_version", - "syn", -] - -[[package]] -name = "digest" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" -dependencies = [ - "block-buffer", - "crypto-common", -] - -[[package]] -name = "displaydoc" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "dyn-clone" -version = "1.0.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" - -[[package]] -name = "either" -version = "1.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" - -[[package]] -name = "encode_unicode" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" - -[[package]] -name = "enum-as-inner" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1e6a265c649f3f5979b601d26f1d05ada116434c87741c9493cb56218f76cbc" -dependencies = [ - "heck 0.5.0", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "enum-map" -version = "2.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6866f3bfdf8207509a033af1a75a7b08abda06bbaaeae6669323fd5a097df2e9" -dependencies = [ - "enum-map-derive", -] - -[[package]] -name = "enum-map-derive" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f282cfdfe92516eb26c2af8589c274c7c17681f5ecc03c18255fe741c6aa64eb" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "equivalent" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" - -[[package]] -name = "errno" -version = "0.3.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" -dependencies = [ - "libc", - "windows-sys", -] - -[[package]] -name = "ethnum" -version = "1.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca81e6b4777c89fd810c25a4be2b1bd93ea034fbe58e6a75216a34c6b82c539b" -dependencies = [ - "serde", -] - -[[package]] -name = "fastrand" -version = "2.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6" - -[[package]] -name = "find-msvc-tools" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" - -[[package]] -name = "fixedbitset" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" - -[[package]] -name = "flate2" -version = "1.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" -dependencies = [ - "crc32fast", - "miniz_oxide", -] - -[[package]] -name = "fnv" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" - -[[package]] -name = "foldhash" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" - -[[package]] -name = "foreign-types" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" -dependencies = [ - "foreign-types-shared", -] - -[[package]] -name = "foreign-types-shared" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" - -[[package]] -name = "form_urlencoded" -version = "1.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" -dependencies = [ - "percent-encoding", -] - -[[package]] -name = "futures" -version = "0.3.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-channel" -version = "0.3.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" -dependencies = [ - "futures-core", - "futures-sink", -] - -[[package]] -name = "futures-core" -version = "0.3.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" - -[[package]] -name = "futures-executor" -version = "0.3.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-io" -version = "0.3.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" - -[[package]] -name = "futures-macro" -version = "0.3.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "futures-sink" -version = "0.3.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" - -[[package]] -name = "futures-task" -version = "0.3.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" - -[[package]] -name = "futures-util" -version = "0.3.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" -dependencies = [ - "futures-channel", - "futures-core", - "futures-io", - "futures-macro", - "futures-sink", - "futures-task", - "memchr", - "pin-project-lite", - "slab", -] - -[[package]] -name = "generic-array" -version = "0.14.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" -dependencies = [ - "typenum", - "version_check", -] - -[[package]] -name = "getrandom" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" -dependencies = [ - "cfg-if", - "libc", - "r-efi 5.3.0", - "wasip2", -] - -[[package]] -name = "getrandom" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" -dependencies = [ - "cfg-if", - "libc", - "r-efi 6.0.0", - "wasip2", - "wasip3", -] - -[[package]] -name = "hashbrown" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" - -[[package]] -name = "hashbrown" -version = "0.15.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" -dependencies = [ - "foldhash", -] - -[[package]] -name = "hashbrown" -version = "0.16.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" -dependencies = [ - "equivalent", - "rayon", - "serde", - "serde_core", -] - -[[package]] -name = "hashbrown" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f467dd6dccf739c208452f8014c75c18bb8301b050ad1cfb27153803edb0f51" - -[[package]] -name = "heck" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" - -[[package]] -name = "heck" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" - -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - -[[package]] -name = "home" -version = "0.5.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d" -dependencies = [ - "windows-sys", -] - -[[package]] -name = "http" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" -dependencies = [ - "bytes", - "itoa", -] - -[[package]] -name = "httparse" -version = "1.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" - -[[package]] -name = "humantime" -version = "2.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "135b12329e5e3ce057a9f972339ea52bc954fe1e9358ef27f95e89716fbc5424" - -[[package]] -name = "iana-time-zone" -version = "0.1.65" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" -dependencies = [ - "android_system_properties", - "core-foundation-sys", - "iana-time-zone-haiku", - "js-sys", - "log", - "wasm-bindgen", - "windows-core", -] - -[[package]] -name = "iana-time-zone-haiku" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" -dependencies = [ - "cc", -] - -[[package]] -name = "icu_collections" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" -dependencies = [ - "displaydoc", - "potential_utf", - "utf8_iter", - "yoke", - "zerofrom", - "zerovec", -] - -[[package]] -name = "icu_locale_core" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" -dependencies = [ - "displaydoc", - "litemap", - "tinystr", - "writeable", - "zerovec", -] - -[[package]] -name = "icu_normalizer" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" -dependencies = [ - "icu_collections", - "icu_normalizer_data", - "icu_properties", - "icu_provider", - "smallvec", - "zerovec", -] - -[[package]] -name = "icu_normalizer_data" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" - -[[package]] -name = "icu_properties" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" -dependencies = [ - "icu_collections", - "icu_locale_core", - "icu_properties_data", - "icu_provider", - "zerotrie", - "zerovec", -] - -[[package]] -name = "icu_properties_data" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" - -[[package]] -name = "icu_provider" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" -dependencies = [ - "displaydoc", - "icu_locale_core", - "writeable", - "yoke", - "zerofrom", - "zerotrie", - "zerovec", -] - -[[package]] -name = "id-arena" -version = "2.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" - -[[package]] -name = "ident_case" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" - -[[package]] -name = "idna" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" -dependencies = [ - "idna_adapter", - "smallvec", - "utf8_iter", -] - -[[package]] -name = "idna_adapter" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" -dependencies = [ - "icu_normalizer", - "icu_properties", -] - -[[package]] -name = "indexmap" -version = "1.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" -dependencies = [ - "autocfg", - "hashbrown 0.12.3", - "serde", -] - -[[package]] -name = "indexmap" -version = "2.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" -dependencies = [ - "equivalent", - "hashbrown 0.17.0", - "serde", - "serde_core", -] - -[[package]] -name = "insta" -version = "1.47.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b4a6248eb93a4401ed2f37dfe8ea592d3cf05b7cf4f8efa867b6895af7e094e" -dependencies = [ - "console", - "once_cell", - "regex", - "serde", - "similar", - "tempfile", - "toml_edit", - "toml_writer", -] - -[[package]] -name = "itertools" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" -dependencies = [ - "either", -] - -[[package]] -name = "itoa" -version = "1.0.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" - -[[package]] -name = "js-sys" -version = "0.3.94" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e04e2ef80ce82e13552136fabeef8a5ed1f985a96805761cbb9a2c34e7664d9" -dependencies = [ - "once_cell", - "wasm-bindgen", -] - -[[package]] -name = "keccak" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb26cec98cce3a3d96cbb7bced3c4b16e3d13f27ec56dbd62cbc8f39cfb9d653" -dependencies = [ - "cpufeatures 0.2.17", -] - -[[package]] -name = "lazy_static" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" - -[[package]] -name = "lean_string" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a262b6ae1dd9c2d3cf7977a816578b03bf8fb60b61545c395880f95eefc5b24" -dependencies = [ - "castaway", - "itoa", - "ryu", -] - -[[package]] -name = "leb128fmt" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" - -[[package]] -name = "libc" -version = "0.2.184" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48f5d2a454e16a5ea0f4ced81bd44e4cfc7bd3a507b61887c99fd3538b28e4af" - -[[package]] -name = "linux-raw-sys" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" - -[[package]] -name = "litemap" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" - -[[package]] -name = "lock_api" -version = "0.4.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" -dependencies = [ - "scopeguard", -] - -[[package]] -name = "log" -version = "0.4.29" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" - -[[package]] -name = "memchr" -version = "2.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" - -[[package]] -name = "miniz_oxide" -version = "0.8.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" -dependencies = [ - "adler2", - "simd-adler32", -] - -[[package]] -name = "mio" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1" -dependencies = [ - "libc", - "wasi", - "windows-sys", -] - -[[package]] -name = "native-tls" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e" -dependencies = [ - "libc", - "log", - "openssl", - "openssl-probe", - "openssl-sys", - "schannel", - "security-framework", - "security-framework-sys", - "tempfile", -] - -[[package]] -name = "nohash-hasher" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" - -[[package]] -name = "num-conv" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6673768db2d862beb9b39a78fdcb1a69439615d5794a1be50caa9bc92c81967" - -[[package]] -name = "num-traits" -version = "0.2.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" -dependencies = [ - "autocfg", -] - -[[package]] -name = "once_cell" -version = "1.21.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" - -[[package]] -name = "openssl" -version = "0.10.76" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "951c002c75e16ea2c65b8c7e4d3d51d5530d8dfa7d060b4776828c88cfb18ecf" -dependencies = [ - "bitflags", - "cfg-if", - "foreign-types", - "libc", - "once_cell", - "openssl-macros", - "openssl-sys", -] - -[[package]] -name = "openssl-macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "openssl-probe" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" - -[[package]] -name = "openssl-sys" -version = "0.9.112" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57d55af3b3e226502be1526dfdba67ab0e9c96fc293004e79576b2b9edb0dbdb" -dependencies = [ - "cc", - "libc", - "pkg-config", - "vcpkg", -] - -[[package]] -name = "parking_lot" -version = "0.12.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" -dependencies = [ - "lock_api", - "parking_lot_core", -] - -[[package]] -name = "parking_lot_core" -version = "0.9.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall", - "smallvec", - "windows-link", -] - -[[package]] -name = "paste" -version = "1.0.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" - -[[package]] -name = "percent-encoding" -version = "2.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" - -[[package]] -name = "petgraph" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" -dependencies = [ - "fixedbitset", - "indexmap 2.14.0", -] - -[[package]] -name = "pin-project-lite" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" - -[[package]] -name = "pkg-config" -version = "0.3.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" - -[[package]] -name = "potential_utf" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" -dependencies = [ - "zerovec", -] - -[[package]] -name = "powerfmt" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" - -[[package]] -name = "ppv-lite86" -version = "0.2.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" -dependencies = [ - "zerocopy", -] - -[[package]] -name = "prettyplease" -version = "0.2.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" -dependencies = [ - "proc-macro2", - "syn", -] - -[[package]] -name = "proc-macro2" -version = "1.0.106" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "prometheus" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ca5326d8d0b950a9acd87e6a3f94745394f62e4dae1b1ee22b2bc0c394af43a" -dependencies = [ - "cfg-if", - "fnv", - "lazy_static", - "memchr", - "parking_lot", - "protobuf", - "thiserror 2.0.18", -] - -[[package]] -name = "protobuf" -version = "3.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d65a1d4ddae7d8b5de68153b48f6aa3bba8cb002b243dbdbc55a5afbc98f99f4" -dependencies = [ - "once_cell", - "protobuf-support", - "thiserror 1.0.69", -] - -[[package]] -name = "protobuf-support" -version = "3.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e36c2f31e0a47f9280fb347ef5e461ffcd2c52dd520d8e216b52f93b0b0d7d6" -dependencies = [ - "thiserror 1.0.69", -] - -[[package]] -name = "quote" -version = "1.0.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "r-efi" -version = "5.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" - -[[package]] -name = "r-efi" -version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" - -[[package]] -name = "rand" -version = "0.9.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" -dependencies = [ - "rand_chacha", - "rand_core", -] - -[[package]] -name = "rand_chacha" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" -dependencies = [ - "ppv-lite86", - "rand_core", -] - -[[package]] -name = "rand_core" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" -dependencies = [ - "getrandom 0.3.4", -] - -[[package]] -name = "rayon" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f" -dependencies = [ - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" -dependencies = [ - "crossbeam-deque", - "crossbeam-utils", -] - -[[package]] -name = "redox_syscall" -version = "0.5.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" -dependencies = [ - "bitflags", -] - -[[package]] -name = "ref-cast" -version = "1.0.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" -dependencies = [ - "ref-cast-impl", -] - -[[package]] -name = "ref-cast-impl" -version = "1.0.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "regex" -version = "1.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" -dependencies = [ - "aho-corasick", - "memchr", - "regex-automata", - "regex-syntax", -] - -[[package]] -name = "regex-automata" -version = "0.4.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" - -[[package]] -name = "rustc_version" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" -dependencies = [ - "semver", -] - -[[package]] -name = "rustix" -version = "1.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" -dependencies = [ - "bitflags", - "errno", - "libc", - "linux-raw-sys", - "windows-sys", -] - -[[package]] -name = "rustversion" -version = "1.0.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" - -[[package]] -name = "ryu" -version = "1.0.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" - -[[package]] -name = "schannel" -version = "0.1.29" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" -dependencies = [ - "windows-sys", -] - -[[package]] -name = "schemars" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" -dependencies = [ - "dyn-clone", - "ref-cast", - "serde", - "serde_json", -] - -[[package]] -name = "schemars" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" -dependencies = [ - "dyn-clone", - "ref-cast", - "serde", - "serde_json", -] - -[[package]] -name = "scopeguard" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" - -[[package]] -name = "second-stack" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4904c83c6e51f1b9b08bfa5a86f35a51798e8307186e6f5513852210a219c0bb" - -[[package]] -name = "security-framework" -version = "2.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" -dependencies = [ - "bitflags", - "core-foundation", - "core-foundation-sys", - "libc", - "security-framework-sys", -] - -[[package]] -name = "security-framework-sys" -version = "2.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" -dependencies = [ - "core-foundation-sys", - "libc", -] - -[[package]] -name = "semver" -version = "1.0.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" - -[[package]] -name = "serde" -version = "1.0.228" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" -dependencies = [ - "serde_core", - "serde_derive", -] - -[[package]] -name = "serde_core" -version = "1.0.228" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" -dependencies = [ - "serde_derive", -] - -[[package]] -name = "serde_derive" -version = "1.0.228" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "serde_json" -version = "1.0.149" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" -dependencies = [ - "itoa", - "memchr", - "serde", - "serde_core", - "zmij", -] - -[[package]] -name = "serde_spanned" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" -dependencies = [ - "serde_core", -] - -[[package]] -name = "serde_with" -version = "3.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd5414fad8e6907dbdd5bc441a50ae8d6e26151a03b1de04d89a5576de61d01f" -dependencies = [ - "base64 0.22.1", - "chrono", - "hex", - "indexmap 1.9.3", - "indexmap 2.14.0", - "schemars 0.9.0", - "schemars 1.2.1", - "serde_core", - "serde_json", - "serde_with_macros", - "time", -] - -[[package]] -name = "serde_with_macros" -version = "3.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3db8978e608f1fe7357e211969fd9abdcae80bac1ba7a3369bb7eb6b404eb65" -dependencies = [ - "darling", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "sha1" -version = "0.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" -dependencies = [ - "cfg-if", - "cpufeatures 0.2.17", - "digest", -] - -[[package]] -name = "sha3" -version = "0.10.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" -dependencies = [ - "digest", - "keccak", -] - -[[package]] -name = "shlex" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" - -[[package]] -name = "signal-hook-registry" -version = "1.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" -dependencies = [ - "errno", - "libc", -] - -[[package]] -name = "simd-adler32" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214" - -[[package]] -name = "similar" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa" - -[[package]] -name = "slab" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" - -[[package]] -name = "smallvec" -version = "1.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" - -[[package]] -name = "socket2" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" -dependencies = [ - "libc", - "windows-sys", -] - -[[package]] -name = "spacetimedb-bindings-macro" -version = "2.1.0" -dependencies = [ - "heck 0.4.1", - "humantime", - "proc-macro2", - "quote", - "spacetimedb-primitives", - "syn", -] - -[[package]] -name = "spacetimedb-client" -version = "0.1.0" -dependencies = [ - "spacetimedb-sdk", -] - -[[package]] -name = "spacetimedb-client-api-messages" -version = "2.1.0" -dependencies = [ - "bytes", - "bytestring", - "chrono", - "derive_more", - "enum-as-inner", - "serde", - "serde_json", - "serde_with", - "smallvec", - "spacetimedb-lib", - "spacetimedb-primitives", - "spacetimedb-sats", - "strum", - "thiserror 1.0.69", -] - -[[package]] -name = "spacetimedb-data-structures" -version = "2.1.0" -dependencies = [ - "ahash", - "crossbeam-queue", - "either", - "hashbrown 0.16.1", - "nohash-hasher", - "smallvec", - "thiserror 1.0.69", -] - -[[package]] -name = "spacetimedb-lib" -version = "2.1.0" -dependencies = [ - "anyhow", - "bitflags", - "blake3", - "chrono", - "derive_more", - "enum-as-inner", - "enum-map", - "hex", - "itertools", - "log", - "serde", - "spacetimedb-bindings-macro", - "spacetimedb-metrics", - "spacetimedb-primitives", - "spacetimedb-sats", - "thiserror 1.0.69", -] - -[[package]] -name = "spacetimedb-memory-usage" -version = "2.1.0" -dependencies = [ - "decorum", - "ethnum", -] - -[[package]] -name = "spacetimedb-metrics" -version = "2.1.0" -dependencies = [ - "arrayvec", - "itertools", - "paste", - "prometheus", -] - -[[package]] -name = "spacetimedb-primitives" -version = "2.1.0" -dependencies = [ - "bitflags", - "either", - "enum-as-inner", - "itertools", - "nohash-hasher", - "spacetimedb-memory-usage", -] - -[[package]] -name = "spacetimedb-query-builder" -version = "2.1.0" -dependencies = [ - "spacetimedb-lib", -] - -[[package]] -name = "spacetimedb-sats" -version = "2.1.0" -dependencies = [ - "anyhow", - "arrayvec", - "bitflags", - "bytemuck", - "bytes", - "bytestring", - "chrono", - "decorum", - "derive_more", - "enum-as-inner", - "ethnum", - "hex", - "itertools", - "lean_string", - "rand", - "second-stack", - "serde", - "sha3", - "smallvec", - "spacetimedb-bindings-macro", - "spacetimedb-memory-usage", - "spacetimedb-metrics", - "spacetimedb-primitives", - "thiserror 1.0.69", - "uuid", -] - -[[package]] -name = "spacetimedb-schema" -version = "2.1.0" -dependencies = [ - "anyhow", - "convert_case 0.6.0", - "derive_more", - "enum-as-inner", - "enum-map", - "indexmap 2.14.0", - "insta", - "itertools", - "lazy_static", - "lean_string", - "petgraph", - "serde_json", - "smallvec", - "spacetimedb-data-structures", - "spacetimedb-lib", - "spacetimedb-memory-usage", - "spacetimedb-primitives", - "spacetimedb-sats", - "spacetimedb-sql-parser", - "termcolor", - "thiserror 1.0.69", - "unicode-ident", - "unicode-normalization", -] - -[[package]] -name = "spacetimedb-sdk" -version = "2.1.0" -dependencies = [ - "anymap3", - "base64 0.21.7", - "brotli", - "bytes", - "flate2", - "futures", - "futures-channel", - "home", - "http", - "log", - "native-tls", - "once_cell", - "prometheus", - "rand", - "spacetimedb-client-api-messages", - "spacetimedb-data-structures", - "spacetimedb-lib", - "spacetimedb-metrics", - "spacetimedb-query-builder", - "spacetimedb-sats", - "spacetimedb-schema", - "thiserror 1.0.69", - "tokio", - "tokio-tungstenite", -] - -[[package]] -name = "spacetimedb-sql-parser" -version = "2.1.0" -dependencies = [ - "derive_more", - "spacetimedb-lib", - "sqlparser", - "thiserror 1.0.69", -] - -[[package]] -name = "sqlparser" -version = "0.38.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0272b7bb0a225320170c99901b4b5fb3a4384e255a7f2cc228f61e2ba3893e75" -dependencies = [ - "log", -] - -[[package]] -name = "stable_deref_trait" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" - -[[package]] -name = "strsim" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" - -[[package]] -name = "strum" -version = "0.25.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125" -dependencies = [ - "strum_macros", -] - -[[package]] -name = "strum_macros" -version = "0.25.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23dc1fa9ac9c169a78ba62f0b841814b7abae11bdd047b9c58f893439e309ea0" -dependencies = [ - "heck 0.4.1", - "proc-macro2", - "quote", - "rustversion", - "syn", -] - -[[package]] -name = "syn" -version = "2.0.117" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "synstructure" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "tempfile" -version = "3.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" -dependencies = [ - "fastrand", - "getrandom 0.4.2", - "once_cell", - "rustix", - "windows-sys", -] - -[[package]] -name = "termcolor" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "thiserror" -version = "1.0.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" -dependencies = [ - "thiserror-impl 1.0.69", -] - -[[package]] -name = "thiserror" -version = "2.0.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" -dependencies = [ - "thiserror-impl 2.0.18", -] - -[[package]] -name = "thiserror-impl" -version = "1.0.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "thiserror-impl" -version = "2.0.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "time" -version = "0.3.47" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" -dependencies = [ - "deranged", - "itoa", - "num-conv", - "powerfmt", - "serde_core", - "time-core", - "time-macros", -] - -[[package]] -name = "time-core" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" - -[[package]] -name = "time-macros" -version = "0.2.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" -dependencies = [ - "num-conv", - "time-core", -] - -[[package]] -name = "tinystr" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" -dependencies = [ - "displaydoc", - "zerovec", -] - -[[package]] -name = "tinyvec" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" - -[[package]] -name = "tokio" -version = "1.51.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f66bf9585cda4b724d3e78ab34b73fb2bbaba9011b9bfdf69dc836382ea13b8c" -dependencies = [ - "bytes", - "libc", - "mio", - "parking_lot", - "pin-project-lite", - "signal-hook-registry", - "socket2", - "tokio-macros", - "windows-sys", -] - -[[package]] -name = "tokio-macros" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "tokio-native-tls" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" -dependencies = [ - "native-tls", - "tokio", -] - -[[package]] -name = "tokio-tungstenite" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "489a59b6730eda1b0171fcfda8b121f4bee2b35cba8645ca35c5f7ba3eb736c1" -dependencies = [ - "futures-util", - "log", - "native-tls", - "tokio", - "tokio-native-tls", - "tungstenite", -] - -[[package]] -name = "toml_datetime" -version = "1.1.1+spec-1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" -dependencies = [ - "serde_core", -] - -[[package]] -name = "toml_edit" -version = "0.25.11+spec-1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b59c4d22ed448339746c59b905d24568fcbb3ab65a500494f7b8c3e97739f2b" -dependencies = [ - "indexmap 2.14.0", - "serde_core", - "serde_spanned", - "toml_datetime", - "toml_parser", - "toml_writer", - "winnow", -] - -[[package]] -name = "toml_parser" -version = "1.1.2+spec-1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526" -dependencies = [ - "winnow", -] - -[[package]] -name = "toml_writer" -version = "1.1.1+spec-1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db" - -[[package]] -name = "tungstenite" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eadc29d668c91fcc564941132e17b28a7ceb2f3ebf0b9dae3e03fd7a6748eb0d" -dependencies = [ - "bytes", - "data-encoding", - "http", - "httparse", - "log", - "native-tls", - "rand", - "sha1", - "thiserror 2.0.18", - "url", - "utf-8", -] - -[[package]] -name = "typenum" -version = "1.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" - -[[package]] -name = "unicode-ident" -version = "1.0.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" - -[[package]] -name = "unicode-normalization" -version = "0.1.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fd4f6878c9cb28d874b009da9e8d183b5abc80117c40bbd187a1fde336be6e8" -dependencies = [ - "tinyvec", -] - -[[package]] -name = "unicode-segmentation" -version = "1.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c" - -[[package]] -name = "unicode-xid" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" - -[[package]] -name = "url" -version = "2.5.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" -dependencies = [ - "form_urlencoded", - "idna", - "percent-encoding", - "serde", -] - -[[package]] -name = "utf-8" -version = "0.7.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" - -[[package]] -name = "utf8_iter" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" - -[[package]] -name = "uuid" -version = "1.23.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ac8b6f42ead25368cf5b098aeb3dc8a1a2c05a3eee8a9a1a68c640edbfc79d9" -dependencies = [ - "getrandom 0.4.2", -] - -[[package]] -name = "vcpkg" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" - -[[package]] -name = "version_check" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" - -[[package]] -name = "wasi" -version = "0.11.1+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" - -[[package]] -name = "wasip2" -version = "1.0.2+wasi-0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" -dependencies = [ - "wit-bindgen", -] - -[[package]] -name = "wasip3" -version = "0.4.0+wasi-0.3.0-rc-2026-01-06" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" -dependencies = [ - "wit-bindgen", -] - -[[package]] -name = "wasm-bindgen" -version = "0.2.117" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0551fc1bb415591e3372d0bc4780db7e587d84e2a7e79da121051c5c4b89d0b0" -dependencies = [ - "cfg-if", - "once_cell", - "rustversion", - "wasm-bindgen-macro", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-macro" -version = "0.2.117" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fbdf9a35adf44786aecd5ff89b4563a90325f9da0923236f6104e603c7e86be" -dependencies = [ - "quote", - "wasm-bindgen-macro-support", -] - -[[package]] -name = "wasm-bindgen-macro-support" -version = "0.2.117" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dca9693ef2bab6d4e6707234500350d8dad079eb508dca05530c85dc3a529ff2" -dependencies = [ - "bumpalo", - "proc-macro2", - "quote", - "syn", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-shared" -version = "0.2.117" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39129a682a6d2d841b6c429d0c51e5cb0ed1a03829d8b3d1e69a011e62cb3d3b" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "wasm-encoder" -version = "0.244.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" -dependencies = [ - "leb128fmt", - "wasmparser", -] - -[[package]] -name = "wasm-metadata" -version = "0.244.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" -dependencies = [ - "anyhow", - "indexmap 2.14.0", - "wasm-encoder", - "wasmparser", -] - -[[package]] -name = "wasmparser" -version = "0.244.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" -dependencies = [ - "bitflags", - "hashbrown 0.15.5", - "indexmap 2.14.0", - "semver", -] - -[[package]] -name = "winapi-util" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" -dependencies = [ - "windows-sys", -] - -[[package]] -name = "windows-core" -version = "0.62.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" -dependencies = [ - "windows-implement", - "windows-interface", - "windows-link", - "windows-result", - "windows-strings", -] - -[[package]] -name = "windows-implement" -version = "0.60.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "windows-interface" -version = "0.59.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "windows-link" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" - -[[package]] -name = "windows-result" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" -dependencies = [ - "windows-link", -] - -[[package]] -name = "windows-strings" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" -dependencies = [ - "windows-link", -] - -[[package]] -name = "windows-sys" -version = "0.61.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" -dependencies = [ - "windows-link", -] - -[[package]] -name = "winnow" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09dac053f1cd375980747450bfc7250c264eaae0583872e845c0c7cd578872b5" -dependencies = [ - "memchr", -] - -[[package]] -name = "wit-bindgen" -version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" -dependencies = [ - "wit-bindgen-rust-macro", -] - -[[package]] -name = "wit-bindgen-core" -version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" -dependencies = [ - "anyhow", - "heck 0.5.0", - "wit-parser", -] - -[[package]] -name = "wit-bindgen-rust" -version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" -dependencies = [ - "anyhow", - "heck 0.5.0", - "indexmap 2.14.0", - "prettyplease", - "syn", - "wasm-metadata", - "wit-bindgen-core", - "wit-component", -] - -[[package]] -name = "wit-bindgen-rust-macro" -version = "0.51.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" -dependencies = [ - "anyhow", - "prettyplease", - "proc-macro2", - "quote", - "syn", - "wit-bindgen-core", - "wit-bindgen-rust", -] - -[[package]] -name = "wit-component" -version = "0.244.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" -dependencies = [ - "anyhow", - "bitflags", - "indexmap 2.14.0", - "log", - "serde", - "serde_derive", - "serde_json", - "wasm-encoder", - "wasm-metadata", - "wasmparser", - "wit-parser", -] - -[[package]] -name = "wit-parser" -version = "0.244.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" -dependencies = [ - "anyhow", - "id-arena", - "indexmap 2.14.0", - "log", - "semver", - "serde", - "serde_derive", - "serde_json", - "unicode-xid", - "wasmparser", -] - -[[package]] -name = "writeable" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" - -[[package]] -name = "yoke" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca" -dependencies = [ - "stable_deref_trait", - "yoke-derive", - "zerofrom", -] - -[[package]] -name = "yoke-derive" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" -dependencies = [ - "proc-macro2", - "quote", - "syn", - "synstructure", -] - -[[package]] -name = "zerocopy" -version = "0.8.48" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9" -dependencies = [ - "zerocopy-derive", -] - -[[package]] -name = "zerocopy-derive" -version = "0.8.48" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "zerofrom" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69faa1f2a1ea75661980b013019ed6687ed0e83d069bc1114e2cc74c6c04c4df" -dependencies = [ - "zerofrom-derive", -] - -[[package]] -name = "zerofrom-derive" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" -dependencies = [ - "proc-macro2", - "quote", - "syn", - "synstructure", -] - -[[package]] -name = "zerotrie" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" -dependencies = [ - "displaydoc", - "yoke", - "zerofrom", -] - -[[package]] -name = "zerovec" -version = "0.11.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" -dependencies = [ - "yoke", - "zerofrom", - "zerovec-derive", -] - -[[package]] -name = "zerovec-derive" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "zmij" -version = "1.0.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" From cddd5f476a1a688adaf18ef32cb9b0ef32c66a98 Mon Sep 17 00:00:00 2001 From: Jeffrey Rooks Date: Fri, 10 Apr 2026 11:29:16 -0400 Subject: [PATCH 6/7] rerun codegen --- .../src/test_handlers.rs | 2 +- .../event-table-client/src/test_handlers.rs | 2 +- .../procedure-client/src/test_handlers.rs | 2 +- .../src/module_bindings/btree_u_32_table.rs | 8 +- .../indexed_simple_enum_table.rs | 8 +- .../module_bindings/indexed_table_2_table.rs | 111 ------------------ .../module_bindings/indexed_table_table.rs | 111 ------------------ .../src/module_bindings/large_table_table.rs | 8 +- .../test-client/src/module_bindings/mod.rs | 47 +------- .../src/module_bindings/one_bool_table.rs | 8 +- .../module_bindings/one_byte_struct_table.rs | 8 +- .../one_connection_id_table.rs | 8 +- .../one_enum_with_payload_table.rs | 8 +- .../one_every_primitive_struct_table.rs | 8 +- .../one_every_vec_struct_table.rs | 8 +- .../src/module_bindings/one_f_32_table.rs | 8 +- .../src/module_bindings/one_f_64_table.rs | 8 +- .../src/module_bindings/one_i_128_table.rs | 8 +- .../src/module_bindings/one_i_16_table.rs | 8 +- .../src/module_bindings/one_i_256_table.rs | 8 +- .../src/module_bindings/one_i_32_table.rs | 8 +- .../src/module_bindings/one_i_64_table.rs | 8 +- .../src/module_bindings/one_i_8_table.rs | 8 +- .../src/module_bindings/one_identity_table.rs | 8 +- .../module_bindings/one_simple_enum_table.rs | 8 +- .../src/module_bindings/one_string_table.rs | 8 +- .../module_bindings/one_timestamp_table.rs | 8 +- .../src/module_bindings/one_u_128_table.rs | 8 +- .../src/module_bindings/one_u_16_table.rs | 8 +- .../src/module_bindings/one_u_256_table.rs | 8 +- .../src/module_bindings/one_u_32_table.rs | 8 +- .../src/module_bindings/one_u_64_table.rs | 8 +- .../src/module_bindings/one_u_8_table.rs | 8 +- .../module_bindings/one_unit_struct_table.rs | 8 +- .../src/module_bindings/one_uuid_table.rs | 8 +- .../option_every_primitive_struct_table.rs | 8 +- .../src/module_bindings/option_i_32_table.rs | 8 +- .../module_bindings/option_identity_table.rs | 8 +- .../option_simple_enum_table.rs | 8 +- .../module_bindings/option_string_table.rs | 8 +- .../src/module_bindings/option_uuid_table.rs | 8 +- .../option_vec_option_i_32_table.rs | 8 +- .../src/module_bindings/pk_bool_table.rs | 12 +- .../module_bindings/pk_connection_id_table.rs | 12 +- .../src/module_bindings/pk_i_128_table.rs | 12 +- .../src/module_bindings/pk_i_16_table.rs | 12 +- .../src/module_bindings/pk_i_256_table.rs | 12 +- .../src/module_bindings/pk_i_32_table.rs | 12 +- .../src/module_bindings/pk_i_64_table.rs | 12 +- .../src/module_bindings/pk_i_8_table.rs | 12 +- .../src/module_bindings/pk_identity_table.rs | 12 +- .../module_bindings/pk_simple_enum_table.rs | 12 +- .../src/module_bindings/pk_string_table.rs | 12 +- .../src/module_bindings/pk_u_128_table.rs | 12 +- .../src/module_bindings/pk_u_16_table.rs | 12 +- .../src/module_bindings/pk_u_256_table.rs | 12 +- .../src/module_bindings/pk_u_32_table.rs | 12 +- .../src/module_bindings/pk_u_32_two_table.rs | 12 +- .../src/module_bindings/pk_u_64_table.rs | 12 +- .../src/module_bindings/pk_u_8_table.rs | 12 +- .../src/module_bindings/pk_uuid_table.rs | 12 +- ...ult_every_primitive_struct_string_table.rs | 8 +- .../result_i_32_string_table.rs | 8 +- .../result_identity_string_table.rs | 8 +- .../result_simple_enum_i_32_table.rs | 8 +- .../result_string_i_32_table.rs | 8 +- .../result_vec_i_32_string_table.rs | 8 +- .../module_bindings/scheduled_table_table.rs | 12 +- .../send_scheduled_message_reducer.rs | 68 ----------- .../table_holds_table_table.rs | 8 +- .../src/module_bindings/unique_bool_table.rs | 8 +- .../unique_connection_id_table.rs | 8 +- .../src/module_bindings/unique_i_128_table.rs | 8 +- .../src/module_bindings/unique_i_16_table.rs | 8 +- .../src/module_bindings/unique_i_256_table.rs | 8 +- .../src/module_bindings/unique_i_32_table.rs | 8 +- .../src/module_bindings/unique_i_64_table.rs | 8 +- .../src/module_bindings/unique_i_8_table.rs | 8 +- .../module_bindings/unique_identity_table.rs | 8 +- .../module_bindings/unique_string_table.rs | 8 +- .../src/module_bindings/unique_u_128_table.rs | 8 +- .../src/module_bindings/unique_u_16_table.rs | 8 +- .../src/module_bindings/unique_u_256_table.rs | 8 +- .../src/module_bindings/unique_u_32_table.rs | 8 +- .../src/module_bindings/unique_u_64_table.rs | 8 +- .../src/module_bindings/unique_u_8_table.rs | 8 +- .../src/module_bindings/unique_uuid_table.rs | 8 +- .../src/module_bindings/users_table.rs | 12 +- .../src/module_bindings/vec_bool_table.rs | 8 +- .../module_bindings/vec_byte_struct_table.rs | 8 +- .../vec_connection_id_table.rs | 8 +- .../vec_enum_with_payload_table.rs | 8 +- .../vec_every_primitive_struct_table.rs | 8 +- .../vec_every_vec_struct_table.rs | 8 +- .../src/module_bindings/vec_f_32_table.rs | 8 +- .../src/module_bindings/vec_f_64_table.rs | 8 +- .../src/module_bindings/vec_i_128_table.rs | 8 +- .../src/module_bindings/vec_i_16_table.rs | 8 +- .../src/module_bindings/vec_i_256_table.rs | 8 +- .../src/module_bindings/vec_i_32_table.rs | 8 +- .../src/module_bindings/vec_i_64_table.rs | 8 +- .../src/module_bindings/vec_i_8_table.rs | 8 +- .../src/module_bindings/vec_identity_table.rs | 8 +- .../module_bindings/vec_simple_enum_table.rs | 8 +- .../src/module_bindings/vec_string_table.rs | 8 +- .../module_bindings/vec_timestamp_table.rs | 8 +- .../src/module_bindings/vec_u_128_table.rs | 8 +- .../src/module_bindings/vec_u_16_table.rs | 8 +- .../src/module_bindings/vec_u_256_table.rs | 8 +- .../src/module_bindings/vec_u_32_table.rs | 8 +- .../src/module_bindings/vec_u_64_table.rs | 8 +- .../src/module_bindings/vec_u_8_table.rs | 8 +- .../module_bindings/vec_unit_struct_table.rs | 8 +- .../src/module_bindings/vec_uuid_table.rs | 8 +- .../tests/view-client/src/test_handlers.rs | 2 +- .../tests/view-pk-client/src/test_handlers.rs | 2 +- 116 files changed, 819 insertions(+), 468 deletions(-) delete mode 100644 sdks/rust/tests/test-client/src/module_bindings/indexed_table_2_table.rs delete mode 100644 sdks/rust/tests/test-client/src/module_bindings/indexed_table_table.rs delete mode 100644 sdks/rust/tests/test-client/src/module_bindings/send_scheduled_message_reducer.rs diff --git a/sdks/rust/tests/connect_disconnect_client/src/test_handlers.rs b/sdks/rust/tests/connect_disconnect_client/src/test_handlers.rs index 56753d78039..27e39ebf42d 100644 --- a/sdks/rust/tests/connect_disconnect_client/src/test_handlers.rs +++ b/sdks/rust/tests/connect_disconnect_client/src/test_handlers.rs @@ -1,6 +1,6 @@ use crate::module_bindings::*; -use spacetimedb_sdk::{DbConnectionBuilder, DbContext, Table}; +use spacetimedb_sdk::{DbConnectionBuilder, DbContext, TableLike}; use test_counter::TestCounter; diff --git a/sdks/rust/tests/event-table-client/src/test_handlers.rs b/sdks/rust/tests/event-table-client/src/test_handlers.rs index f77c78e3896..46566f15fd1 100644 --- a/sdks/rust/tests/event-table-client/src/test_handlers.rs +++ b/sdks/rust/tests/event-table-client/src/test_handlers.rs @@ -1,6 +1,6 @@ use crate::module_bindings::*; -use spacetimedb_sdk::{DbConnectionBuilder, DbContext, Event, EventTable}; +use spacetimedb_sdk::{DbConnectionBuilder, DbContext, Event, TableLike, WithInsert}; use std::sync::atomic::{AtomicU32, Ordering}; use test_counter::TestCounter; diff --git a/sdks/rust/tests/procedure-client/src/test_handlers.rs b/sdks/rust/tests/procedure-client/src/test_handlers.rs index d3f75c0698a..8abb2a925b4 100644 --- a/sdks/rust/tests/procedure-client/src/test_handlers.rs +++ b/sdks/rust/tests/procedure-client/src/test_handlers.rs @@ -2,7 +2,7 @@ use crate::module_bindings::*; use anyhow::Context; use core::time::Duration; use spacetimedb_lib::db::raw_def::v9::{RawMiscModuleExportV9, RawModuleDefV9}; -use spacetimedb_sdk::{DbConnectionBuilder, DbContext, Table}; +use spacetimedb_sdk::{DbConnectionBuilder, DbContext, Table, TableLike, WithInsert}; use test_counter::TestCounter; const LOCALHOST: &str = "http://localhost:3000"; diff --git a/sdks/rust/tests/test-client/src/module_bindings/btree_u_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/btree_u_32_table.rs index f5f7216ef84..174a1a729ea 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/btree_u_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/btree_u_32_table.rs @@ -40,7 +40,7 @@ impl BtreeU32TableAccess for super::RemoteTables { pub struct BtreeU32InsertCallbackId(__sdk::CallbackId); pub struct BtreeU32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for BtreeU32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for BtreeU32TableHandle<'ctx> { type Row = BTreeU32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for BtreeU32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for BtreeU32TableHandle<'ctx> { type InsertCallbackId = BtreeU32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for BtreeU32TableHandle<'ctx> { fn remove_on_insert(&self, callback: BtreeU32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for BtreeU32TableHandle<'ctx> { type DeleteCallbackId = BtreeU32DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for BtreeU32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for BtreeU32TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("btree_u_32"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/indexed_simple_enum_table.rs b/sdks/rust/tests/test-client/src/module_bindings/indexed_simple_enum_table.rs index 02b40f1302e..071b46352a3 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/indexed_simple_enum_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/indexed_simple_enum_table.rs @@ -41,7 +41,7 @@ impl IndexedSimpleEnumTableAccess for super::RemoteTables { pub struct IndexedSimpleEnumInsertCallbackId(__sdk::CallbackId); pub struct IndexedSimpleEnumDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for IndexedSimpleEnumTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for IndexedSimpleEnumTableHandle<'ctx> { type Row = IndexedSimpleEnum; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for IndexedSimpleEnumTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for IndexedSimpleEnumTableHandle<'ctx> { type InsertCallbackId = IndexedSimpleEnumInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for IndexedSimpleEnumTableHandle<'ctx> { fn remove_on_insert(&self, callback: IndexedSimpleEnumInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for IndexedSimpleEnumTableHandle<'ctx> { type DeleteCallbackId = IndexedSimpleEnumDeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for IndexedSimpleEnumTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for IndexedSimpleEnumTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("indexed_simple_enum"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/indexed_table_2_table.rs b/sdks/rust/tests/test-client/src/module_bindings/indexed_table_2_table.rs deleted file mode 100644 index 63eaf2e6ff3..00000000000 --- a/sdks/rust/tests/test-client/src/module_bindings/indexed_table_2_table.rs +++ /dev/null @@ -1,111 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::indexed_table_2_type::IndexedTable2; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `indexed_table_2`. -/// -/// Obtain a handle from the [`IndexedTable2TableAccess::indexed_table_2`] method on [`super::RemoteTables`], -/// like `ctx.db.indexed_table_2()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.indexed_table_2().on_insert(...)`. -pub struct IndexedTable2TableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `indexed_table_2`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait IndexedTable2TableAccess { - #[allow(non_snake_case)] - /// Obtain a [`IndexedTable2TableHandle`], which mediates access to the table `indexed_table_2`. - fn indexed_table_2(&self) -> IndexedTable2TableHandle<'_>; -} - -impl IndexedTable2TableAccess for super::RemoteTables { - fn indexed_table_2(&self) -> IndexedTable2TableHandle<'_> { - IndexedTable2TableHandle { - imp: self.imp.get_table::("indexed_table_2"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct IndexedTable2InsertCallbackId(__sdk::CallbackId); -pub struct IndexedTable2DeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for IndexedTable2TableHandle<'ctx> { - type Row = IndexedTable2; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = IndexedTable2InsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> IndexedTable2InsertCallbackId { - IndexedTable2InsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: IndexedTable2InsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = IndexedTable2DeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> IndexedTable2DeleteCallbackId { - IndexedTable2DeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: IndexedTable2DeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("indexed_table_2"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `IndexedTable2`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait indexed_table_2QueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `IndexedTable2`. - fn indexed_table_2(&self) -> __sdk::__query_builder::Table; -} - -impl indexed_table_2QueryTableAccess for __sdk::QueryTableAccessor { - fn indexed_table_2(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("indexed_table_2") - } -} diff --git a/sdks/rust/tests/test-client/src/module_bindings/indexed_table_table.rs b/sdks/rust/tests/test-client/src/module_bindings/indexed_table_table.rs deleted file mode 100644 index 73b03043ace..00000000000 --- a/sdks/rust/tests/test-client/src/module_bindings/indexed_table_table.rs +++ /dev/null @@ -1,111 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use super::indexed_table_type::IndexedTable; -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -/// Table handle for the table `indexed_table`. -/// -/// Obtain a handle from the [`IndexedTableTableAccess::indexed_table`] method on [`super::RemoteTables`], -/// like `ctx.db.indexed_table()`. -/// -/// Users are encouraged not to explicitly reference this type, -/// but to directly chain method calls, -/// like `ctx.db.indexed_table().on_insert(...)`. -pub struct IndexedTableTableHandle<'ctx> { - imp: __sdk::TableHandle, - ctx: std::marker::PhantomData<&'ctx super::RemoteTables>, -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the table `indexed_table`. -/// -/// Implemented for [`super::RemoteTables`]. -pub trait IndexedTableTableAccess { - #[allow(non_snake_case)] - /// Obtain a [`IndexedTableTableHandle`], which mediates access to the table `indexed_table`. - fn indexed_table(&self) -> IndexedTableTableHandle<'_>; -} - -impl IndexedTableTableAccess for super::RemoteTables { - fn indexed_table(&self) -> IndexedTableTableHandle<'_> { - IndexedTableTableHandle { - imp: self.imp.get_table::("indexed_table"), - ctx: std::marker::PhantomData, - } - } -} - -pub struct IndexedTableInsertCallbackId(__sdk::CallbackId); -pub struct IndexedTableDeleteCallbackId(__sdk::CallbackId); - -impl<'ctx> __sdk::Table for IndexedTableTableHandle<'ctx> { - type Row = IndexedTable; - type EventContext = super::EventContext; - - fn count(&self) -> u64 { - self.imp.count() - } - fn iter(&self) -> impl Iterator + '_ { - self.imp.iter() - } - - type InsertCallbackId = IndexedTableInsertCallbackId; - - fn on_insert( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> IndexedTableInsertCallbackId { - IndexedTableInsertCallbackId(self.imp.on_insert(Box::new(callback))) - } - - fn remove_on_insert(&self, callback: IndexedTableInsertCallbackId) { - self.imp.remove_on_insert(callback.0) - } - - type DeleteCallbackId = IndexedTableDeleteCallbackId; - - fn on_delete( - &self, - callback: impl FnMut(&Self::EventContext, &Self::Row) + Send + 'static, - ) -> IndexedTableDeleteCallbackId { - IndexedTableDeleteCallbackId(self.imp.on_delete(Box::new(callback))) - } - - fn remove_on_delete(&self, callback: IndexedTableDeleteCallbackId) { - self.imp.remove_on_delete(callback.0) - } -} - -#[doc(hidden)] -pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("indexed_table"); -} - -#[doc(hidden)] -pub(super) fn parse_table_update( - raw_updates: __ws::v2::TableUpdate, -) -> __sdk::Result<__sdk::TableUpdate> { - __sdk::TableUpdate::parse_table_update(raw_updates).map_err(|e| { - __sdk::InternalError::failed_parse("TableUpdate", "TableUpdate") - .with_cause(e) - .into() - }) -} - -#[allow(non_camel_case_types)] -/// Extension trait for query builder access to the table `IndexedTable`. -/// -/// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait indexed_tableQueryTableAccess { - #[allow(non_snake_case)] - /// Get a query builder for the table `IndexedTable`. - fn indexed_table(&self) -> __sdk::__query_builder::Table; -} - -impl indexed_tableQueryTableAccess for __sdk::QueryTableAccessor { - fn indexed_table(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("indexed_table") - } -} diff --git a/sdks/rust/tests/test-client/src/module_bindings/large_table_table.rs b/sdks/rust/tests/test-client/src/module_bindings/large_table_table.rs index 8eb966cfcc7..fbd59728cef 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/large_table_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/large_table_table.rs @@ -46,7 +46,7 @@ impl LargeTableTableAccess for super::RemoteTables { pub struct LargeTableInsertCallbackId(__sdk::CallbackId); pub struct LargeTableDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for LargeTableTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for LargeTableTableHandle<'ctx> { type Row = LargeTable; type EventContext = super::EventContext; @@ -56,7 +56,9 @@ impl<'ctx> __sdk::Table for LargeTableTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for LargeTableTableHandle<'ctx> { type InsertCallbackId = LargeTableInsertCallbackId; fn on_insert( @@ -69,7 +71,9 @@ impl<'ctx> __sdk::Table for LargeTableTableHandle<'ctx> { fn remove_on_insert(&self, callback: LargeTableInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for LargeTableTableHandle<'ctx> { type DeleteCallbackId = LargeTableDeleteCallbackId; fn on_delete( @@ -84,6 +88,8 @@ impl<'ctx> __sdk::Table for LargeTableTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for LargeTableTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("large_table"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/mod.rs b/sdks/rust/tests/test-client/src/module_bindings/mod.rs index 50dc1e0cb5a..701259ffd08 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/mod.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/mod.rs @@ -1,7 +1,7 @@ // THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE // WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. -// This was generated using spacetimedb cli version 2.1.0 (commit 77575596072d271b763513ec1833d4a6e0627aef). +// This was generated using spacetimedb cli version 2.1.0 (commit aa84d00c80f19e20a89d7cb52b3470e59e844168). #![allow(unused, clippy::all)] use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; @@ -52,9 +52,7 @@ pub mod every_primitive_struct_type; pub mod every_vec_struct_type; pub mod indexed_simple_enum_table; pub mod indexed_simple_enum_type; -pub mod indexed_table_2_table; pub mod indexed_table_2_type; -pub mod indexed_table_table; pub mod indexed_table_type; pub mod insert_call_timestamp_reducer; pub mod insert_call_uuid_v_4_reducer; @@ -297,7 +295,6 @@ pub mod result_vec_i_32_string_table; pub mod result_vec_i_32_string_type; pub mod scheduled_table_table; pub mod scheduled_table_type; -pub mod send_scheduled_message_reducer; pub mod simple_enum_type; pub mod sorted_uuids_insert_reducer; pub mod table_holds_table_table; @@ -475,9 +472,7 @@ pub use every_primitive_struct_type::EveryPrimitiveStruct; pub use every_vec_struct_type::EveryVecStruct; pub use indexed_simple_enum_table::*; pub use indexed_simple_enum_type::IndexedSimpleEnum; -pub use indexed_table_2_table::*; pub use indexed_table_2_type::IndexedTable2; -pub use indexed_table_table::*; pub use indexed_table_type::IndexedTable; pub use insert_call_timestamp_reducer::insert_call_timestamp; pub use insert_call_uuid_v_4_reducer::insert_call_uuid_v_4; @@ -720,7 +715,6 @@ pub use result_vec_i_32_string_table::*; pub use result_vec_i_32_string_type::ResultVecI32String; pub use scheduled_table_table::*; pub use scheduled_table_type::ScheduledTable; -pub use send_scheduled_message_reducer::send_scheduled_message; pub use simple_enum_type::SimpleEnum; pub use sorted_uuids_insert_reducer::sorted_uuids_insert; pub use table_holds_table_table::*; @@ -1405,9 +1399,6 @@ pub enum Reducer { u: Vec<__sdk::Uuid>, }, NoOpSucceeds, - SendScheduledMessage { - arg: ScheduledTable, - }, SortedUuidsInsert, UpdateIndexedSimpleEnum { a: SimpleEnum, @@ -1725,7 +1716,6 @@ impl __sdk::Reducer for Reducer { Reducer::InsertVecUnitStruct { .. } => "insert_vec_unit_struct", Reducer::InsertVecUuid { .. } => "insert_vec_uuid", Reducer::NoOpSucceeds => "no_op_succeeds", - Reducer::SendScheduledMessage { .. } => "send_scheduled_message", Reducer::SortedUuidsInsert => "sorted_uuids_insert", Reducer::UpdateIndexedSimpleEnum { .. } => "update_indexed_simple_enum", Reducer::UpdatePkBool { .. } => "update_pk_bool", @@ -2445,9 +2435,6 @@ impl __sdk::Reducer for Reducer { __sats::bsatn::to_vec(&insert_vec_uuid_reducer::InsertVecUuidArgs { u: u.clone() }) } Reducer::NoOpSucceeds => __sats::bsatn::to_vec(&no_op_succeeds_reducer::NoOpSucceedsArgs {}), - Reducer::SendScheduledMessage { arg } => { - __sats::bsatn::to_vec(&send_scheduled_message_reducer::SendScheduledMessageArgs { arg: arg.clone() }) - } Reducer::SortedUuidsInsert => __sats::bsatn::to_vec(&sorted_uuids_insert_reducer::SortedUuidsInsertArgs {}), Reducer::UpdateIndexedSimpleEnum { a, b } => { __sats::bsatn::to_vec(&update_indexed_simple_enum_reducer::UpdateIndexedSimpleEnumArgs { @@ -2654,8 +2641,6 @@ impl __sdk::Reducer for Reducer { pub struct DbUpdate { btree_u_32: __sdk::TableUpdate, indexed_simple_enum: __sdk::TableUpdate, - indexed_table: __sdk::TableUpdate, - indexed_table_2: __sdk::TableUpdate, large_table: __sdk::TableUpdate, one_bool: __sdk::TableUpdate, one_byte_struct: __sdk::TableUpdate, @@ -2775,12 +2760,6 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { "indexed_simple_enum" => db_update .indexed_simple_enum .append(indexed_simple_enum_table::parse_table_update(table_update)?), - "indexed_table" => db_update - .indexed_table - .append(indexed_table_table::parse_table_update(table_update)?), - "indexed_table_2" => db_update - .indexed_table_2 - .append(indexed_table_2_table::parse_table_update(table_update)?), "large_table" => db_update .large_table .append(large_table_table::parse_table_update(table_update)?), @@ -3111,8 +3090,6 @@ impl __sdk::DbUpdate for DbUpdate { diff.btree_u_32 = cache.apply_diff_to_table::("btree_u_32", &self.btree_u_32); diff.indexed_simple_enum = cache.apply_diff_to_table::("indexed_simple_enum", &self.indexed_simple_enum); - diff.indexed_table = cache.apply_diff_to_table::("indexed_table", &self.indexed_table); - diff.indexed_table_2 = cache.apply_diff_to_table::("indexed_table_2", &self.indexed_table_2); diff.large_table = cache.apply_diff_to_table::("large_table", &self.large_table); diff.one_bool = cache.apply_diff_to_table::("one_bool", &self.one_bool); diff.one_byte_struct = cache.apply_diff_to_table::("one_byte_struct", &self.one_byte_struct); @@ -3300,12 +3277,6 @@ impl __sdk::DbUpdate for DbUpdate { "indexed_simple_enum" => db_update .indexed_simple_enum .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "indexed_table" => db_update - .indexed_table - .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "indexed_table_2" => db_update - .indexed_table_2 - .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "large_table" => db_update .large_table .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), @@ -3638,12 +3609,6 @@ impl __sdk::DbUpdate for DbUpdate { "indexed_simple_enum" => db_update .indexed_simple_enum .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "indexed_table" => db_update - .indexed_table - .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "indexed_table_2" => db_update - .indexed_table_2 - .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "large_table" => db_update .large_table .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), @@ -3974,8 +3939,6 @@ impl __sdk::DbUpdate for DbUpdate { pub struct AppliedDiff<'r> { btree_u_32: __sdk::TableAppliedDiff<'r, BTreeU32>, indexed_simple_enum: __sdk::TableAppliedDiff<'r, IndexedSimpleEnum>, - indexed_table: __sdk::TableAppliedDiff<'r, IndexedTable>, - indexed_table_2: __sdk::TableAppliedDiff<'r, IndexedTable2>, large_table: __sdk::TableAppliedDiff<'r, LargeTable>, one_bool: __sdk::TableAppliedDiff<'r, OneBool>, one_byte_struct: __sdk::TableAppliedDiff<'r, OneByteStruct>, @@ -4096,8 +4059,6 @@ impl<'r> __sdk::AppliedDiff<'r> for AppliedDiff<'r> { &self.indexed_simple_enum, event, ); - callbacks.invoke_table_row_callbacks::("indexed_table", &self.indexed_table, event); - callbacks.invoke_table_row_callbacks::("indexed_table_2", &self.indexed_table_2, event); callbacks.invoke_table_row_callbacks::("large_table", &self.large_table, event); callbacks.invoke_table_row_callbacks::("one_bool", &self.one_bool, event); callbacks.invoke_table_row_callbacks::("one_byte_struct", &self.one_byte_struct, event); @@ -4524,7 +4485,7 @@ impl< } /// An [`__sdk::DbContext`] augmented with a [`__sdk::Event`], -/// passed to [`__sdk::Table::on_insert`], [`__sdk::Table::on_delete`] and [`__sdk::TableWithPrimaryKey::on_update`] callbacks. +/// passed to [`__sdk::WithInsert::on_insert`], [`__sdk::WithDelete::on_delete`] and [`__sdk::WithUpdate::on_update`] callbacks. pub struct EventContext { /// Access to tables defined by the module via extension traits implemented for [`RemoteTables`]. pub db: RemoteTables, @@ -4914,8 +4875,6 @@ impl __sdk::SpacetimeModule for RemoteModule { fn register_tables(client_cache: &mut __sdk::ClientCache) { btree_u_32_table::register_table(client_cache); indexed_simple_enum_table::register_table(client_cache); - indexed_table_table::register_table(client_cache); - indexed_table_2_table::register_table(client_cache); large_table_table::register_table(client_cache); one_bool_table::register_table(client_cache); one_byte_struct_table::register_table(client_cache); @@ -5025,8 +4984,6 @@ impl __sdk::SpacetimeModule for RemoteModule { const ALL_TABLE_NAMES: &'static [&'static str] = &[ "btree_u_32", "indexed_simple_enum", - "indexed_table", - "indexed_table_2", "large_table", "one_bool", "one_byte_struct", diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_bool_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_bool_table.rs index 2ff801d601c..86243612028 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_bool_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_bool_table.rs @@ -40,7 +40,7 @@ impl OneBoolTableAccess for super::RemoteTables { pub struct OneBoolInsertCallbackId(__sdk::CallbackId); pub struct OneBoolDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneBoolTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneBoolTableHandle<'ctx> { type Row = OneBool; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneBoolTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneBoolTableHandle<'ctx> { type InsertCallbackId = OneBoolInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneBoolTableHandle<'ctx> { fn remove_on_insert(&self, callback: OneBoolInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneBoolTableHandle<'ctx> { type DeleteCallbackId = OneBoolDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneBoolTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneBoolTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_bool"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_byte_struct_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_byte_struct_table.rs index 583653d5c25..e9360014d3d 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_byte_struct_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_byte_struct_table.rs @@ -41,7 +41,7 @@ impl OneByteStructTableAccess for super::RemoteTables { pub struct OneByteStructInsertCallbackId(__sdk::CallbackId); pub struct OneByteStructDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneByteStructTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneByteStructTableHandle<'ctx> { type Row = OneByteStruct; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for OneByteStructTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneByteStructTableHandle<'ctx> { type InsertCallbackId = OneByteStructInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for OneByteStructTableHandle<'ctx> { fn remove_on_insert(&self, callback: OneByteStructInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneByteStructTableHandle<'ctx> { type DeleteCallbackId = OneByteStructDeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for OneByteStructTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneByteStructTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_byte_struct"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_connection_id_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_connection_id_table.rs index 7729d3c4276..5440ee6a246 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_connection_id_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_connection_id_table.rs @@ -40,7 +40,7 @@ impl OneConnectionIdTableAccess for super::RemoteTables { pub struct OneConnectionIdInsertCallbackId(__sdk::CallbackId); pub struct OneConnectionIdDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneConnectionIdTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneConnectionIdTableHandle<'ctx> { type Row = OneConnectionId; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneConnectionIdTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneConnectionIdTableHandle<'ctx> { type InsertCallbackId = OneConnectionIdInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneConnectionIdTableHandle<'ctx> { fn remove_on_insert(&self, callback: OneConnectionIdInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneConnectionIdTableHandle<'ctx> { type DeleteCallbackId = OneConnectionIdDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneConnectionIdTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneConnectionIdTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_connection_id"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_enum_with_payload_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_enum_with_payload_table.rs index 4678f789925..1b1c7bbf82d 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_enum_with_payload_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_enum_with_payload_table.rs @@ -41,7 +41,7 @@ impl OneEnumWithPayloadTableAccess for super::RemoteTables { pub struct OneEnumWithPayloadInsertCallbackId(__sdk::CallbackId); pub struct OneEnumWithPayloadDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneEnumWithPayloadTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneEnumWithPayloadTableHandle<'ctx> { type Row = OneEnumWithPayload; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for OneEnumWithPayloadTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneEnumWithPayloadTableHandle<'ctx> { type InsertCallbackId = OneEnumWithPayloadInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for OneEnumWithPayloadTableHandle<'ctx> { fn remove_on_insert(&self, callback: OneEnumWithPayloadInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneEnumWithPayloadTableHandle<'ctx> { type DeleteCallbackId = OneEnumWithPayloadDeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for OneEnumWithPayloadTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneEnumWithPayloadTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_enum_with_payload"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_every_primitive_struct_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_every_primitive_struct_table.rs index e90f30e64c7..35953662d84 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_every_primitive_struct_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_every_primitive_struct_table.rs @@ -43,7 +43,7 @@ impl OneEveryPrimitiveStructTableAccess for super::RemoteTables { pub struct OneEveryPrimitiveStructInsertCallbackId(__sdk::CallbackId); pub struct OneEveryPrimitiveStructDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneEveryPrimitiveStructTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneEveryPrimitiveStructTableHandle<'ctx> { type Row = OneEveryPrimitiveStruct; type EventContext = super::EventContext; @@ -53,7 +53,9 @@ impl<'ctx> __sdk::Table for OneEveryPrimitiveStructTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneEveryPrimitiveStructTableHandle<'ctx> { type InsertCallbackId = OneEveryPrimitiveStructInsertCallbackId; fn on_insert( @@ -66,7 +68,9 @@ impl<'ctx> __sdk::Table for OneEveryPrimitiveStructTableHandle<'ctx> { fn remove_on_insert(&self, callback: OneEveryPrimitiveStructInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneEveryPrimitiveStructTableHandle<'ctx> { type DeleteCallbackId = OneEveryPrimitiveStructDeleteCallbackId; fn on_delete( @@ -81,6 +85,8 @@ impl<'ctx> __sdk::Table for OneEveryPrimitiveStructTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneEveryPrimitiveStructTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_every_primitive_struct"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_every_vec_struct_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_every_vec_struct_table.rs index 42cd12476ec..04ec26c8f49 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_every_vec_struct_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_every_vec_struct_table.rs @@ -41,7 +41,7 @@ impl OneEveryVecStructTableAccess for super::RemoteTables { pub struct OneEveryVecStructInsertCallbackId(__sdk::CallbackId); pub struct OneEveryVecStructDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneEveryVecStructTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneEveryVecStructTableHandle<'ctx> { type Row = OneEveryVecStruct; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for OneEveryVecStructTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneEveryVecStructTableHandle<'ctx> { type InsertCallbackId = OneEveryVecStructInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for OneEveryVecStructTableHandle<'ctx> { fn remove_on_insert(&self, callback: OneEveryVecStructInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneEveryVecStructTableHandle<'ctx> { type DeleteCallbackId = OneEveryVecStructDeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for OneEveryVecStructTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneEveryVecStructTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_every_vec_struct"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_f_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_f_32_table.rs index e083d39f730..62d0fbccaf2 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_f_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_f_32_table.rs @@ -40,7 +40,7 @@ impl OneF32TableAccess for super::RemoteTables { pub struct OneF32InsertCallbackId(__sdk::CallbackId); pub struct OneF32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneF32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneF32TableHandle<'ctx> { type Row = OneF32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneF32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneF32TableHandle<'ctx> { type InsertCallbackId = OneF32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneF32TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneF32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneF32TableHandle<'ctx> { type DeleteCallbackId = OneF32DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneF32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneF32TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_f_32"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_f_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_f_64_table.rs index 7a3f5de637b..5fb4c92f940 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_f_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_f_64_table.rs @@ -40,7 +40,7 @@ impl OneF64TableAccess for super::RemoteTables { pub struct OneF64InsertCallbackId(__sdk::CallbackId); pub struct OneF64DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneF64TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneF64TableHandle<'ctx> { type Row = OneF64; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneF64TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneF64TableHandle<'ctx> { type InsertCallbackId = OneF64InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneF64TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneF64InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneF64TableHandle<'ctx> { type DeleteCallbackId = OneF64DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneF64TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneF64TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_f_64"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_i_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_i_128_table.rs index ebff49e97a1..231b1103cb1 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_i_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_i_128_table.rs @@ -40,7 +40,7 @@ impl OneI128TableAccess for super::RemoteTables { pub struct OneI128InsertCallbackId(__sdk::CallbackId); pub struct OneI128DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneI128TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneI128TableHandle<'ctx> { type Row = OneI128; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneI128TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneI128TableHandle<'ctx> { type InsertCallbackId = OneI128InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneI128TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneI128InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneI128TableHandle<'ctx> { type DeleteCallbackId = OneI128DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneI128TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneI128TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_i_128"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_i_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_i_16_table.rs index 6a0ca13292b..d97c2dff8e7 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_i_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_i_16_table.rs @@ -40,7 +40,7 @@ impl OneI16TableAccess for super::RemoteTables { pub struct OneI16InsertCallbackId(__sdk::CallbackId); pub struct OneI16DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneI16TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneI16TableHandle<'ctx> { type Row = OneI16; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneI16TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneI16TableHandle<'ctx> { type InsertCallbackId = OneI16InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneI16TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneI16InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneI16TableHandle<'ctx> { type DeleteCallbackId = OneI16DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneI16TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneI16TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_i_16"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_i_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_i_256_table.rs index 1c8cf51fa96..23f50b249d0 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_i_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_i_256_table.rs @@ -40,7 +40,7 @@ impl OneI256TableAccess for super::RemoteTables { pub struct OneI256InsertCallbackId(__sdk::CallbackId); pub struct OneI256DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneI256TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneI256TableHandle<'ctx> { type Row = OneI256; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneI256TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneI256TableHandle<'ctx> { type InsertCallbackId = OneI256InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneI256TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneI256InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneI256TableHandle<'ctx> { type DeleteCallbackId = OneI256DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneI256TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneI256TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_i_256"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_i_32_table.rs index 22343727a10..4a9d464925c 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_i_32_table.rs @@ -40,7 +40,7 @@ impl OneI32TableAccess for super::RemoteTables { pub struct OneI32InsertCallbackId(__sdk::CallbackId); pub struct OneI32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneI32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneI32TableHandle<'ctx> { type Row = OneI32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneI32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneI32TableHandle<'ctx> { type InsertCallbackId = OneI32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneI32TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneI32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneI32TableHandle<'ctx> { type DeleteCallbackId = OneI32DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneI32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneI32TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_i_32"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_i_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_i_64_table.rs index f9c64a63f43..96708f0618a 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_i_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_i_64_table.rs @@ -40,7 +40,7 @@ impl OneI64TableAccess for super::RemoteTables { pub struct OneI64InsertCallbackId(__sdk::CallbackId); pub struct OneI64DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneI64TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneI64TableHandle<'ctx> { type Row = OneI64; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneI64TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneI64TableHandle<'ctx> { type InsertCallbackId = OneI64InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneI64TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneI64InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneI64TableHandle<'ctx> { type DeleteCallbackId = OneI64DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneI64TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneI64TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_i_64"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_i_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_i_8_table.rs index 1f982cf650d..3a82b192483 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_i_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_i_8_table.rs @@ -40,7 +40,7 @@ impl OneI8TableAccess for super::RemoteTables { pub struct OneI8InsertCallbackId(__sdk::CallbackId); pub struct OneI8DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneI8TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneI8TableHandle<'ctx> { type Row = OneI8; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneI8TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneI8TableHandle<'ctx> { type InsertCallbackId = OneI8InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneI8TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneI8InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneI8TableHandle<'ctx> { type DeleteCallbackId = OneI8DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneI8TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneI8TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_i_8"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_identity_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_identity_table.rs index 0752919e36f..cfd37a0ab93 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_identity_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_identity_table.rs @@ -40,7 +40,7 @@ impl OneIdentityTableAccess for super::RemoteTables { pub struct OneIdentityInsertCallbackId(__sdk::CallbackId); pub struct OneIdentityDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneIdentityTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneIdentityTableHandle<'ctx> { type Row = OneIdentity; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneIdentityTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneIdentityTableHandle<'ctx> { type InsertCallbackId = OneIdentityInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneIdentityTableHandle<'ctx> { fn remove_on_insert(&self, callback: OneIdentityInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneIdentityTableHandle<'ctx> { type DeleteCallbackId = OneIdentityDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneIdentityTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneIdentityTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_identity"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_simple_enum_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_simple_enum_table.rs index 5497a4ec3d7..6060df61c7e 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_simple_enum_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_simple_enum_table.rs @@ -41,7 +41,7 @@ impl OneSimpleEnumTableAccess for super::RemoteTables { pub struct OneSimpleEnumInsertCallbackId(__sdk::CallbackId); pub struct OneSimpleEnumDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneSimpleEnumTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneSimpleEnumTableHandle<'ctx> { type Row = OneSimpleEnum; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for OneSimpleEnumTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneSimpleEnumTableHandle<'ctx> { type InsertCallbackId = OneSimpleEnumInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for OneSimpleEnumTableHandle<'ctx> { fn remove_on_insert(&self, callback: OneSimpleEnumInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneSimpleEnumTableHandle<'ctx> { type DeleteCallbackId = OneSimpleEnumDeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for OneSimpleEnumTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneSimpleEnumTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_simple_enum"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_string_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_string_table.rs index 43ba9653704..6a9bd7f1c94 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_string_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_string_table.rs @@ -40,7 +40,7 @@ impl OneStringTableAccess for super::RemoteTables { pub struct OneStringInsertCallbackId(__sdk::CallbackId); pub struct OneStringDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneStringTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneStringTableHandle<'ctx> { type Row = OneString; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneStringTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneStringTableHandle<'ctx> { type InsertCallbackId = OneStringInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneStringTableHandle<'ctx> { fn remove_on_insert(&self, callback: OneStringInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneStringTableHandle<'ctx> { type DeleteCallbackId = OneStringDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneStringTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneStringTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_string"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_timestamp_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_timestamp_table.rs index 15219ae1931..79f25cc31eb 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_timestamp_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_timestamp_table.rs @@ -40,7 +40,7 @@ impl OneTimestampTableAccess for super::RemoteTables { pub struct OneTimestampInsertCallbackId(__sdk::CallbackId); pub struct OneTimestampDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneTimestampTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneTimestampTableHandle<'ctx> { type Row = OneTimestamp; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneTimestampTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneTimestampTableHandle<'ctx> { type InsertCallbackId = OneTimestampInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneTimestampTableHandle<'ctx> { fn remove_on_insert(&self, callback: OneTimestampInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneTimestampTableHandle<'ctx> { type DeleteCallbackId = OneTimestampDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneTimestampTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneTimestampTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_timestamp"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_u_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_u_128_table.rs index c6c3b8405a4..9f454322d33 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_u_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_u_128_table.rs @@ -40,7 +40,7 @@ impl OneU128TableAccess for super::RemoteTables { pub struct OneU128InsertCallbackId(__sdk::CallbackId); pub struct OneU128DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneU128TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneU128TableHandle<'ctx> { type Row = OneU128; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneU128TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneU128TableHandle<'ctx> { type InsertCallbackId = OneU128InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneU128TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneU128InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneU128TableHandle<'ctx> { type DeleteCallbackId = OneU128DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneU128TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneU128TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_u_128"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_u_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_u_16_table.rs index 73a291c8cea..3428cc982d9 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_u_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_u_16_table.rs @@ -40,7 +40,7 @@ impl OneU16TableAccess for super::RemoteTables { pub struct OneU16InsertCallbackId(__sdk::CallbackId); pub struct OneU16DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneU16TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneU16TableHandle<'ctx> { type Row = OneU16; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneU16TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneU16TableHandle<'ctx> { type InsertCallbackId = OneU16InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneU16TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneU16InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneU16TableHandle<'ctx> { type DeleteCallbackId = OneU16DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneU16TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneU16TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_u_16"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_u_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_u_256_table.rs index e5c07561c26..6d6322d0af1 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_u_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_u_256_table.rs @@ -40,7 +40,7 @@ impl OneU256TableAccess for super::RemoteTables { pub struct OneU256InsertCallbackId(__sdk::CallbackId); pub struct OneU256DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneU256TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneU256TableHandle<'ctx> { type Row = OneU256; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneU256TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneU256TableHandle<'ctx> { type InsertCallbackId = OneU256InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneU256TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneU256InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneU256TableHandle<'ctx> { type DeleteCallbackId = OneU256DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneU256TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneU256TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_u_256"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_u_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_u_32_table.rs index c818a74eace..12d035cc0fa 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_u_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_u_32_table.rs @@ -40,7 +40,7 @@ impl OneU32TableAccess for super::RemoteTables { pub struct OneU32InsertCallbackId(__sdk::CallbackId); pub struct OneU32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneU32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneU32TableHandle<'ctx> { type Row = OneU32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneU32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneU32TableHandle<'ctx> { type InsertCallbackId = OneU32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneU32TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneU32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneU32TableHandle<'ctx> { type DeleteCallbackId = OneU32DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneU32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneU32TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_u_32"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_u_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_u_64_table.rs index 1addfb72311..74e363565d6 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_u_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_u_64_table.rs @@ -40,7 +40,7 @@ impl OneU64TableAccess for super::RemoteTables { pub struct OneU64InsertCallbackId(__sdk::CallbackId); pub struct OneU64DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneU64TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneU64TableHandle<'ctx> { type Row = OneU64; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneU64TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneU64TableHandle<'ctx> { type InsertCallbackId = OneU64InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneU64TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneU64InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneU64TableHandle<'ctx> { type DeleteCallbackId = OneU64DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneU64TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneU64TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_u_64"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_u_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_u_8_table.rs index 4ea390ae321..3d02f500ae6 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_u_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_u_8_table.rs @@ -40,7 +40,7 @@ impl OneU8TableAccess for super::RemoteTables { pub struct OneU8InsertCallbackId(__sdk::CallbackId); pub struct OneU8DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneU8TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneU8TableHandle<'ctx> { type Row = OneU8; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneU8TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneU8TableHandle<'ctx> { type InsertCallbackId = OneU8InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneU8TableHandle<'ctx> { fn remove_on_insert(&self, callback: OneU8InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneU8TableHandle<'ctx> { type DeleteCallbackId = OneU8DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneU8TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneU8TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_u_8"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_unit_struct_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_unit_struct_table.rs index 6af7cd5ab89..2482b683bf4 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_unit_struct_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_unit_struct_table.rs @@ -41,7 +41,7 @@ impl OneUnitStructTableAccess for super::RemoteTables { pub struct OneUnitStructInsertCallbackId(__sdk::CallbackId); pub struct OneUnitStructDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneUnitStructTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneUnitStructTableHandle<'ctx> { type Row = OneUnitStruct; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for OneUnitStructTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneUnitStructTableHandle<'ctx> { type InsertCallbackId = OneUnitStructInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for OneUnitStructTableHandle<'ctx> { fn remove_on_insert(&self, callback: OneUnitStructInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneUnitStructTableHandle<'ctx> { type DeleteCallbackId = OneUnitStructDeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for OneUnitStructTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneUnitStructTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_unit_struct"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_uuid_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_uuid_table.rs index 414f0f05962..8ac6a64c36f 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_uuid_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_uuid_table.rs @@ -40,7 +40,7 @@ impl OneUuidTableAccess for super::RemoteTables { pub struct OneUuidInsertCallbackId(__sdk::CallbackId); pub struct OneUuidDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OneUuidTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OneUuidTableHandle<'ctx> { type Row = OneUuid; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OneUuidTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OneUuidTableHandle<'ctx> { type InsertCallbackId = OneUuidInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OneUuidTableHandle<'ctx> { fn remove_on_insert(&self, callback: OneUuidInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OneUuidTableHandle<'ctx> { type DeleteCallbackId = OneUuidDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OneUuidTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OneUuidTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("one_uuid"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/option_every_primitive_struct_table.rs b/sdks/rust/tests/test-client/src/module_bindings/option_every_primitive_struct_table.rs index b1933882ccd..8f65fa7313b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/option_every_primitive_struct_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/option_every_primitive_struct_table.rs @@ -43,7 +43,7 @@ impl OptionEveryPrimitiveStructTableAccess for super::RemoteTables { pub struct OptionEveryPrimitiveStructInsertCallbackId(__sdk::CallbackId); pub struct OptionEveryPrimitiveStructDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OptionEveryPrimitiveStructTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OptionEveryPrimitiveStructTableHandle<'ctx> { type Row = OptionEveryPrimitiveStruct; type EventContext = super::EventContext; @@ -53,7 +53,9 @@ impl<'ctx> __sdk::Table for OptionEveryPrimitiveStructTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OptionEveryPrimitiveStructTableHandle<'ctx> { type InsertCallbackId = OptionEveryPrimitiveStructInsertCallbackId; fn on_insert( @@ -66,7 +68,9 @@ impl<'ctx> __sdk::Table for OptionEveryPrimitiveStructTableHandle<'ctx> { fn remove_on_insert(&self, callback: OptionEveryPrimitiveStructInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OptionEveryPrimitiveStructTableHandle<'ctx> { type DeleteCallbackId = OptionEveryPrimitiveStructDeleteCallbackId; fn on_delete( @@ -81,6 +85,8 @@ impl<'ctx> __sdk::Table for OptionEveryPrimitiveStructTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OptionEveryPrimitiveStructTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("option_every_primitive_struct"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/option_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/option_i_32_table.rs index b23a358174f..8489b8a074e 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/option_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/option_i_32_table.rs @@ -40,7 +40,7 @@ impl OptionI32TableAccess for super::RemoteTables { pub struct OptionI32InsertCallbackId(__sdk::CallbackId); pub struct OptionI32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OptionI32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OptionI32TableHandle<'ctx> { type Row = OptionI32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OptionI32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OptionI32TableHandle<'ctx> { type InsertCallbackId = OptionI32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OptionI32TableHandle<'ctx> { fn remove_on_insert(&self, callback: OptionI32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OptionI32TableHandle<'ctx> { type DeleteCallbackId = OptionI32DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OptionI32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OptionI32TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("option_i_32"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/option_identity_table.rs b/sdks/rust/tests/test-client/src/module_bindings/option_identity_table.rs index 06e66352971..e5083b224bf 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/option_identity_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/option_identity_table.rs @@ -40,7 +40,7 @@ impl OptionIdentityTableAccess for super::RemoteTables { pub struct OptionIdentityInsertCallbackId(__sdk::CallbackId); pub struct OptionIdentityDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OptionIdentityTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OptionIdentityTableHandle<'ctx> { type Row = OptionIdentity; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OptionIdentityTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OptionIdentityTableHandle<'ctx> { type InsertCallbackId = OptionIdentityInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OptionIdentityTableHandle<'ctx> { fn remove_on_insert(&self, callback: OptionIdentityInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OptionIdentityTableHandle<'ctx> { type DeleteCallbackId = OptionIdentityDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OptionIdentityTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OptionIdentityTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("option_identity"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/option_simple_enum_table.rs b/sdks/rust/tests/test-client/src/module_bindings/option_simple_enum_table.rs index e4567161113..154180af08b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/option_simple_enum_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/option_simple_enum_table.rs @@ -41,7 +41,7 @@ impl OptionSimpleEnumTableAccess for super::RemoteTables { pub struct OptionSimpleEnumInsertCallbackId(__sdk::CallbackId); pub struct OptionSimpleEnumDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OptionSimpleEnumTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OptionSimpleEnumTableHandle<'ctx> { type Row = OptionSimpleEnum; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for OptionSimpleEnumTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OptionSimpleEnumTableHandle<'ctx> { type InsertCallbackId = OptionSimpleEnumInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for OptionSimpleEnumTableHandle<'ctx> { fn remove_on_insert(&self, callback: OptionSimpleEnumInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OptionSimpleEnumTableHandle<'ctx> { type DeleteCallbackId = OptionSimpleEnumDeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for OptionSimpleEnumTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OptionSimpleEnumTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("option_simple_enum"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/option_string_table.rs b/sdks/rust/tests/test-client/src/module_bindings/option_string_table.rs index 91c819df742..1d586f339d4 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/option_string_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/option_string_table.rs @@ -40,7 +40,7 @@ impl OptionStringTableAccess for super::RemoteTables { pub struct OptionStringInsertCallbackId(__sdk::CallbackId); pub struct OptionStringDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OptionStringTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OptionStringTableHandle<'ctx> { type Row = OptionString; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OptionStringTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OptionStringTableHandle<'ctx> { type InsertCallbackId = OptionStringInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OptionStringTableHandle<'ctx> { fn remove_on_insert(&self, callback: OptionStringInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OptionStringTableHandle<'ctx> { type DeleteCallbackId = OptionStringDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OptionStringTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OptionStringTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("option_string"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/option_uuid_table.rs b/sdks/rust/tests/test-client/src/module_bindings/option_uuid_table.rs index b9ace60a6fa..7a4ccef0b1b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/option_uuid_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/option_uuid_table.rs @@ -40,7 +40,7 @@ impl OptionUuidTableAccess for super::RemoteTables { pub struct OptionUuidInsertCallbackId(__sdk::CallbackId); pub struct OptionUuidDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OptionUuidTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OptionUuidTableHandle<'ctx> { type Row = OptionUuid; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OptionUuidTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OptionUuidTableHandle<'ctx> { type InsertCallbackId = OptionUuidInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OptionUuidTableHandle<'ctx> { fn remove_on_insert(&self, callback: OptionUuidInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OptionUuidTableHandle<'ctx> { type DeleteCallbackId = OptionUuidDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OptionUuidTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OptionUuidTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("option_uuid"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/option_vec_option_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/option_vec_option_i_32_table.rs index bb42948ded7..5e64684de30 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/option_vec_option_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/option_vec_option_i_32_table.rs @@ -40,7 +40,7 @@ impl OptionVecOptionI32TableAccess for super::RemoteTables { pub struct OptionVecOptionI32InsertCallbackId(__sdk::CallbackId); pub struct OptionVecOptionI32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for OptionVecOptionI32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for OptionVecOptionI32TableHandle<'ctx> { type Row = OptionVecOptionI32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for OptionVecOptionI32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for OptionVecOptionI32TableHandle<'ctx> { type InsertCallbackId = OptionVecOptionI32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for OptionVecOptionI32TableHandle<'ctx> { fn remove_on_insert(&self, callback: OptionVecOptionI32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for OptionVecOptionI32TableHandle<'ctx> { type DeleteCallbackId = OptionVecOptionI32DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for OptionVecOptionI32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for OptionVecOptionI32TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("option_vec_option_i_32"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_bool_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_bool_table.rs index 56cfe6eb2c8..5dd0afa2216 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_bool_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_bool_table.rs @@ -40,7 +40,7 @@ impl PkBoolTableAccess for super::RemoteTables { pub struct PkBoolInsertCallbackId(__sdk::CallbackId); pub struct PkBoolDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkBoolTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkBoolTableHandle<'ctx> { type Row = PkBool; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkBoolTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkBoolTableHandle<'ctx> { type InsertCallbackId = PkBoolInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkBoolTableHandle<'ctx> { fn remove_on_insert(&self, callback: PkBoolInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkBoolTableHandle<'ctx> { type DeleteCallbackId = PkBoolDeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkBoolTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkBoolTableHandle<'ctx> {} + pub struct PkBoolUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkBoolTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkBoolTableHandle<'ctx> { type UpdateCallbackId = PkBoolUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkBoolTableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkBoolTableHandle<'ctx> {} + /// Access to the `b` unique index on the table `pk_bool`, /// which allows point queries on the field of the same name /// via the [`PkBoolBUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_connection_id_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_connection_id_table.rs index ef7c0081c54..5f23884d387 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_connection_id_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_connection_id_table.rs @@ -40,7 +40,7 @@ impl PkConnectionIdTableAccess for super::RemoteTables { pub struct PkConnectionIdInsertCallbackId(__sdk::CallbackId); pub struct PkConnectionIdDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkConnectionIdTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkConnectionIdTableHandle<'ctx> { type Row = PkConnectionId; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkConnectionIdTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkConnectionIdTableHandle<'ctx> { type InsertCallbackId = PkConnectionIdInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkConnectionIdTableHandle<'ctx> { fn remove_on_insert(&self, callback: PkConnectionIdInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkConnectionIdTableHandle<'ctx> { type DeleteCallbackId = PkConnectionIdDeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkConnectionIdTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkConnectionIdTableHandle<'ctx> {} + pub struct PkConnectionIdUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkConnectionIdTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkConnectionIdTableHandle<'ctx> { type UpdateCallbackId = PkConnectionIdUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkConnectionIdTableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkConnectionIdTableHandle<'ctx> {} + /// Access to the `a` unique index on the table `pk_connection_id`, /// which allows point queries on the field of the same name /// via the [`PkConnectionIdAUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_i_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_i_128_table.rs index ed52b296500..2ac114b267f 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_i_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_i_128_table.rs @@ -40,7 +40,7 @@ impl PkI128TableAccess for super::RemoteTables { pub struct PkI128InsertCallbackId(__sdk::CallbackId); pub struct PkI128DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkI128TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkI128TableHandle<'ctx> { type Row = PkI128; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkI128TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkI128TableHandle<'ctx> { type InsertCallbackId = PkI128InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkI128TableHandle<'ctx> { fn remove_on_insert(&self, callback: PkI128InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkI128TableHandle<'ctx> { type DeleteCallbackId = PkI128DeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkI128TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkI128TableHandle<'ctx> {} + pub struct PkI128UpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkI128TableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkI128TableHandle<'ctx> { type UpdateCallbackId = PkI128UpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkI128TableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkI128TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `pk_i_128`, /// which allows point queries on the field of the same name /// via the [`PkI128NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_i_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_i_16_table.rs index acfc4d4d4cf..8183b707a61 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_i_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_i_16_table.rs @@ -40,7 +40,7 @@ impl PkI16TableAccess for super::RemoteTables { pub struct PkI16InsertCallbackId(__sdk::CallbackId); pub struct PkI16DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkI16TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkI16TableHandle<'ctx> { type Row = PkI16; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkI16TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkI16TableHandle<'ctx> { type InsertCallbackId = PkI16InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkI16TableHandle<'ctx> { fn remove_on_insert(&self, callback: PkI16InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkI16TableHandle<'ctx> { type DeleteCallbackId = PkI16DeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkI16TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkI16TableHandle<'ctx> {} + pub struct PkI16UpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkI16TableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkI16TableHandle<'ctx> { type UpdateCallbackId = PkI16UpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkI16TableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkI16TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `pk_i_16`, /// which allows point queries on the field of the same name /// via the [`PkI16NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_i_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_i_256_table.rs index 9cf4d71b655..a4af0fe764e 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_i_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_i_256_table.rs @@ -40,7 +40,7 @@ impl PkI256TableAccess for super::RemoteTables { pub struct PkI256InsertCallbackId(__sdk::CallbackId); pub struct PkI256DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkI256TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkI256TableHandle<'ctx> { type Row = PkI256; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkI256TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkI256TableHandle<'ctx> { type InsertCallbackId = PkI256InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkI256TableHandle<'ctx> { fn remove_on_insert(&self, callback: PkI256InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkI256TableHandle<'ctx> { type DeleteCallbackId = PkI256DeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkI256TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkI256TableHandle<'ctx> {} + pub struct PkI256UpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkI256TableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkI256TableHandle<'ctx> { type UpdateCallbackId = PkI256UpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkI256TableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkI256TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `pk_i_256`, /// which allows point queries on the field of the same name /// via the [`PkI256NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_i_32_table.rs index 01c7410cfb2..304863fc073 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_i_32_table.rs @@ -40,7 +40,7 @@ impl PkI32TableAccess for super::RemoteTables { pub struct PkI32InsertCallbackId(__sdk::CallbackId); pub struct PkI32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkI32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkI32TableHandle<'ctx> { type Row = PkI32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkI32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkI32TableHandle<'ctx> { type InsertCallbackId = PkI32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkI32TableHandle<'ctx> { fn remove_on_insert(&self, callback: PkI32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkI32TableHandle<'ctx> { type DeleteCallbackId = PkI32DeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkI32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkI32TableHandle<'ctx> {} + pub struct PkI32UpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkI32TableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkI32TableHandle<'ctx> { type UpdateCallbackId = PkI32UpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkI32TableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkI32TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `pk_i_32`, /// which allows point queries on the field of the same name /// via the [`PkI32NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_i_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_i_64_table.rs index b6c486ade37..83a8f605d23 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_i_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_i_64_table.rs @@ -40,7 +40,7 @@ impl PkI64TableAccess for super::RemoteTables { pub struct PkI64InsertCallbackId(__sdk::CallbackId); pub struct PkI64DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkI64TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkI64TableHandle<'ctx> { type Row = PkI64; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkI64TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkI64TableHandle<'ctx> { type InsertCallbackId = PkI64InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkI64TableHandle<'ctx> { fn remove_on_insert(&self, callback: PkI64InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkI64TableHandle<'ctx> { type DeleteCallbackId = PkI64DeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkI64TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkI64TableHandle<'ctx> {} + pub struct PkI64UpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkI64TableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkI64TableHandle<'ctx> { type UpdateCallbackId = PkI64UpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkI64TableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkI64TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `pk_i_64`, /// which allows point queries on the field of the same name /// via the [`PkI64NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_i_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_i_8_table.rs index 010b1b45793..e953dd8b732 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_i_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_i_8_table.rs @@ -40,7 +40,7 @@ impl PkI8TableAccess for super::RemoteTables { pub struct PkI8InsertCallbackId(__sdk::CallbackId); pub struct PkI8DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkI8TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkI8TableHandle<'ctx> { type Row = PkI8; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkI8TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkI8TableHandle<'ctx> { type InsertCallbackId = PkI8InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkI8TableHandle<'ctx> { fn remove_on_insert(&self, callback: PkI8InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkI8TableHandle<'ctx> { type DeleteCallbackId = PkI8DeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkI8TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkI8TableHandle<'ctx> {} + pub struct PkI8UpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkI8TableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkI8TableHandle<'ctx> { type UpdateCallbackId = PkI8UpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkI8TableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkI8TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `pk_i_8`, /// which allows point queries on the field of the same name /// via the [`PkI8NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_identity_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_identity_table.rs index 6e52e47ea50..1b65a3fef45 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_identity_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_identity_table.rs @@ -40,7 +40,7 @@ impl PkIdentityTableAccess for super::RemoteTables { pub struct PkIdentityInsertCallbackId(__sdk::CallbackId); pub struct PkIdentityDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkIdentityTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkIdentityTableHandle<'ctx> { type Row = PkIdentity; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkIdentityTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkIdentityTableHandle<'ctx> { type InsertCallbackId = PkIdentityInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkIdentityTableHandle<'ctx> { fn remove_on_insert(&self, callback: PkIdentityInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkIdentityTableHandle<'ctx> { type DeleteCallbackId = PkIdentityDeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkIdentityTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkIdentityTableHandle<'ctx> {} + pub struct PkIdentityUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkIdentityTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkIdentityTableHandle<'ctx> { type UpdateCallbackId = PkIdentityUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkIdentityTableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkIdentityTableHandle<'ctx> {} + /// Access to the `i` unique index on the table `pk_identity`, /// which allows point queries on the field of the same name /// via the [`PkIdentityIUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_simple_enum_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_simple_enum_table.rs index 5e51f22be69..90048831b7e 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_simple_enum_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_simple_enum_table.rs @@ -41,7 +41,7 @@ impl PkSimpleEnumTableAccess for super::RemoteTables { pub struct PkSimpleEnumInsertCallbackId(__sdk::CallbackId); pub struct PkSimpleEnumDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkSimpleEnumTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkSimpleEnumTableHandle<'ctx> { type Row = PkSimpleEnum; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for PkSimpleEnumTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkSimpleEnumTableHandle<'ctx> { type InsertCallbackId = PkSimpleEnumInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for PkSimpleEnumTableHandle<'ctx> { fn remove_on_insert(&self, callback: PkSimpleEnumInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkSimpleEnumTableHandle<'ctx> { type DeleteCallbackId = PkSimpleEnumDeleteCallbackId; fn on_delete( @@ -79,9 +83,11 @@ impl<'ctx> __sdk::Table for PkSimpleEnumTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkSimpleEnumTableHandle<'ctx> {} + pub struct PkSimpleEnumUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkSimpleEnumTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkSimpleEnumTableHandle<'ctx> { type UpdateCallbackId = PkSimpleEnumUpdateCallbackId; fn on_update( @@ -96,6 +102,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkSimpleEnumTableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkSimpleEnumTableHandle<'ctx> {} + /// Access to the `a` unique index on the table `pk_simple_enum`, /// which allows point queries on the field of the same name /// via the [`PkSimpleEnumAUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_string_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_string_table.rs index 8f31b1e280b..a6ce1ef92b6 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_string_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_string_table.rs @@ -40,7 +40,7 @@ impl PkStringTableAccess for super::RemoteTables { pub struct PkStringInsertCallbackId(__sdk::CallbackId); pub struct PkStringDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkStringTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkStringTableHandle<'ctx> { type Row = PkString; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkStringTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkStringTableHandle<'ctx> { type InsertCallbackId = PkStringInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkStringTableHandle<'ctx> { fn remove_on_insert(&self, callback: PkStringInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkStringTableHandle<'ctx> { type DeleteCallbackId = PkStringDeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkStringTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkStringTableHandle<'ctx> {} + pub struct PkStringUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkStringTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkStringTableHandle<'ctx> { type UpdateCallbackId = PkStringUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkStringTableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkStringTableHandle<'ctx> {} + /// Access to the `s` unique index on the table `pk_string`, /// which allows point queries on the field of the same name /// via the [`PkStringSUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_128_table.rs index 4ef0969e695..de5b171f5cb 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_128_table.rs @@ -40,7 +40,7 @@ impl PkU128TableAccess for super::RemoteTables { pub struct PkU128InsertCallbackId(__sdk::CallbackId); pub struct PkU128DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkU128TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkU128TableHandle<'ctx> { type Row = PkU128; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkU128TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkU128TableHandle<'ctx> { type InsertCallbackId = PkU128InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkU128TableHandle<'ctx> { fn remove_on_insert(&self, callback: PkU128InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkU128TableHandle<'ctx> { type DeleteCallbackId = PkU128DeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkU128TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkU128TableHandle<'ctx> {} + pub struct PkU128UpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkU128TableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkU128TableHandle<'ctx> { type UpdateCallbackId = PkU128UpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU128TableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkU128TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `pk_u_128`, /// which allows point queries on the field of the same name /// via the [`PkU128NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_16_table.rs index 136479f3749..3223e04be1b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_16_table.rs @@ -40,7 +40,7 @@ impl PkU16TableAccess for super::RemoteTables { pub struct PkU16InsertCallbackId(__sdk::CallbackId); pub struct PkU16DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkU16TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkU16TableHandle<'ctx> { type Row = PkU16; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkU16TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkU16TableHandle<'ctx> { type InsertCallbackId = PkU16InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkU16TableHandle<'ctx> { fn remove_on_insert(&self, callback: PkU16InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkU16TableHandle<'ctx> { type DeleteCallbackId = PkU16DeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkU16TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkU16TableHandle<'ctx> {} + pub struct PkU16UpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkU16TableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkU16TableHandle<'ctx> { type UpdateCallbackId = PkU16UpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU16TableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkU16TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `pk_u_16`, /// which allows point queries on the field of the same name /// via the [`PkU16NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_256_table.rs index 19b6f7c59ba..382cda2b4a1 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_256_table.rs @@ -40,7 +40,7 @@ impl PkU256TableAccess for super::RemoteTables { pub struct PkU256InsertCallbackId(__sdk::CallbackId); pub struct PkU256DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkU256TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkU256TableHandle<'ctx> { type Row = PkU256; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkU256TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkU256TableHandle<'ctx> { type InsertCallbackId = PkU256InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkU256TableHandle<'ctx> { fn remove_on_insert(&self, callback: PkU256InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkU256TableHandle<'ctx> { type DeleteCallbackId = PkU256DeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkU256TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkU256TableHandle<'ctx> {} + pub struct PkU256UpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkU256TableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkU256TableHandle<'ctx> { type UpdateCallbackId = PkU256UpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU256TableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkU256TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `pk_u_256`, /// which allows point queries on the field of the same name /// via the [`PkU256NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_table.rs index 670ccd0ff52..886326fb62c 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_table.rs @@ -40,7 +40,7 @@ impl PkU32TableAccess for super::RemoteTables { pub struct PkU32InsertCallbackId(__sdk::CallbackId); pub struct PkU32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkU32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkU32TableHandle<'ctx> { type Row = PkU32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkU32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkU32TableHandle<'ctx> { type InsertCallbackId = PkU32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkU32TableHandle<'ctx> { fn remove_on_insert(&self, callback: PkU32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkU32TableHandle<'ctx> { type DeleteCallbackId = PkU32DeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkU32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkU32TableHandle<'ctx> {} + pub struct PkU32UpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkU32TableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkU32TableHandle<'ctx> { type UpdateCallbackId = PkU32UpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU32TableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkU32TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `pk_u_32`, /// which allows point queries on the field of the same name /// via the [`PkU32NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_two_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_two_table.rs index 176afc27be4..dbead556ff5 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_two_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_two_table.rs @@ -40,7 +40,7 @@ impl PkU32TwoTableAccess for super::RemoteTables { pub struct PkU32TwoInsertCallbackId(__sdk::CallbackId); pub struct PkU32TwoDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkU32TwoTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkU32TwoTableHandle<'ctx> { type Row = PkU32Two; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkU32TwoTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkU32TwoTableHandle<'ctx> { type InsertCallbackId = PkU32TwoInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkU32TwoTableHandle<'ctx> { fn remove_on_insert(&self, callback: PkU32TwoInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkU32TwoTableHandle<'ctx> { type DeleteCallbackId = PkU32TwoDeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkU32TwoTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkU32TwoTableHandle<'ctx> {} + pub struct PkU32TwoUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkU32TwoTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkU32TwoTableHandle<'ctx> { type UpdateCallbackId = PkU32TwoUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU32TwoTableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkU32TwoTableHandle<'ctx> {} + /// Access to the `n` unique index on the table `pk_u_32_two`, /// which allows point queries on the field of the same name /// via the [`PkU32TwoNUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_64_table.rs index 7ebda9ee9b5..991b42781dd 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_64_table.rs @@ -40,7 +40,7 @@ impl PkU64TableAccess for super::RemoteTables { pub struct PkU64InsertCallbackId(__sdk::CallbackId); pub struct PkU64DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkU64TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkU64TableHandle<'ctx> { type Row = PkU64; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkU64TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkU64TableHandle<'ctx> { type InsertCallbackId = PkU64InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkU64TableHandle<'ctx> { fn remove_on_insert(&self, callback: PkU64InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkU64TableHandle<'ctx> { type DeleteCallbackId = PkU64DeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkU64TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkU64TableHandle<'ctx> {} + pub struct PkU64UpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkU64TableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkU64TableHandle<'ctx> { type UpdateCallbackId = PkU64UpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU64TableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkU64TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `pk_u_64`, /// which allows point queries on the field of the same name /// via the [`PkU64NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_8_table.rs index 4603dc0295b..fc8d8e96de9 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_8_table.rs @@ -40,7 +40,7 @@ impl PkU8TableAccess for super::RemoteTables { pub struct PkU8InsertCallbackId(__sdk::CallbackId); pub struct PkU8DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkU8TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkU8TableHandle<'ctx> { type Row = PkU8; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkU8TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkU8TableHandle<'ctx> { type InsertCallbackId = PkU8InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkU8TableHandle<'ctx> { fn remove_on_insert(&self, callback: PkU8InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkU8TableHandle<'ctx> { type DeleteCallbackId = PkU8DeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkU8TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkU8TableHandle<'ctx> {} + pub struct PkU8UpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkU8TableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkU8TableHandle<'ctx> { type UpdateCallbackId = PkU8UpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU8TableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkU8TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `pk_u_8`, /// which allows point queries on the field of the same name /// via the [`PkU8NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_uuid_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_uuid_table.rs index 2e72f521768..e7f86aa4071 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_uuid_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_uuid_table.rs @@ -40,7 +40,7 @@ impl PkUuidTableAccess for super::RemoteTables { pub struct PkUuidInsertCallbackId(__sdk::CallbackId); pub struct PkUuidDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for PkUuidTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for PkUuidTableHandle<'ctx> { type Row = PkUuid; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for PkUuidTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for PkUuidTableHandle<'ctx> { type InsertCallbackId = PkUuidInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for PkUuidTableHandle<'ctx> { fn remove_on_insert(&self, callback: PkUuidInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for PkUuidTableHandle<'ctx> { type DeleteCallbackId = PkUuidDeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for PkUuidTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for PkUuidTableHandle<'ctx> {} + pub struct PkUuidUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for PkUuidTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for PkUuidTableHandle<'ctx> { type UpdateCallbackId = PkUuidUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkUuidTableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for PkUuidTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("pk_uuid"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/result_every_primitive_struct_string_table.rs b/sdks/rust/tests/test-client/src/module_bindings/result_every_primitive_struct_string_table.rs index 2536cbb8b0f..365d692554a 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/result_every_primitive_struct_string_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/result_every_primitive_struct_string_table.rs @@ -43,7 +43,7 @@ impl ResultEveryPrimitiveStructStringTableAccess for super::RemoteTables { pub struct ResultEveryPrimitiveStructStringInsertCallbackId(__sdk::CallbackId); pub struct ResultEveryPrimitiveStructStringDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for ResultEveryPrimitiveStructStringTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for ResultEveryPrimitiveStructStringTableHandle<'ctx> { type Row = ResultEveryPrimitiveStructString; type EventContext = super::EventContext; @@ -53,7 +53,9 @@ impl<'ctx> __sdk::Table for ResultEveryPrimitiveStructStringTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for ResultEveryPrimitiveStructStringTableHandle<'ctx> { type InsertCallbackId = ResultEveryPrimitiveStructStringInsertCallbackId; fn on_insert( @@ -66,7 +68,9 @@ impl<'ctx> __sdk::Table for ResultEveryPrimitiveStructStringTableHandle<'ctx> { fn remove_on_insert(&self, callback: ResultEveryPrimitiveStructStringInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for ResultEveryPrimitiveStructStringTableHandle<'ctx> { type DeleteCallbackId = ResultEveryPrimitiveStructStringDeleteCallbackId; fn on_delete( @@ -81,6 +85,8 @@ impl<'ctx> __sdk::Table for ResultEveryPrimitiveStructStringTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for ResultEveryPrimitiveStructStringTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = diff --git a/sdks/rust/tests/test-client/src/module_bindings/result_i_32_string_table.rs b/sdks/rust/tests/test-client/src/module_bindings/result_i_32_string_table.rs index 991122618d2..d55dcb8f882 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/result_i_32_string_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/result_i_32_string_table.rs @@ -40,7 +40,7 @@ impl ResultI32StringTableAccess for super::RemoteTables { pub struct ResultI32StringInsertCallbackId(__sdk::CallbackId); pub struct ResultI32StringDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for ResultI32StringTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for ResultI32StringTableHandle<'ctx> { type Row = ResultI32String; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for ResultI32StringTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for ResultI32StringTableHandle<'ctx> { type InsertCallbackId = ResultI32StringInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for ResultI32StringTableHandle<'ctx> { fn remove_on_insert(&self, callback: ResultI32StringInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for ResultI32StringTableHandle<'ctx> { type DeleteCallbackId = ResultI32StringDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for ResultI32StringTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for ResultI32StringTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("result_i_32_string"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/result_identity_string_table.rs b/sdks/rust/tests/test-client/src/module_bindings/result_identity_string_table.rs index 34d9f6e4cee..297c34746aa 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/result_identity_string_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/result_identity_string_table.rs @@ -40,7 +40,7 @@ impl ResultIdentityStringTableAccess for super::RemoteTables { pub struct ResultIdentityStringInsertCallbackId(__sdk::CallbackId); pub struct ResultIdentityStringDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for ResultIdentityStringTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for ResultIdentityStringTableHandle<'ctx> { type Row = ResultIdentityString; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for ResultIdentityStringTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for ResultIdentityStringTableHandle<'ctx> { type InsertCallbackId = ResultIdentityStringInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for ResultIdentityStringTableHandle<'ctx> { fn remove_on_insert(&self, callback: ResultIdentityStringInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for ResultIdentityStringTableHandle<'ctx> { type DeleteCallbackId = ResultIdentityStringDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for ResultIdentityStringTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for ResultIdentityStringTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("result_identity_string"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/result_simple_enum_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/result_simple_enum_i_32_table.rs index b35acf45ecc..5730028cbf9 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/result_simple_enum_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/result_simple_enum_i_32_table.rs @@ -41,7 +41,7 @@ impl ResultSimpleEnumI32TableAccess for super::RemoteTables { pub struct ResultSimpleEnumI32InsertCallbackId(__sdk::CallbackId); pub struct ResultSimpleEnumI32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for ResultSimpleEnumI32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for ResultSimpleEnumI32TableHandle<'ctx> { type Row = ResultSimpleEnumI32; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for ResultSimpleEnumI32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for ResultSimpleEnumI32TableHandle<'ctx> { type InsertCallbackId = ResultSimpleEnumI32InsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for ResultSimpleEnumI32TableHandle<'ctx> { fn remove_on_insert(&self, callback: ResultSimpleEnumI32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for ResultSimpleEnumI32TableHandle<'ctx> { type DeleteCallbackId = ResultSimpleEnumI32DeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for ResultSimpleEnumI32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for ResultSimpleEnumI32TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("result_simple_enum_i_32"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/result_string_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/result_string_i_32_table.rs index 5d611cd1068..b67900b6426 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/result_string_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/result_string_i_32_table.rs @@ -40,7 +40,7 @@ impl ResultStringI32TableAccess for super::RemoteTables { pub struct ResultStringI32InsertCallbackId(__sdk::CallbackId); pub struct ResultStringI32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for ResultStringI32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for ResultStringI32TableHandle<'ctx> { type Row = ResultStringI32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for ResultStringI32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for ResultStringI32TableHandle<'ctx> { type InsertCallbackId = ResultStringI32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for ResultStringI32TableHandle<'ctx> { fn remove_on_insert(&self, callback: ResultStringI32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for ResultStringI32TableHandle<'ctx> { type DeleteCallbackId = ResultStringI32DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for ResultStringI32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for ResultStringI32TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("result_string_i_32"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/result_vec_i_32_string_table.rs b/sdks/rust/tests/test-client/src/module_bindings/result_vec_i_32_string_table.rs index afd2fea744b..99e265f56bf 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/result_vec_i_32_string_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/result_vec_i_32_string_table.rs @@ -40,7 +40,7 @@ impl ResultVecI32StringTableAccess for super::RemoteTables { pub struct ResultVecI32StringInsertCallbackId(__sdk::CallbackId); pub struct ResultVecI32StringDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for ResultVecI32StringTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for ResultVecI32StringTableHandle<'ctx> { type Row = ResultVecI32String; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for ResultVecI32StringTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for ResultVecI32StringTableHandle<'ctx> { type InsertCallbackId = ResultVecI32StringInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for ResultVecI32StringTableHandle<'ctx> { fn remove_on_insert(&self, callback: ResultVecI32StringInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for ResultVecI32StringTableHandle<'ctx> { type DeleteCallbackId = ResultVecI32StringDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for ResultVecI32StringTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for ResultVecI32StringTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("result_vec_i_32_string"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/scheduled_table_table.rs b/sdks/rust/tests/test-client/src/module_bindings/scheduled_table_table.rs index 873aed85c1c..dc20c817df6 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/scheduled_table_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/scheduled_table_table.rs @@ -40,7 +40,7 @@ impl ScheduledTableTableAccess for super::RemoteTables { pub struct ScheduledTableInsertCallbackId(__sdk::CallbackId); pub struct ScheduledTableDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for ScheduledTableTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for ScheduledTableTableHandle<'ctx> { type Row = ScheduledTable; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for ScheduledTableTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for ScheduledTableTableHandle<'ctx> { type InsertCallbackId = ScheduledTableInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for ScheduledTableTableHandle<'ctx> { fn remove_on_insert(&self, callback: ScheduledTableInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for ScheduledTableTableHandle<'ctx> { type DeleteCallbackId = ScheduledTableDeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for ScheduledTableTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for ScheduledTableTableHandle<'ctx> {} + pub struct ScheduledTableUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for ScheduledTableTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for ScheduledTableTableHandle<'ctx> { type UpdateCallbackId = ScheduledTableUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for ScheduledTableTableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for ScheduledTableTableHandle<'ctx> {} + /// Access to the `scheduled_id` unique index on the table `scheduled_table`, /// which allows point queries on the field of the same name /// via the [`ScheduledTableScheduledIdUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/send_scheduled_message_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/send_scheduled_message_reducer.rs deleted file mode 100644 index 2c6a5d14efa..00000000000 --- a/sdks/rust/tests/test-client/src/module_bindings/send_scheduled_message_reducer.rs +++ /dev/null @@ -1,68 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE -// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. - -#![allow(unused, clippy::all)] -use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; - -use super::scheduled_table_type::ScheduledTable; - -#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)] -#[sats(crate = __lib)] -pub(super) struct SendScheduledMessageArgs { - pub arg: ScheduledTable, -} - -impl From for super::Reducer { - fn from(args: SendScheduledMessageArgs) -> Self { - Self::SendScheduledMessage { arg: args.arg } - } -} - -impl __sdk::InModule for SendScheduledMessageArgs { - type Module = super::RemoteModule; -} - -#[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `send_scheduled_message`. -/// -/// Implemented for [`super::RemoteReducers`]. -pub trait send_scheduled_message { - /// Request that the remote module invoke the reducer `send_scheduled_message` to run as soon as possible. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and this method provides no way to listen for its completion status. - /// /// Use [`send_scheduled_message:send_scheduled_message_then`] to run a callback after the reducer completes. - fn send_scheduled_message(&self, arg: ScheduledTable) -> __sdk::Result<()> { - self.send_scheduled_message_then(arg, |_, _| {}) - } - - /// Request that the remote module invoke the reducer `send_scheduled_message` to run as soon as possible, - /// registering `callback` to run when we are notified that the reducer completed. - /// - /// This method returns immediately, and errors only if we are unable to send the request. - /// The reducer will run asynchronously in the future, - /// and its status can be observed with the `callback`. - fn send_scheduled_message_then( - &self, - arg: ScheduledTable, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()>; -} - -impl send_scheduled_message for super::RemoteReducers { - fn send_scheduled_message_then( - &self, - arg: ScheduledTable, - - callback: impl FnOnce(&super::ReducerEventContext, Result, __sdk::InternalError>) - + Send - + 'static, - ) -> __sdk::Result<()> { - self.imp - .invoke_reducer_with_callback(SendScheduledMessageArgs { arg }, callback) - } -} diff --git a/sdks/rust/tests/test-client/src/module_bindings/table_holds_table_table.rs b/sdks/rust/tests/test-client/src/module_bindings/table_holds_table_table.rs index 7417956456d..a33130680fb 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/table_holds_table_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/table_holds_table_table.rs @@ -42,7 +42,7 @@ impl TableHoldsTableTableAccess for super::RemoteTables { pub struct TableHoldsTableInsertCallbackId(__sdk::CallbackId); pub struct TableHoldsTableDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for TableHoldsTableTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for TableHoldsTableTableHandle<'ctx> { type Row = TableHoldsTable; type EventContext = super::EventContext; @@ -52,7 +52,9 @@ impl<'ctx> __sdk::Table for TableHoldsTableTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for TableHoldsTableTableHandle<'ctx> { type InsertCallbackId = TableHoldsTableInsertCallbackId; fn on_insert( @@ -65,7 +67,9 @@ impl<'ctx> __sdk::Table for TableHoldsTableTableHandle<'ctx> { fn remove_on_insert(&self, callback: TableHoldsTableInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for TableHoldsTableTableHandle<'ctx> { type DeleteCallbackId = TableHoldsTableDeleteCallbackId; fn on_delete( @@ -80,6 +84,8 @@ impl<'ctx> __sdk::Table for TableHoldsTableTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for TableHoldsTableTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("table_holds_table"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_bool_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_bool_table.rs index cf53f787bc2..cdb8a66fac5 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_bool_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_bool_table.rs @@ -40,7 +40,7 @@ impl UniqueBoolTableAccess for super::RemoteTables { pub struct UniqueBoolInsertCallbackId(__sdk::CallbackId); pub struct UniqueBoolDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueBoolTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueBoolTableHandle<'ctx> { type Row = UniqueBool; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueBoolTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueBoolTableHandle<'ctx> { type InsertCallbackId = UniqueBoolInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueBoolTableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueBoolInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueBoolTableHandle<'ctx> { type DeleteCallbackId = UniqueBoolDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueBoolTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueBoolTableHandle<'ctx> {} + /// Access to the `b` unique index on the table `unique_bool`, /// which allows point queries on the field of the same name /// via the [`UniqueBoolBUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_connection_id_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_connection_id_table.rs index c5f1d74fd95..561dd59bed6 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_connection_id_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_connection_id_table.rs @@ -40,7 +40,7 @@ impl UniqueConnectionIdTableAccess for super::RemoteTables { pub struct UniqueConnectionIdInsertCallbackId(__sdk::CallbackId); pub struct UniqueConnectionIdDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueConnectionIdTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueConnectionIdTableHandle<'ctx> { type Row = UniqueConnectionId; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueConnectionIdTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueConnectionIdTableHandle<'ctx> { type InsertCallbackId = UniqueConnectionIdInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueConnectionIdTableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueConnectionIdInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueConnectionIdTableHandle<'ctx> { type DeleteCallbackId = UniqueConnectionIdDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueConnectionIdTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueConnectionIdTableHandle<'ctx> {} + /// Access to the `a` unique index on the table `unique_connection_id`, /// which allows point queries on the field of the same name /// via the [`UniqueConnectionIdAUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_i_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_i_128_table.rs index 8282e5cbccd..149c36f18fc 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_i_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_i_128_table.rs @@ -40,7 +40,7 @@ impl UniqueI128TableAccess for super::RemoteTables { pub struct UniqueI128InsertCallbackId(__sdk::CallbackId); pub struct UniqueI128DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueI128TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueI128TableHandle<'ctx> { type Row = UniqueI128; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueI128TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueI128TableHandle<'ctx> { type InsertCallbackId = UniqueI128InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueI128TableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueI128InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueI128TableHandle<'ctx> { type DeleteCallbackId = UniqueI128DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueI128TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueI128TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `unique_i_128`, /// which allows point queries on the field of the same name /// via the [`UniqueI128NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_i_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_i_16_table.rs index b89c23ce1c5..6753d7ba767 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_i_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_i_16_table.rs @@ -40,7 +40,7 @@ impl UniqueI16TableAccess for super::RemoteTables { pub struct UniqueI16InsertCallbackId(__sdk::CallbackId); pub struct UniqueI16DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueI16TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueI16TableHandle<'ctx> { type Row = UniqueI16; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueI16TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueI16TableHandle<'ctx> { type InsertCallbackId = UniqueI16InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueI16TableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueI16InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueI16TableHandle<'ctx> { type DeleteCallbackId = UniqueI16DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueI16TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueI16TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `unique_i_16`, /// which allows point queries on the field of the same name /// via the [`UniqueI16NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_i_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_i_256_table.rs index 33b9d3dfad2..f5758a9e3b8 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_i_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_i_256_table.rs @@ -40,7 +40,7 @@ impl UniqueI256TableAccess for super::RemoteTables { pub struct UniqueI256InsertCallbackId(__sdk::CallbackId); pub struct UniqueI256DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueI256TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueI256TableHandle<'ctx> { type Row = UniqueI256; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueI256TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueI256TableHandle<'ctx> { type InsertCallbackId = UniqueI256InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueI256TableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueI256InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueI256TableHandle<'ctx> { type DeleteCallbackId = UniqueI256DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueI256TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueI256TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `unique_i_256`, /// which allows point queries on the field of the same name /// via the [`UniqueI256NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_i_32_table.rs index cead866df5c..07eb1ac3f67 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_i_32_table.rs @@ -40,7 +40,7 @@ impl UniqueI32TableAccess for super::RemoteTables { pub struct UniqueI32InsertCallbackId(__sdk::CallbackId); pub struct UniqueI32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueI32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueI32TableHandle<'ctx> { type Row = UniqueI32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueI32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueI32TableHandle<'ctx> { type InsertCallbackId = UniqueI32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueI32TableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueI32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueI32TableHandle<'ctx> { type DeleteCallbackId = UniqueI32DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueI32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueI32TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `unique_i_32`, /// which allows point queries on the field of the same name /// via the [`UniqueI32NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_i_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_i_64_table.rs index 514474aa4b1..d6421a963cb 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_i_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_i_64_table.rs @@ -40,7 +40,7 @@ impl UniqueI64TableAccess for super::RemoteTables { pub struct UniqueI64InsertCallbackId(__sdk::CallbackId); pub struct UniqueI64DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueI64TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueI64TableHandle<'ctx> { type Row = UniqueI64; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueI64TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueI64TableHandle<'ctx> { type InsertCallbackId = UniqueI64InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueI64TableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueI64InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueI64TableHandle<'ctx> { type DeleteCallbackId = UniqueI64DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueI64TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueI64TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `unique_i_64`, /// which allows point queries on the field of the same name /// via the [`UniqueI64NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_i_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_i_8_table.rs index a4a6bef6d5b..c1d6ea17921 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_i_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_i_8_table.rs @@ -40,7 +40,7 @@ impl UniqueI8TableAccess for super::RemoteTables { pub struct UniqueI8InsertCallbackId(__sdk::CallbackId); pub struct UniqueI8DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueI8TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueI8TableHandle<'ctx> { type Row = UniqueI8; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueI8TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueI8TableHandle<'ctx> { type InsertCallbackId = UniqueI8InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueI8TableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueI8InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueI8TableHandle<'ctx> { type DeleteCallbackId = UniqueI8DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueI8TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueI8TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `unique_i_8`, /// which allows point queries on the field of the same name /// via the [`UniqueI8NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_identity_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_identity_table.rs index 69d3678c2a9..7d323ce0709 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_identity_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_identity_table.rs @@ -40,7 +40,7 @@ impl UniqueIdentityTableAccess for super::RemoteTables { pub struct UniqueIdentityInsertCallbackId(__sdk::CallbackId); pub struct UniqueIdentityDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueIdentityTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueIdentityTableHandle<'ctx> { type Row = UniqueIdentity; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueIdentityTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueIdentityTableHandle<'ctx> { type InsertCallbackId = UniqueIdentityInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueIdentityTableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueIdentityInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueIdentityTableHandle<'ctx> { type DeleteCallbackId = UniqueIdentityDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueIdentityTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueIdentityTableHandle<'ctx> {} + /// Access to the `i` unique index on the table `unique_identity`, /// which allows point queries on the field of the same name /// via the [`UniqueIdentityIUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_string_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_string_table.rs index f5af15d05a6..33e60964a58 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_string_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_string_table.rs @@ -40,7 +40,7 @@ impl UniqueStringTableAccess for super::RemoteTables { pub struct UniqueStringInsertCallbackId(__sdk::CallbackId); pub struct UniqueStringDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueStringTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueStringTableHandle<'ctx> { type Row = UniqueString; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueStringTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueStringTableHandle<'ctx> { type InsertCallbackId = UniqueStringInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueStringTableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueStringInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueStringTableHandle<'ctx> { type DeleteCallbackId = UniqueStringDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueStringTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueStringTableHandle<'ctx> {} + /// Access to the `s` unique index on the table `unique_string`, /// which allows point queries on the field of the same name /// via the [`UniqueStringSUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_u_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_u_128_table.rs index 4780f357b8b..90051f8bd76 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_u_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_u_128_table.rs @@ -40,7 +40,7 @@ impl UniqueU128TableAccess for super::RemoteTables { pub struct UniqueU128InsertCallbackId(__sdk::CallbackId); pub struct UniqueU128DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueU128TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueU128TableHandle<'ctx> { type Row = UniqueU128; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueU128TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueU128TableHandle<'ctx> { type InsertCallbackId = UniqueU128InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueU128TableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueU128InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueU128TableHandle<'ctx> { type DeleteCallbackId = UniqueU128DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueU128TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueU128TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `unique_u_128`, /// which allows point queries on the field of the same name /// via the [`UniqueU128NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_u_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_u_16_table.rs index f78ed798c9b..c20b3e6ae94 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_u_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_u_16_table.rs @@ -40,7 +40,7 @@ impl UniqueU16TableAccess for super::RemoteTables { pub struct UniqueU16InsertCallbackId(__sdk::CallbackId); pub struct UniqueU16DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueU16TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueU16TableHandle<'ctx> { type Row = UniqueU16; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueU16TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueU16TableHandle<'ctx> { type InsertCallbackId = UniqueU16InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueU16TableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueU16InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueU16TableHandle<'ctx> { type DeleteCallbackId = UniqueU16DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueU16TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueU16TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `unique_u_16`, /// which allows point queries on the field of the same name /// via the [`UniqueU16NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_u_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_u_256_table.rs index 289808a8c47..feaf215092a 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_u_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_u_256_table.rs @@ -40,7 +40,7 @@ impl UniqueU256TableAccess for super::RemoteTables { pub struct UniqueU256InsertCallbackId(__sdk::CallbackId); pub struct UniqueU256DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueU256TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueU256TableHandle<'ctx> { type Row = UniqueU256; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueU256TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueU256TableHandle<'ctx> { type InsertCallbackId = UniqueU256InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueU256TableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueU256InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueU256TableHandle<'ctx> { type DeleteCallbackId = UniqueU256DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueU256TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueU256TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `unique_u_256`, /// which allows point queries on the field of the same name /// via the [`UniqueU256NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_u_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_u_32_table.rs index a07fa51d146..45d9a0eb546 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_u_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_u_32_table.rs @@ -40,7 +40,7 @@ impl UniqueU32TableAccess for super::RemoteTables { pub struct UniqueU32InsertCallbackId(__sdk::CallbackId); pub struct UniqueU32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueU32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueU32TableHandle<'ctx> { type Row = UniqueU32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueU32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueU32TableHandle<'ctx> { type InsertCallbackId = UniqueU32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueU32TableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueU32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueU32TableHandle<'ctx> { type DeleteCallbackId = UniqueU32DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueU32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueU32TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `unique_u_32`, /// which allows point queries on the field of the same name /// via the [`UniqueU32NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_u_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_u_64_table.rs index 032c1032ae9..06b81f12054 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_u_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_u_64_table.rs @@ -40,7 +40,7 @@ impl UniqueU64TableAccess for super::RemoteTables { pub struct UniqueU64InsertCallbackId(__sdk::CallbackId); pub struct UniqueU64DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueU64TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueU64TableHandle<'ctx> { type Row = UniqueU64; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueU64TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueU64TableHandle<'ctx> { type InsertCallbackId = UniqueU64InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueU64TableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueU64InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueU64TableHandle<'ctx> { type DeleteCallbackId = UniqueU64DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueU64TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueU64TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `unique_u_64`, /// which allows point queries on the field of the same name /// via the [`UniqueU64NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_u_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_u_8_table.rs index 1bceb392864..75a343f2e95 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_u_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_u_8_table.rs @@ -40,7 +40,7 @@ impl UniqueU8TableAccess for super::RemoteTables { pub struct UniqueU8InsertCallbackId(__sdk::CallbackId); pub struct UniqueU8DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueU8TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueU8TableHandle<'ctx> { type Row = UniqueU8; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueU8TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueU8TableHandle<'ctx> { type InsertCallbackId = UniqueU8InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueU8TableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueU8InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueU8TableHandle<'ctx> { type DeleteCallbackId = UniqueU8DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueU8TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueU8TableHandle<'ctx> {} + /// Access to the `n` unique index on the table `unique_u_8`, /// which allows point queries on the field of the same name /// via the [`UniqueU8NUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_uuid_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_uuid_table.rs index 771136825a1..275ade9317d 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_uuid_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_uuid_table.rs @@ -40,7 +40,7 @@ impl UniqueUuidTableAccess for super::RemoteTables { pub struct UniqueUuidInsertCallbackId(__sdk::CallbackId); pub struct UniqueUuidDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UniqueUuidTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UniqueUuidTableHandle<'ctx> { type Row = UniqueUuid; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UniqueUuidTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UniqueUuidTableHandle<'ctx> { type InsertCallbackId = UniqueUuidInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UniqueUuidTableHandle<'ctx> { fn remove_on_insert(&self, callback: UniqueUuidInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UniqueUuidTableHandle<'ctx> { type DeleteCallbackId = UniqueUuidDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for UniqueUuidTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UniqueUuidTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("unique_uuid"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/users_table.rs b/sdks/rust/tests/test-client/src/module_bindings/users_table.rs index bb231ad743a..eeec2345f42 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/users_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/users_table.rs @@ -40,7 +40,7 @@ impl UsersTableAccess for super::RemoteTables { pub struct UsersInsertCallbackId(__sdk::CallbackId); pub struct UsersDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for UsersTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for UsersTableHandle<'ctx> { type Row = Users; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for UsersTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for UsersTableHandle<'ctx> { type InsertCallbackId = UsersInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for UsersTableHandle<'ctx> { fn remove_on_insert(&self, callback: UsersInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for UsersTableHandle<'ctx> { type DeleteCallbackId = UsersDeleteCallbackId; fn on_delete( @@ -78,9 +82,11 @@ impl<'ctx> __sdk::Table for UsersTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for UsersTableHandle<'ctx> {} + pub struct UsersUpdateCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::TableWithPrimaryKey for UsersTableHandle<'ctx> { +impl<'ctx> __sdk::WithUpdate for UsersTableHandle<'ctx> { type UpdateCallbackId = UsersUpdateCallbackId; fn on_update( @@ -95,6 +101,8 @@ impl<'ctx> __sdk::TableWithPrimaryKey for UsersTableHandle<'ctx> { } } +impl<'ctx> __sdk::TableWithPrimaryKey for UsersTableHandle<'ctx> {} + /// Access to the `identity` unique index on the table `users`, /// which allows point queries on the field of the same name /// via the [`UsersIdentityUnique::find`] method. diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_bool_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_bool_table.rs index 8967237ef97..61d57920cb9 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_bool_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_bool_table.rs @@ -40,7 +40,7 @@ impl VecBoolTableAccess for super::RemoteTables { pub struct VecBoolInsertCallbackId(__sdk::CallbackId); pub struct VecBoolDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecBoolTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecBoolTableHandle<'ctx> { type Row = VecBool; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecBoolTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecBoolTableHandle<'ctx> { type InsertCallbackId = VecBoolInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecBoolTableHandle<'ctx> { fn remove_on_insert(&self, callback: VecBoolInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecBoolTableHandle<'ctx> { type DeleteCallbackId = VecBoolDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecBoolTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecBoolTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_bool"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_byte_struct_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_byte_struct_table.rs index 90f2062bc76..106c1e8f9d2 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_byte_struct_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_byte_struct_table.rs @@ -41,7 +41,7 @@ impl VecByteStructTableAccess for super::RemoteTables { pub struct VecByteStructInsertCallbackId(__sdk::CallbackId); pub struct VecByteStructDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecByteStructTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecByteStructTableHandle<'ctx> { type Row = VecByteStruct; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for VecByteStructTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecByteStructTableHandle<'ctx> { type InsertCallbackId = VecByteStructInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for VecByteStructTableHandle<'ctx> { fn remove_on_insert(&self, callback: VecByteStructInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecByteStructTableHandle<'ctx> { type DeleteCallbackId = VecByteStructDeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for VecByteStructTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecByteStructTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_byte_struct"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_connection_id_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_connection_id_table.rs index b371fff1010..11f6e1e5400 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_connection_id_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_connection_id_table.rs @@ -40,7 +40,7 @@ impl VecConnectionIdTableAccess for super::RemoteTables { pub struct VecConnectionIdInsertCallbackId(__sdk::CallbackId); pub struct VecConnectionIdDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecConnectionIdTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecConnectionIdTableHandle<'ctx> { type Row = VecConnectionId; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecConnectionIdTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecConnectionIdTableHandle<'ctx> { type InsertCallbackId = VecConnectionIdInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecConnectionIdTableHandle<'ctx> { fn remove_on_insert(&self, callback: VecConnectionIdInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecConnectionIdTableHandle<'ctx> { type DeleteCallbackId = VecConnectionIdDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecConnectionIdTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecConnectionIdTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_connection_id"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_enum_with_payload_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_enum_with_payload_table.rs index c27f983c73a..3047beed684 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_enum_with_payload_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_enum_with_payload_table.rs @@ -41,7 +41,7 @@ impl VecEnumWithPayloadTableAccess for super::RemoteTables { pub struct VecEnumWithPayloadInsertCallbackId(__sdk::CallbackId); pub struct VecEnumWithPayloadDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecEnumWithPayloadTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecEnumWithPayloadTableHandle<'ctx> { type Row = VecEnumWithPayload; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for VecEnumWithPayloadTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecEnumWithPayloadTableHandle<'ctx> { type InsertCallbackId = VecEnumWithPayloadInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for VecEnumWithPayloadTableHandle<'ctx> { fn remove_on_insert(&self, callback: VecEnumWithPayloadInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecEnumWithPayloadTableHandle<'ctx> { type DeleteCallbackId = VecEnumWithPayloadDeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for VecEnumWithPayloadTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecEnumWithPayloadTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_enum_with_payload"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_every_primitive_struct_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_every_primitive_struct_table.rs index 8f1e5d0ffcb..4a8fb0634bc 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_every_primitive_struct_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_every_primitive_struct_table.rs @@ -43,7 +43,7 @@ impl VecEveryPrimitiveStructTableAccess for super::RemoteTables { pub struct VecEveryPrimitiveStructInsertCallbackId(__sdk::CallbackId); pub struct VecEveryPrimitiveStructDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecEveryPrimitiveStructTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecEveryPrimitiveStructTableHandle<'ctx> { type Row = VecEveryPrimitiveStruct; type EventContext = super::EventContext; @@ -53,7 +53,9 @@ impl<'ctx> __sdk::Table for VecEveryPrimitiveStructTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecEveryPrimitiveStructTableHandle<'ctx> { type InsertCallbackId = VecEveryPrimitiveStructInsertCallbackId; fn on_insert( @@ -66,7 +68,9 @@ impl<'ctx> __sdk::Table for VecEveryPrimitiveStructTableHandle<'ctx> { fn remove_on_insert(&self, callback: VecEveryPrimitiveStructInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecEveryPrimitiveStructTableHandle<'ctx> { type DeleteCallbackId = VecEveryPrimitiveStructDeleteCallbackId; fn on_delete( @@ -81,6 +85,8 @@ impl<'ctx> __sdk::Table for VecEveryPrimitiveStructTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecEveryPrimitiveStructTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_every_primitive_struct"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_every_vec_struct_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_every_vec_struct_table.rs index b368706c5d6..3ea52132bbd 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_every_vec_struct_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_every_vec_struct_table.rs @@ -41,7 +41,7 @@ impl VecEveryVecStructTableAccess for super::RemoteTables { pub struct VecEveryVecStructInsertCallbackId(__sdk::CallbackId); pub struct VecEveryVecStructDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecEveryVecStructTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecEveryVecStructTableHandle<'ctx> { type Row = VecEveryVecStruct; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for VecEveryVecStructTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecEveryVecStructTableHandle<'ctx> { type InsertCallbackId = VecEveryVecStructInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for VecEveryVecStructTableHandle<'ctx> { fn remove_on_insert(&self, callback: VecEveryVecStructInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecEveryVecStructTableHandle<'ctx> { type DeleteCallbackId = VecEveryVecStructDeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for VecEveryVecStructTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecEveryVecStructTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_every_vec_struct"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_f_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_f_32_table.rs index 470119b3a7f..05dde35a6c4 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_f_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_f_32_table.rs @@ -40,7 +40,7 @@ impl VecF32TableAccess for super::RemoteTables { pub struct VecF32InsertCallbackId(__sdk::CallbackId); pub struct VecF32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecF32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecF32TableHandle<'ctx> { type Row = VecF32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecF32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecF32TableHandle<'ctx> { type InsertCallbackId = VecF32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecF32TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecF32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecF32TableHandle<'ctx> { type DeleteCallbackId = VecF32DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecF32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecF32TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_f_32"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_f_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_f_64_table.rs index f1d6ff21724..f85e0ecc592 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_f_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_f_64_table.rs @@ -40,7 +40,7 @@ impl VecF64TableAccess for super::RemoteTables { pub struct VecF64InsertCallbackId(__sdk::CallbackId); pub struct VecF64DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecF64TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecF64TableHandle<'ctx> { type Row = VecF64; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecF64TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecF64TableHandle<'ctx> { type InsertCallbackId = VecF64InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecF64TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecF64InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecF64TableHandle<'ctx> { type DeleteCallbackId = VecF64DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecF64TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecF64TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_f_64"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_i_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_i_128_table.rs index 110c759278b..2ad8b1aec49 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_i_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_i_128_table.rs @@ -40,7 +40,7 @@ impl VecI128TableAccess for super::RemoteTables { pub struct VecI128InsertCallbackId(__sdk::CallbackId); pub struct VecI128DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecI128TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecI128TableHandle<'ctx> { type Row = VecI128; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecI128TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecI128TableHandle<'ctx> { type InsertCallbackId = VecI128InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecI128TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecI128InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecI128TableHandle<'ctx> { type DeleteCallbackId = VecI128DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecI128TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecI128TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_i_128"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_i_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_i_16_table.rs index 76104d0df08..7a5fbd1f601 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_i_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_i_16_table.rs @@ -40,7 +40,7 @@ impl VecI16TableAccess for super::RemoteTables { pub struct VecI16InsertCallbackId(__sdk::CallbackId); pub struct VecI16DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecI16TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecI16TableHandle<'ctx> { type Row = VecI16; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecI16TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecI16TableHandle<'ctx> { type InsertCallbackId = VecI16InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecI16TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecI16InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecI16TableHandle<'ctx> { type DeleteCallbackId = VecI16DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecI16TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecI16TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_i_16"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_i_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_i_256_table.rs index 93b66ec77e7..0f608cb53e7 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_i_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_i_256_table.rs @@ -40,7 +40,7 @@ impl VecI256TableAccess for super::RemoteTables { pub struct VecI256InsertCallbackId(__sdk::CallbackId); pub struct VecI256DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecI256TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecI256TableHandle<'ctx> { type Row = VecI256; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecI256TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecI256TableHandle<'ctx> { type InsertCallbackId = VecI256InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecI256TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecI256InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecI256TableHandle<'ctx> { type DeleteCallbackId = VecI256DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecI256TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecI256TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_i_256"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_i_32_table.rs index 7adc5dedcb6..b8b27f54924 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_i_32_table.rs @@ -40,7 +40,7 @@ impl VecI32TableAccess for super::RemoteTables { pub struct VecI32InsertCallbackId(__sdk::CallbackId); pub struct VecI32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecI32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecI32TableHandle<'ctx> { type Row = VecI32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecI32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecI32TableHandle<'ctx> { type InsertCallbackId = VecI32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecI32TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecI32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecI32TableHandle<'ctx> { type DeleteCallbackId = VecI32DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecI32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecI32TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_i_32"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_i_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_i_64_table.rs index c1c3d9fe6d4..e1b3308d580 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_i_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_i_64_table.rs @@ -40,7 +40,7 @@ impl VecI64TableAccess for super::RemoteTables { pub struct VecI64InsertCallbackId(__sdk::CallbackId); pub struct VecI64DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecI64TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecI64TableHandle<'ctx> { type Row = VecI64; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecI64TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecI64TableHandle<'ctx> { type InsertCallbackId = VecI64InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecI64TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecI64InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecI64TableHandle<'ctx> { type DeleteCallbackId = VecI64DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecI64TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecI64TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_i_64"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_i_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_i_8_table.rs index 4485c46b9bf..254f17bde52 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_i_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_i_8_table.rs @@ -40,7 +40,7 @@ impl VecI8TableAccess for super::RemoteTables { pub struct VecI8InsertCallbackId(__sdk::CallbackId); pub struct VecI8DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecI8TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecI8TableHandle<'ctx> { type Row = VecI8; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecI8TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecI8TableHandle<'ctx> { type InsertCallbackId = VecI8InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecI8TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecI8InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecI8TableHandle<'ctx> { type DeleteCallbackId = VecI8DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecI8TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecI8TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_i_8"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_identity_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_identity_table.rs index 45723d9cf5a..b24f93ea2bd 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_identity_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_identity_table.rs @@ -40,7 +40,7 @@ impl VecIdentityTableAccess for super::RemoteTables { pub struct VecIdentityInsertCallbackId(__sdk::CallbackId); pub struct VecIdentityDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecIdentityTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecIdentityTableHandle<'ctx> { type Row = VecIdentity; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecIdentityTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecIdentityTableHandle<'ctx> { type InsertCallbackId = VecIdentityInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecIdentityTableHandle<'ctx> { fn remove_on_insert(&self, callback: VecIdentityInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecIdentityTableHandle<'ctx> { type DeleteCallbackId = VecIdentityDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecIdentityTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecIdentityTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_identity"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_simple_enum_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_simple_enum_table.rs index e047b02490d..a2411211240 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_simple_enum_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_simple_enum_table.rs @@ -41,7 +41,7 @@ impl VecSimpleEnumTableAccess for super::RemoteTables { pub struct VecSimpleEnumInsertCallbackId(__sdk::CallbackId); pub struct VecSimpleEnumDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecSimpleEnumTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecSimpleEnumTableHandle<'ctx> { type Row = VecSimpleEnum; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for VecSimpleEnumTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecSimpleEnumTableHandle<'ctx> { type InsertCallbackId = VecSimpleEnumInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for VecSimpleEnumTableHandle<'ctx> { fn remove_on_insert(&self, callback: VecSimpleEnumInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecSimpleEnumTableHandle<'ctx> { type DeleteCallbackId = VecSimpleEnumDeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for VecSimpleEnumTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecSimpleEnumTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_simple_enum"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_string_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_string_table.rs index b18da99a950..05998304ad9 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_string_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_string_table.rs @@ -40,7 +40,7 @@ impl VecStringTableAccess for super::RemoteTables { pub struct VecStringInsertCallbackId(__sdk::CallbackId); pub struct VecStringDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecStringTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecStringTableHandle<'ctx> { type Row = VecString; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecStringTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecStringTableHandle<'ctx> { type InsertCallbackId = VecStringInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecStringTableHandle<'ctx> { fn remove_on_insert(&self, callback: VecStringInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecStringTableHandle<'ctx> { type DeleteCallbackId = VecStringDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecStringTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecStringTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_string"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_timestamp_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_timestamp_table.rs index ec532416149..2800cf69d37 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_timestamp_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_timestamp_table.rs @@ -40,7 +40,7 @@ impl VecTimestampTableAccess for super::RemoteTables { pub struct VecTimestampInsertCallbackId(__sdk::CallbackId); pub struct VecTimestampDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecTimestampTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecTimestampTableHandle<'ctx> { type Row = VecTimestamp; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecTimestampTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecTimestampTableHandle<'ctx> { type InsertCallbackId = VecTimestampInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecTimestampTableHandle<'ctx> { fn remove_on_insert(&self, callback: VecTimestampInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecTimestampTableHandle<'ctx> { type DeleteCallbackId = VecTimestampDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecTimestampTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecTimestampTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_timestamp"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_u_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_u_128_table.rs index 8f96d7434eb..9bbab107771 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_u_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_u_128_table.rs @@ -40,7 +40,7 @@ impl VecU128TableAccess for super::RemoteTables { pub struct VecU128InsertCallbackId(__sdk::CallbackId); pub struct VecU128DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecU128TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecU128TableHandle<'ctx> { type Row = VecU128; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecU128TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecU128TableHandle<'ctx> { type InsertCallbackId = VecU128InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecU128TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecU128InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecU128TableHandle<'ctx> { type DeleteCallbackId = VecU128DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecU128TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecU128TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_u_128"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_u_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_u_16_table.rs index 2cf50b8b026..ece4253b9d9 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_u_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_u_16_table.rs @@ -40,7 +40,7 @@ impl VecU16TableAccess for super::RemoteTables { pub struct VecU16InsertCallbackId(__sdk::CallbackId); pub struct VecU16DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecU16TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecU16TableHandle<'ctx> { type Row = VecU16; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecU16TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecU16TableHandle<'ctx> { type InsertCallbackId = VecU16InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecU16TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecU16InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecU16TableHandle<'ctx> { type DeleteCallbackId = VecU16DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecU16TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecU16TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_u_16"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_u_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_u_256_table.rs index 2f3c13a0450..2930e29cb91 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_u_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_u_256_table.rs @@ -40,7 +40,7 @@ impl VecU256TableAccess for super::RemoteTables { pub struct VecU256InsertCallbackId(__sdk::CallbackId); pub struct VecU256DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecU256TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecU256TableHandle<'ctx> { type Row = VecU256; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecU256TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecU256TableHandle<'ctx> { type InsertCallbackId = VecU256InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecU256TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecU256InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecU256TableHandle<'ctx> { type DeleteCallbackId = VecU256DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecU256TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecU256TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_u_256"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_u_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_u_32_table.rs index 04fc2d0925c..ce29219971e 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_u_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_u_32_table.rs @@ -40,7 +40,7 @@ impl VecU32TableAccess for super::RemoteTables { pub struct VecU32InsertCallbackId(__sdk::CallbackId); pub struct VecU32DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecU32TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecU32TableHandle<'ctx> { type Row = VecU32; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecU32TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecU32TableHandle<'ctx> { type InsertCallbackId = VecU32InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecU32TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecU32InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecU32TableHandle<'ctx> { type DeleteCallbackId = VecU32DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecU32TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecU32TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_u_32"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_u_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_u_64_table.rs index cfc64e363d5..4d89e4c9838 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_u_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_u_64_table.rs @@ -40,7 +40,7 @@ impl VecU64TableAccess for super::RemoteTables { pub struct VecU64InsertCallbackId(__sdk::CallbackId); pub struct VecU64DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecU64TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecU64TableHandle<'ctx> { type Row = VecU64; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecU64TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecU64TableHandle<'ctx> { type InsertCallbackId = VecU64InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecU64TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecU64InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecU64TableHandle<'ctx> { type DeleteCallbackId = VecU64DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecU64TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecU64TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_u_64"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_u_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_u_8_table.rs index 140444f92ed..85b26082d82 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_u_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_u_8_table.rs @@ -40,7 +40,7 @@ impl VecU8TableAccess for super::RemoteTables { pub struct VecU8InsertCallbackId(__sdk::CallbackId); pub struct VecU8DeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecU8TableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecU8TableHandle<'ctx> { type Row = VecU8; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecU8TableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecU8TableHandle<'ctx> { type InsertCallbackId = VecU8InsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecU8TableHandle<'ctx> { fn remove_on_insert(&self, callback: VecU8InsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecU8TableHandle<'ctx> { type DeleteCallbackId = VecU8DeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecU8TableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecU8TableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_u_8"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_unit_struct_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_unit_struct_table.rs index f3b6eb600a8..36cd0f61824 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_unit_struct_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_unit_struct_table.rs @@ -41,7 +41,7 @@ impl VecUnitStructTableAccess for super::RemoteTables { pub struct VecUnitStructInsertCallbackId(__sdk::CallbackId); pub struct VecUnitStructDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecUnitStructTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecUnitStructTableHandle<'ctx> { type Row = VecUnitStruct; type EventContext = super::EventContext; @@ -51,7 +51,9 @@ impl<'ctx> __sdk::Table for VecUnitStructTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecUnitStructTableHandle<'ctx> { type InsertCallbackId = VecUnitStructInsertCallbackId; fn on_insert( @@ -64,7 +66,9 @@ impl<'ctx> __sdk::Table for VecUnitStructTableHandle<'ctx> { fn remove_on_insert(&self, callback: VecUnitStructInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecUnitStructTableHandle<'ctx> { type DeleteCallbackId = VecUnitStructDeleteCallbackId; fn on_delete( @@ -79,6 +83,8 @@ impl<'ctx> __sdk::Table for VecUnitStructTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecUnitStructTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_unit_struct"); diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_uuid_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_uuid_table.rs index 39054226c88..6aad146c8b4 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_uuid_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_uuid_table.rs @@ -40,7 +40,7 @@ impl VecUuidTableAccess for super::RemoteTables { pub struct VecUuidInsertCallbackId(__sdk::CallbackId); pub struct VecUuidDeleteCallbackId(__sdk::CallbackId); -impl<'ctx> __sdk::Table for VecUuidTableHandle<'ctx> { +impl<'ctx> __sdk::TableLike for VecUuidTableHandle<'ctx> { type Row = VecUuid; type EventContext = super::EventContext; @@ -50,7 +50,9 @@ impl<'ctx> __sdk::Table for VecUuidTableHandle<'ctx> { fn iter(&self) -> impl Iterator + '_ { self.imp.iter() } +} +impl<'ctx> __sdk::WithInsert for VecUuidTableHandle<'ctx> { type InsertCallbackId = VecUuidInsertCallbackId; fn on_insert( @@ -63,7 +65,9 @@ impl<'ctx> __sdk::Table for VecUuidTableHandle<'ctx> { fn remove_on_insert(&self, callback: VecUuidInsertCallbackId) { self.imp.remove_on_insert(callback.0) } +} +impl<'ctx> __sdk::WithDelete for VecUuidTableHandle<'ctx> { type DeleteCallbackId = VecUuidDeleteCallbackId; fn on_delete( @@ -78,6 +82,8 @@ impl<'ctx> __sdk::Table for VecUuidTableHandle<'ctx> { } } +impl<'ctx> __sdk::Table for VecUuidTableHandle<'ctx> {} + #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { let _table = client_cache.get_or_make_table::("vec_uuid"); diff --git a/sdks/rust/tests/view-client/src/test_handlers.rs b/sdks/rust/tests/view-client/src/test_handlers.rs index 21b9dc43ae7..4b3216be848 100644 --- a/sdks/rust/tests/view-client/src/test_handlers.rs +++ b/sdks/rust/tests/view-client/src/test_handlers.rs @@ -1,6 +1,6 @@ use crate::module_bindings::*; use spacetimedb_lib::Identity; -use spacetimedb_sdk::{error::InternalError, DbConnectionBuilder, DbContext, Table}; +use spacetimedb_sdk::{error::InternalError, DbConnectionBuilder, DbContext, WithDelete, WithInsert}; use test_counter::TestCounter; const LOCALHOST: &str = "http://localhost:3000"; diff --git a/sdks/rust/tests/view-pk-client/src/test_handlers.rs b/sdks/rust/tests/view-pk-client/src/test_handlers.rs index 4a7de205d38..acde33e53e3 100644 --- a/sdks/rust/tests/view-pk-client/src/test_handlers.rs +++ b/sdks/rust/tests/view-pk-client/src/test_handlers.rs @@ -1,5 +1,5 @@ use crate::module_bindings::*; -use spacetimedb_sdk::TableWithPrimaryKey; +use spacetimedb_sdk::WithUpdate; use spacetimedb_sdk::{error::InternalError, DbConnectionBuilder, DbContext}; use test_counter::TestCounter; From 8beb8b25de1231a6cd423602898b2f57f67065fa Mon Sep 17 00:00:00 2001 From: Jeffrey Rooks Date: Fri, 10 Apr 2026 11:31:46 -0400 Subject: [PATCH 7/7] fix imports --- sdks/rust/tests/test-client/src/pk_test_table.rs | 2 +- sdks/rust/tests/test-client/src/simple_test_table.rs | 2 +- sdks/rust/tests/test-client/src/test_handlers.rs | 2 +- sdks/rust/tests/test-client/src/unique_test_table.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdks/rust/tests/test-client/src/pk_test_table.rs b/sdks/rust/tests/test-client/src/pk_test_table.rs index 45ee220cc2f..3af6fc8d9c2 100644 --- a/sdks/rust/tests/test-client/src/pk_test_table.rs +++ b/sdks/rust/tests/test-client/src/pk_test_table.rs @@ -1,5 +1,5 @@ use crate::module_bindings::*; -use spacetimedb_sdk::{i256, u256, ConnectionId, Event, Identity, Table, TableWithPrimaryKey, Uuid}; +use spacetimedb_sdk::{i256, u256, ConnectionId, Event, Identity, Uuid, WithDelete, WithInsert, WithUpdate}; use std::sync::Arc; use test_counter::TestCounter; diff --git a/sdks/rust/tests/test-client/src/simple_test_table.rs b/sdks/rust/tests/test-client/src/simple_test_table.rs index 52d6a350194..5fc33d28fa3 100644 --- a/sdks/rust/tests/test-client/src/simple_test_table.rs +++ b/sdks/rust/tests/test-client/src/simple_test_table.rs @@ -1,5 +1,5 @@ use crate::module_bindings::*; -use spacetimedb_sdk::{i256, u256, ConnectionId, Event, Identity, Table, Timestamp, Uuid}; +use spacetimedb_sdk::{i256, u256, ConnectionId, Event, Identity, Timestamp, Uuid, WithInsert}; use std::sync::{ atomic::{AtomicUsize, Ordering}, Arc, diff --git a/sdks/rust/tests/test-client/src/test_handlers.rs b/sdks/rust/tests/test-client/src/test_handlers.rs index d83ee46cf4d..c18a80f337e 100644 --- a/sdks/rust/tests/test-client/src/test_handlers.rs +++ b/sdks/rust/tests/test-client/src/test_handlers.rs @@ -8,11 +8,11 @@ use rand::RngCore; #[cfg(not(target_arch = "wasm32"))] use spacetimedb_sdk::credentials; use spacetimedb_sdk::error::InternalError; -use spacetimedb_sdk::TableWithPrimaryKey; use spacetimedb_sdk::{ i256, u256, Compression, ConnectionId, DbConnectionBuilder, DbContext, Event, Identity, ReducerEvent, Status, SubscriptionHandle, Table, TimeDuration, Timestamp, Uuid, }; +use spacetimedb_sdk::{TableLike, WithDelete, WithInsert, WithUpdate}; use test_counter::TestCounter; use crate::simple_test_table::{insert_one, on_insert_one, SimpleTestTable}; diff --git a/sdks/rust/tests/test-client/src/unique_test_table.rs b/sdks/rust/tests/test-client/src/unique_test_table.rs index 672565f752e..ad83ccccf5d 100644 --- a/sdks/rust/tests/test-client/src/unique_test_table.rs +++ b/sdks/rust/tests/test-client/src/unique_test_table.rs @@ -1,5 +1,5 @@ use crate::module_bindings::*; -use spacetimedb_sdk::{i256, u256, ConnectionId, Event, Identity, Table, Uuid}; +use spacetimedb_sdk::{i256, u256, ConnectionId, Event, Identity, Uuid, WithDelete, WithInsert}; use std::sync::Arc; use test_counter::TestCounter;