Skip to content

Commit a25a14e

Browse files
committed
insta snaps
1 parent ac8ceb3 commit a25a14e

2 files changed

Lines changed: 63 additions & 1 deletion

File tree

crates/bindings/tests/snapshots/deps__spacetimedb_bindings_dependencies.snap

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
source: crates/bindings/tests/deps.rs
33
expression: "cargo tree -p spacetimedb -e no-dev --color never --target wasm32-unknown-unknown -f {lib}"
44
---
5-
total crates: 66
5+
total crates: 68
66
spacetimedb
77
├── bytemuck
88
├── derive_more
@@ -20,6 +20,10 @@ spacetimedb
2020
│ └── semver
2121
├── getrandom
2222
│ └── cfg_if
23+
├── http
24+
│ ├── bytes
25+
│ ├── fnv
26+
│ └── itoa
2327
├── log
2428
├── rand
2529
│ ├── rand_chacha
@@ -78,7 +82,9 @@ spacetimedb
7882
│ ├── derive_more (*)
7983
│ ├── enum_as_inner (*)
8084
│ ├── hex
85+
│ ├── http (*)
8186
│ ├── itertools (*)
87+
│ ├── log
8288
│ ├── spacetimedb_bindings_macro (*)
8389
│ ├── spacetimedb_primitives (*)
8490
│ ├── spacetimedb_sats

crates/codegen/tests/snapshots/codegen__codegen_rust.snap

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,60 @@ impl __sdk::InModule for Foobar {
815815
type Module = super::RemoteModule;
816816
}
817817

818+
'''
819+
"get_my_schema_via_http_procedure.rs" = '''
820+
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
821+
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
822+
823+
#![allow(unused, clippy::all)]
824+
use spacetimedb_sdk::__codegen::{
825+
self as __sdk,
826+
__lib,
827+
__sats,
828+
__ws,
829+
};
830+
831+
832+
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
833+
#[sats(crate = __lib)]
834+
struct GetMySchemaViaHttpArgs {
835+
}
836+
837+
838+
impl __sdk::InModule for GetMySchemaViaHttpArgs {
839+
type Module = super::RemoteModule;
840+
}
841+
842+
#[allow(non_camel_case_types)]
843+
/// Extension trait for access to the procedure `get_my_schema_via_http`.
844+
///
845+
/// Implemented for [`super::RemoteProcedures`].
846+
pub trait get_my_schema_via_http {
847+
fn get_my_schema_via_http(&self, ) {
848+
self.get_my_schema_via_http_then( |_, _| {});
849+
}
850+
851+
fn get_my_schema_via_http_then(
852+
&self,
853+
854+
__callback: impl FnOnce(&super::ProcedureEventContext, Result<String, __sdk::InternalError>) + Send + 'static,
855+
);
856+
}
857+
858+
impl get_my_schema_via_http for super::RemoteProcedures {
859+
fn get_my_schema_via_http_then(
860+
&self,
861+
862+
__callback: impl FnOnce(&super::ProcedureEventContext, Result<String, __sdk::InternalError>) + Send + 'static,
863+
) {
864+
self.imp.invoke_procedure_with_callback::<_, String>(
865+
"get_my_schema_via_http",
866+
GetMySchemaViaHttpArgs { },
867+
__callback,
868+
);
869+
}
870+
}
871+
818872
'''
819873
"has_special_stuff_table.rs" = '''
820874
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
@@ -1421,6 +1475,7 @@ pub mod test_a_table;
14211475
pub mod test_d_table;
14221476
pub mod test_e_table;
14231477
pub mod test_f_table;
1478+
pub mod get_my_schema_via_http_procedure;
14241479
pub mod return_value_procedure;
14251480
pub mod sleep_one_second_procedure;
14261481

@@ -1466,6 +1521,7 @@ pub use repeating_test_reducer::{repeating_test, set_flags_for_repeating_test, R
14661521
pub use say_hello_reducer::{say_hello, set_flags_for_say_hello, SayHelloCallbackId};
14671522
pub use test_reducer::{test, set_flags_for_test, TestCallbackId};
14681523
pub use test_btree_index_args_reducer::{test_btree_index_args, set_flags_for_test_btree_index_args, TestBtreeIndexArgsCallbackId};
1524+
pub use get_my_schema_via_http_procedure::get_my_schema_via_http;
14691525
pub use return_value_procedure::return_value;
14701526
pub use sleep_one_second_procedure::sleep_one_second;
14711527

0 commit comments

Comments
 (0)