stem-mqtt 0.0.0-stage → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +176 -2
- package/broker/index.d.ts +1 -0
- package/broker/index.js +7 -0
- package/broker/mqtt_broker-ffi.d.ts +247 -0
- package/broker/mqtt_broker-ffi.js +3738 -0
- package/broker/mqtt_broker.d.ts +383 -0
- package/broker/mqtt_broker.js +1510 -0
- package/broker/package.json +12 -0
- package/broker/prebuilds/linux-x64-gnu/libmqtt_broker.so +0 -0
- package/client/index.d.ts +1 -0
- package/client/index.js +7 -0
- package/client/mqtt_client-ffi.d.ts +229 -0
- package/client/mqtt_client-ffi.js +3439 -0
- package/client/mqtt_client.d.ts +432 -0
- package/client/mqtt_client.js +1467 -0
- package/client/package.json +12 -0
- package/client/prebuilds/linux-x64-gnu/libmqtt_client.so +0 -0
- package/package.json +49 -3
- package/runtime/async-rust-call.d.ts +86 -0
- package/runtime/async-rust-call.js +217 -0
- package/runtime/callbacks.d.ts +122 -0
- package/runtime/callbacks.js +392 -0
- package/runtime/errors.d.ts +120 -0
- package/runtime/errors.js +274 -0
- package/runtime/ffi-converters.d.ts +100 -0
- package/runtime/ffi-converters.js +758 -0
- package/runtime/ffi-types.d.ts +120 -0
- package/runtime/ffi-types.js +456 -0
- package/runtime/handle-map.d.ts +35 -0
- package/runtime/handle-map.js +137 -0
- package/runtime/objects.d.ts +68 -0
- package/runtime/objects.js +469 -0
- package/runtime/rust-call.d.ts +77 -0
- package/runtime/rust-call.js +233 -0
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./mqtt_client.js";
|
package/client/index.js
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
export interface FfiMetadata {
|
|
2
|
+
namespace: string;
|
|
3
|
+
cdylibName: string;
|
|
4
|
+
stagedLibraryPackageRelativePath: string;
|
|
5
|
+
bundledPrebuilds: boolean;
|
|
6
|
+
manualLoad: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface FfiBindings {
|
|
10
|
+
libraryPath: string;
|
|
11
|
+
packageRelativePath: string | null;
|
|
12
|
+
library: unknown;
|
|
13
|
+
ffiTypes: Readonly<Record<string, unknown>>;
|
|
14
|
+
ffiCallbacks: Readonly<Record<string, unknown>>;
|
|
15
|
+
ffiStructs: Readonly<Record<string, unknown>>;
|
|
16
|
+
ffiFunctions: Readonly<Record<string, (...args: any[]) => any>>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface FfiIntegrity {
|
|
20
|
+
contractVersionFunction: string;
|
|
21
|
+
expectedContractVersion: number;
|
|
22
|
+
checksums: Readonly<Record<string, number>>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface FfiRuntimeHooks {
|
|
26
|
+
onLoad?(bindings: Readonly<FfiBindings>): void;
|
|
27
|
+
onUnload?(bindings: Readonly<FfiBindings>): void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export declare const ffiMetadata: Readonly<FfiMetadata>;
|
|
31
|
+
export declare const ffiIntegrity: Readonly<FfiIntegrity>;
|
|
32
|
+
export declare function configureRuntimeHooks(hooks?: FfiRuntimeHooks | null): void;
|
|
33
|
+
export declare function load(libraryPath?: string | null): Readonly<FfiBindings>;
|
|
34
|
+
export declare function unload(): boolean;
|
|
35
|
+
export declare function isLoaded(): boolean;
|
|
36
|
+
export declare function getFfiBindings(): Readonly<FfiBindings>;
|
|
37
|
+
export declare function getFfiTypes(): Readonly<Record<string, unknown>>;
|
|
38
|
+
export declare function getContractVersion(bindings?: Readonly<FfiBindings>): number;
|
|
39
|
+
export declare function validateContractVersion(bindings?: Readonly<FfiBindings>): number;
|
|
40
|
+
export declare function getChecksums(
|
|
41
|
+
bindings?: Readonly<FfiBindings>,
|
|
42
|
+
): Readonly<Record<string, number>>;
|
|
43
|
+
export declare function validateChecksums(
|
|
44
|
+
bindings?: Readonly<FfiBindings>,
|
|
45
|
+
): Readonly<Record<string, number>>;
|
|
46
|
+
export declare const ffiFunctions: Readonly<Record<string, (...args: any[]) => any>>;
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
export declare function uniffi_mqtt_client_fn_clone_mqttclient(...args: any[]): any;
|
|
50
|
+
|
|
51
|
+
export declare function uniffi_mqtt_client_fn_free_mqttclient(...args: any[]): any;
|
|
52
|
+
|
|
53
|
+
export declare function uniffi_mqtt_client_fn_constructor_mqttclient_new(...args: any[]): any;
|
|
54
|
+
|
|
55
|
+
export declare function uniffi_mqtt_client_fn_method_mqttclient_connect(...args: any[]): any;
|
|
56
|
+
|
|
57
|
+
export declare function uniffi_mqtt_client_fn_method_mqttclient_disconnect(...args: any[]): any;
|
|
58
|
+
|
|
59
|
+
export declare function uniffi_mqtt_client_fn_method_mqttclient_enable_message_queue(...args: any[]): any;
|
|
60
|
+
|
|
61
|
+
export declare function uniffi_mqtt_client_fn_method_mqttclient_is_connected(...args: any[]): any;
|
|
62
|
+
|
|
63
|
+
export declare function uniffi_mqtt_client_fn_method_mqttclient_last_disconnect_reason(...args: any[]): any;
|
|
64
|
+
|
|
65
|
+
export declare function uniffi_mqtt_client_fn_method_mqttclient_next_message(...args: any[]): any;
|
|
66
|
+
|
|
67
|
+
export declare function uniffi_mqtt_client_fn_method_mqttclient_publish(...args: any[]): any;
|
|
68
|
+
|
|
69
|
+
export declare function uniffi_mqtt_client_fn_method_mqttclient_set_auth_handler(...args: any[]): any;
|
|
70
|
+
|
|
71
|
+
export declare function uniffi_mqtt_client_fn_method_mqttclient_set_message_listener(...args: any[]): any;
|
|
72
|
+
|
|
73
|
+
export declare function uniffi_mqtt_client_fn_method_mqttclient_subscribe(...args: any[]): any;
|
|
74
|
+
|
|
75
|
+
export declare function uniffi_mqtt_client_fn_method_mqttclient_unsubscribe(...args: any[]): any;
|
|
76
|
+
|
|
77
|
+
export declare function uniffi_mqtt_client_fn_clone_mqttauthhandler(...args: any[]): any;
|
|
78
|
+
|
|
79
|
+
export declare function uniffi_mqtt_client_fn_free_mqttauthhandler(...args: any[]): any;
|
|
80
|
+
|
|
81
|
+
export declare function uniffi_mqtt_client_fn_init_callback_vtable_mqttauthhandler(...args: any[]): any;
|
|
82
|
+
|
|
83
|
+
export declare function uniffi_mqtt_client_fn_method_mqttauthhandler_respond(...args: any[]): any;
|
|
84
|
+
|
|
85
|
+
export declare function uniffi_mqtt_client_fn_clone_mqttmessagelistener(...args: any[]): any;
|
|
86
|
+
|
|
87
|
+
export declare function uniffi_mqtt_client_fn_free_mqttmessagelistener(...args: any[]): any;
|
|
88
|
+
|
|
89
|
+
export declare function uniffi_mqtt_client_fn_init_callback_vtable_mqttmessagelistener(...args: any[]): any;
|
|
90
|
+
|
|
91
|
+
export declare function uniffi_mqtt_client_fn_method_mqttmessagelistener_on_message(...args: any[]): any;
|
|
92
|
+
|
|
93
|
+
export declare function uniffi_mqtt_client_fn_method_mqttmessagelistener_on_disconnected(...args: any[]): any;
|
|
94
|
+
|
|
95
|
+
export declare function ffi_mqtt_client_rustbuffer_alloc(...args: any[]): any;
|
|
96
|
+
|
|
97
|
+
export declare function ffi_mqtt_client_rustbuffer_from_bytes(...args: any[]): any;
|
|
98
|
+
|
|
99
|
+
export declare function ffi_mqtt_client_rustbuffer_free(...args: any[]): any;
|
|
100
|
+
|
|
101
|
+
export declare function ffi_mqtt_client_rustbuffer_reserve(...args: any[]): any;
|
|
102
|
+
|
|
103
|
+
export declare function ffi_mqtt_client_rust_future_poll_u8(...args: any[]): any;
|
|
104
|
+
|
|
105
|
+
export declare function ffi_mqtt_client_rust_future_cancel_u8(...args: any[]): any;
|
|
106
|
+
|
|
107
|
+
export declare function ffi_mqtt_client_rust_future_free_u8(...args: any[]): any;
|
|
108
|
+
|
|
109
|
+
export declare function ffi_mqtt_client_rust_future_complete_u8(...args: any[]): any;
|
|
110
|
+
|
|
111
|
+
export declare function ffi_mqtt_client_rust_future_poll_i8(...args: any[]): any;
|
|
112
|
+
|
|
113
|
+
export declare function ffi_mqtt_client_rust_future_cancel_i8(...args: any[]): any;
|
|
114
|
+
|
|
115
|
+
export declare function ffi_mqtt_client_rust_future_free_i8(...args: any[]): any;
|
|
116
|
+
|
|
117
|
+
export declare function ffi_mqtt_client_rust_future_complete_i8(...args: any[]): any;
|
|
118
|
+
|
|
119
|
+
export declare function ffi_mqtt_client_rust_future_poll_u16(...args: any[]): any;
|
|
120
|
+
|
|
121
|
+
export declare function ffi_mqtt_client_rust_future_cancel_u16(...args: any[]): any;
|
|
122
|
+
|
|
123
|
+
export declare function ffi_mqtt_client_rust_future_free_u16(...args: any[]): any;
|
|
124
|
+
|
|
125
|
+
export declare function ffi_mqtt_client_rust_future_complete_u16(...args: any[]): any;
|
|
126
|
+
|
|
127
|
+
export declare function ffi_mqtt_client_rust_future_poll_i16(...args: any[]): any;
|
|
128
|
+
|
|
129
|
+
export declare function ffi_mqtt_client_rust_future_cancel_i16(...args: any[]): any;
|
|
130
|
+
|
|
131
|
+
export declare function ffi_mqtt_client_rust_future_free_i16(...args: any[]): any;
|
|
132
|
+
|
|
133
|
+
export declare function ffi_mqtt_client_rust_future_complete_i16(...args: any[]): any;
|
|
134
|
+
|
|
135
|
+
export declare function ffi_mqtt_client_rust_future_poll_u32(...args: any[]): any;
|
|
136
|
+
|
|
137
|
+
export declare function ffi_mqtt_client_rust_future_cancel_u32(...args: any[]): any;
|
|
138
|
+
|
|
139
|
+
export declare function ffi_mqtt_client_rust_future_free_u32(...args: any[]): any;
|
|
140
|
+
|
|
141
|
+
export declare function ffi_mqtt_client_rust_future_complete_u32(...args: any[]): any;
|
|
142
|
+
|
|
143
|
+
export declare function ffi_mqtt_client_rust_future_poll_i32(...args: any[]): any;
|
|
144
|
+
|
|
145
|
+
export declare function ffi_mqtt_client_rust_future_cancel_i32(...args: any[]): any;
|
|
146
|
+
|
|
147
|
+
export declare function ffi_mqtt_client_rust_future_free_i32(...args: any[]): any;
|
|
148
|
+
|
|
149
|
+
export declare function ffi_mqtt_client_rust_future_complete_i32(...args: any[]): any;
|
|
150
|
+
|
|
151
|
+
export declare function ffi_mqtt_client_rust_future_poll_u64(...args: any[]): any;
|
|
152
|
+
|
|
153
|
+
export declare function ffi_mqtt_client_rust_future_cancel_u64(...args: any[]): any;
|
|
154
|
+
|
|
155
|
+
export declare function ffi_mqtt_client_rust_future_free_u64(...args: any[]): any;
|
|
156
|
+
|
|
157
|
+
export declare function ffi_mqtt_client_rust_future_complete_u64(...args: any[]): any;
|
|
158
|
+
|
|
159
|
+
export declare function ffi_mqtt_client_rust_future_poll_i64(...args: any[]): any;
|
|
160
|
+
|
|
161
|
+
export declare function ffi_mqtt_client_rust_future_cancel_i64(...args: any[]): any;
|
|
162
|
+
|
|
163
|
+
export declare function ffi_mqtt_client_rust_future_free_i64(...args: any[]): any;
|
|
164
|
+
|
|
165
|
+
export declare function ffi_mqtt_client_rust_future_complete_i64(...args: any[]): any;
|
|
166
|
+
|
|
167
|
+
export declare function ffi_mqtt_client_rust_future_poll_f32(...args: any[]): any;
|
|
168
|
+
|
|
169
|
+
export declare function ffi_mqtt_client_rust_future_cancel_f32(...args: any[]): any;
|
|
170
|
+
|
|
171
|
+
export declare function ffi_mqtt_client_rust_future_free_f32(...args: any[]): any;
|
|
172
|
+
|
|
173
|
+
export declare function ffi_mqtt_client_rust_future_complete_f32(...args: any[]): any;
|
|
174
|
+
|
|
175
|
+
export declare function ffi_mqtt_client_rust_future_poll_f64(...args: any[]): any;
|
|
176
|
+
|
|
177
|
+
export declare function ffi_mqtt_client_rust_future_cancel_f64(...args: any[]): any;
|
|
178
|
+
|
|
179
|
+
export declare function ffi_mqtt_client_rust_future_free_f64(...args: any[]): any;
|
|
180
|
+
|
|
181
|
+
export declare function ffi_mqtt_client_rust_future_complete_f64(...args: any[]): any;
|
|
182
|
+
|
|
183
|
+
export declare function ffi_mqtt_client_rust_future_poll_rust_buffer(...args: any[]): any;
|
|
184
|
+
|
|
185
|
+
export declare function ffi_mqtt_client_rust_future_cancel_rust_buffer(...args: any[]): any;
|
|
186
|
+
|
|
187
|
+
export declare function ffi_mqtt_client_rust_future_free_rust_buffer(...args: any[]): any;
|
|
188
|
+
|
|
189
|
+
export declare function ffi_mqtt_client_rust_future_complete_rust_buffer(...args: any[]): any;
|
|
190
|
+
|
|
191
|
+
export declare function ffi_mqtt_client_rust_future_poll_void(...args: any[]): any;
|
|
192
|
+
|
|
193
|
+
export declare function ffi_mqtt_client_rust_future_cancel_void(...args: any[]): any;
|
|
194
|
+
|
|
195
|
+
export declare function ffi_mqtt_client_rust_future_free_void(...args: any[]): any;
|
|
196
|
+
|
|
197
|
+
export declare function ffi_mqtt_client_rust_future_complete_void(...args: any[]): any;
|
|
198
|
+
|
|
199
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttclient_connect(...args: any[]): any;
|
|
200
|
+
|
|
201
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttclient_disconnect(...args: any[]): any;
|
|
202
|
+
|
|
203
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttclient_enable_message_queue(...args: any[]): any;
|
|
204
|
+
|
|
205
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttclient_is_connected(...args: any[]): any;
|
|
206
|
+
|
|
207
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttclient_last_disconnect_reason(...args: any[]): any;
|
|
208
|
+
|
|
209
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttclient_next_message(...args: any[]): any;
|
|
210
|
+
|
|
211
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttclient_publish(...args: any[]): any;
|
|
212
|
+
|
|
213
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttclient_set_auth_handler(...args: any[]): any;
|
|
214
|
+
|
|
215
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttclient_set_message_listener(...args: any[]): any;
|
|
216
|
+
|
|
217
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttclient_subscribe(...args: any[]): any;
|
|
218
|
+
|
|
219
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttclient_unsubscribe(...args: any[]): any;
|
|
220
|
+
|
|
221
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttauthhandler_respond(...args: any[]): any;
|
|
222
|
+
|
|
223
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttmessagelistener_on_message(...args: any[]): any;
|
|
224
|
+
|
|
225
|
+
export declare function uniffi_mqtt_client_checksum_method_mqttmessagelistener_on_disconnected(...args: any[]): any;
|
|
226
|
+
|
|
227
|
+
export declare function uniffi_mqtt_client_checksum_constructor_mqttclient_new(...args: any[]): any;
|
|
228
|
+
|
|
229
|
+
export declare function ffi_mqtt_client_uniffi_contract_version(...args: any[]): any;
|