@synonymdev/react-native-pubky 0.8.0 → 0.9.1

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.
Files changed (40) hide show
  1. package/README.md +52 -9
  2. package/android/src/main/java/com/pubky/PubkyModule.kt +364 -273
  3. package/android/src/main/java/uniffi/pubkycore/pubkycore.kt +1327 -0
  4. package/android/src/main/jniLibs/arm64-v8a/libpubkycore.so +0 -0
  5. package/android/src/main/jniLibs/armeabi-v7a/libpubkycore.so +0 -0
  6. package/android/src/main/jniLibs/x86/libpubkycore.so +0 -0
  7. package/android/src/main/jniLibs/x86_64/libpubkycore.so +0 -0
  8. package/ios/Frameworks/{PubkyMobile.xcframework → PubkyCore.xcframework}/Info.plist +8 -8
  9. package/ios/Frameworks/{PubkyMobile.xcframework → PubkyCore.xcframework}/ios-arm64/Headers/module.modulemap +2 -2
  10. package/ios/Frameworks/PubkyCore.xcframework/ios-arm64/Headers/pubkycoreFFI.h +297 -0
  11. package/ios/Frameworks/{PubkyMobile.xcframework/ios-arm64/libpubkymobile.a → PubkyCore.xcframework/ios-arm64/libpubkycore.a} +0 -0
  12. package/ios/Frameworks/{PubkyMobile.xcframework → PubkyCore.xcframework}/ios-arm64-simulator/Headers/module.modulemap +2 -2
  13. package/ios/Frameworks/PubkyCore.xcframework/ios-arm64-simulator/Headers/pubkycoreFFI.h +297 -0
  14. package/ios/Frameworks/{PubkyMobile.xcframework/ios-arm64-simulator/libpubkymobile.a → PubkyCore.xcframework/ios-arm64-simulator/libpubkycore.a} +0 -0
  15. package/ios/Pubky-Bridging-Header.h +1 -0
  16. package/ios/Pubky.mm +16 -1
  17. package/ios/Pubky.swift +64 -1
  18. package/ios/{pubkymobile.swift → pubkycore.swift} +354 -37
  19. package/lib/commonjs/index.js +45 -0
  20. package/lib/commonjs/index.js.map +1 -1
  21. package/lib/module/index.js +42 -1
  22. package/lib/module/index.js.map +1 -1
  23. package/lib/typescript/commonjs/src/index.d.ts +16 -9
  24. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  25. package/lib/typescript/module/src/index.d.ts +16 -9
  26. package/lib/typescript/module/src/index.d.ts.map +1 -1
  27. package/package.json +12 -7
  28. package/react-native-pubky.podspec +1 -1
  29. package/src/index.tsx +62 -9
  30. package/android/src/main/java/uniffi/pubkymobile/pubkymobile.kt +0 -862
  31. package/android/src/main/jniLibs/arm64-v8a/libpubkymobile.so +0 -0
  32. package/android/src/main/jniLibs/armeabi-v7a/libpubkymobile.so +0 -0
  33. package/android/src/main/jniLibs/x86/libpubkymobile.so +0 -0
  34. package/android/src/main/jniLibs/x86_64/libpubkymobile.so +0 -0
  35. package/ios/Frameworks/PubkyMobile.xcframework/ios-arm64/Headers/mobileFFI.h +0 -188
  36. package/ios/Frameworks/PubkyMobile.xcframework/ios-arm64/Headers/pubkymobileFFI.h +0 -264
  37. package/ios/Frameworks/PubkyMobile.xcframework/ios-arm64/libmobile.a +0 -0
  38. package/ios/Frameworks/PubkyMobile.xcframework/ios-arm64-simulator/Headers/mobileFFI.h +0 -188
  39. package/ios/Frameworks/PubkyMobile.xcframework/ios-arm64-simulator/Headers/pubkymobileFFI.h +0 -264
  40. package/ios/Frameworks/PubkyMobile.xcframework/ios-arm64-simulator/libmobile.a +0 -0
@@ -1,188 +0,0 @@
1
- // This file was autogenerated by some hot garbage in the `uniffi` crate.
2
- // Trust me, you don't want to mess with it!
3
-
4
- #pragma once
5
-
6
- #include <stdbool.h>
7
- #include <stddef.h>
8
- #include <stdint.h>
9
-
10
- // The following structs are used to implement the lowest level
11
- // of the FFI, and thus useful to multiple uniffied crates.
12
- // We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
13
- #ifdef UNIFFI_SHARED_H
14
- // We also try to prevent mixing versions of shared uniffi header structs.
15
- // If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
16
- #ifndef UNIFFI_SHARED_HEADER_V4
17
- #error Combining helper code from multiple versions of uniffi is not supported
18
- #endif // ndef UNIFFI_SHARED_HEADER_V4
19
- #else
20
- #define UNIFFI_SHARED_H
21
- #define UNIFFI_SHARED_HEADER_V4
22
- // ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
23
- // ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
24
-
25
- typedef struct RustBuffer
26
- {
27
- int32_t capacity;
28
- int32_t len;
29
- uint8_t *_Nullable data;
30
- } RustBuffer;
31
-
32
- typedef int32_t (*ForeignCallback)(uint64_t, int32_t, const uint8_t *_Nonnull, int32_t, RustBuffer *_Nonnull);
33
-
34
- // Task defined in Rust that Swift executes
35
- typedef void (*UniFfiRustTaskCallback)(const void * _Nullable, int8_t);
36
-
37
- // Callback to execute Rust tasks using a Swift Task
38
- //
39
- // Args:
40
- // executor: ForeignExecutor lowered into a size_t value
41
- // delay: Delay in MS
42
- // task: UniFfiRustTaskCallback to call
43
- // task_data: data to pass the task callback
44
- typedef int8_t (*UniFfiForeignExecutorCallback)(size_t, uint32_t, UniFfiRustTaskCallback _Nullable, const void * _Nullable);
45
-
46
- typedef struct ForeignBytes
47
- {
48
- int32_t len;
49
- const uint8_t *_Nullable data;
50
- } ForeignBytes;
51
-
52
- // Error definitions
53
- typedef struct RustCallStatus {
54
- int8_t code;
55
- RustBuffer errorBuf;
56
- } RustCallStatus;
57
-
58
- // ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
59
- // ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
60
- #endif // def UNIFFI_SHARED_H
61
-
62
- // Continuation callback for UniFFI Futures
63
- typedef void (*UniFfiRustFutureContinuation)(void * _Nonnull, int8_t);
64
-
65
- // Scaffolding functions
66
- void* _Nonnull uniffi_mobile_fn_func_auth(RustBuffer url, RustBuffer secret_key
67
- );
68
- RustBuffer ffi_mobile_rustbuffer_alloc(int32_t size, RustCallStatus *_Nonnull out_status
69
- );
70
- RustBuffer ffi_mobile_rustbuffer_from_bytes(ForeignBytes bytes, RustCallStatus *_Nonnull out_status
71
- );
72
- void ffi_mobile_rustbuffer_free(RustBuffer buf, RustCallStatus *_Nonnull out_status
73
- );
74
- RustBuffer ffi_mobile_rustbuffer_reserve(RustBuffer buf, int32_t additional, RustCallStatus *_Nonnull out_status
75
- );
76
- void ffi_mobile_rust_future_continuation_callback_set(UniFfiRustFutureContinuation _Nonnull callback
77
- );
78
- void ffi_mobile_rust_future_poll_u8(void* _Nonnull handle, void* _Nonnull uniffi_callback
79
- );
80
- void ffi_mobile_rust_future_cancel_u8(void* _Nonnull handle
81
- );
82
- void ffi_mobile_rust_future_free_u8(void* _Nonnull handle
83
- );
84
- uint8_t ffi_mobile_rust_future_complete_u8(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
85
- );
86
- void ffi_mobile_rust_future_poll_i8(void* _Nonnull handle, void* _Nonnull uniffi_callback
87
- );
88
- void ffi_mobile_rust_future_cancel_i8(void* _Nonnull handle
89
- );
90
- void ffi_mobile_rust_future_free_i8(void* _Nonnull handle
91
- );
92
- int8_t ffi_mobile_rust_future_complete_i8(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
93
- );
94
- void ffi_mobile_rust_future_poll_u16(void* _Nonnull handle, void* _Nonnull uniffi_callback
95
- );
96
- void ffi_mobile_rust_future_cancel_u16(void* _Nonnull handle
97
- );
98
- void ffi_mobile_rust_future_free_u16(void* _Nonnull handle
99
- );
100
- uint16_t ffi_mobile_rust_future_complete_u16(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
101
- );
102
- void ffi_mobile_rust_future_poll_i16(void* _Nonnull handle, void* _Nonnull uniffi_callback
103
- );
104
- void ffi_mobile_rust_future_cancel_i16(void* _Nonnull handle
105
- );
106
- void ffi_mobile_rust_future_free_i16(void* _Nonnull handle
107
- );
108
- int16_t ffi_mobile_rust_future_complete_i16(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
109
- );
110
- void ffi_mobile_rust_future_poll_u32(void* _Nonnull handle, void* _Nonnull uniffi_callback
111
- );
112
- void ffi_mobile_rust_future_cancel_u32(void* _Nonnull handle
113
- );
114
- void ffi_mobile_rust_future_free_u32(void* _Nonnull handle
115
- );
116
- uint32_t ffi_mobile_rust_future_complete_u32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
117
- );
118
- void ffi_mobile_rust_future_poll_i32(void* _Nonnull handle, void* _Nonnull uniffi_callback
119
- );
120
- void ffi_mobile_rust_future_cancel_i32(void* _Nonnull handle
121
- );
122
- void ffi_mobile_rust_future_free_i32(void* _Nonnull handle
123
- );
124
- int32_t ffi_mobile_rust_future_complete_i32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
125
- );
126
- void ffi_mobile_rust_future_poll_u64(void* _Nonnull handle, void* _Nonnull uniffi_callback
127
- );
128
- void ffi_mobile_rust_future_cancel_u64(void* _Nonnull handle
129
- );
130
- void ffi_mobile_rust_future_free_u64(void* _Nonnull handle
131
- );
132
- uint64_t ffi_mobile_rust_future_complete_u64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
133
- );
134
- void ffi_mobile_rust_future_poll_i64(void* _Nonnull handle, void* _Nonnull uniffi_callback
135
- );
136
- void ffi_mobile_rust_future_cancel_i64(void* _Nonnull handle
137
- );
138
- void ffi_mobile_rust_future_free_i64(void* _Nonnull handle
139
- );
140
- int64_t ffi_mobile_rust_future_complete_i64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
141
- );
142
- void ffi_mobile_rust_future_poll_f32(void* _Nonnull handle, void* _Nonnull uniffi_callback
143
- );
144
- void ffi_mobile_rust_future_cancel_f32(void* _Nonnull handle
145
- );
146
- void ffi_mobile_rust_future_free_f32(void* _Nonnull handle
147
- );
148
- float ffi_mobile_rust_future_complete_f32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
149
- );
150
- void ffi_mobile_rust_future_poll_f64(void* _Nonnull handle, void* _Nonnull uniffi_callback
151
- );
152
- void ffi_mobile_rust_future_cancel_f64(void* _Nonnull handle
153
- );
154
- void ffi_mobile_rust_future_free_f64(void* _Nonnull handle
155
- );
156
- double ffi_mobile_rust_future_complete_f64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
157
- );
158
- void ffi_mobile_rust_future_poll_pointer(void* _Nonnull handle, void* _Nonnull uniffi_callback
159
- );
160
- void ffi_mobile_rust_future_cancel_pointer(void* _Nonnull handle
161
- );
162
- void ffi_mobile_rust_future_free_pointer(void* _Nonnull handle
163
- );
164
- void*_Nonnull ffi_mobile_rust_future_complete_pointer(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
165
- );
166
- void ffi_mobile_rust_future_poll_rust_buffer(void* _Nonnull handle, void* _Nonnull uniffi_callback
167
- );
168
- void ffi_mobile_rust_future_cancel_rust_buffer(void* _Nonnull handle
169
- );
170
- void ffi_mobile_rust_future_free_rust_buffer(void* _Nonnull handle
171
- );
172
- RustBuffer ffi_mobile_rust_future_complete_rust_buffer(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
173
- );
174
- void ffi_mobile_rust_future_poll_void(void* _Nonnull handle, void* _Nonnull uniffi_callback
175
- );
176
- void ffi_mobile_rust_future_cancel_void(void* _Nonnull handle
177
- );
178
- void ffi_mobile_rust_future_free_void(void* _Nonnull handle
179
- );
180
- void ffi_mobile_rust_future_complete_void(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
181
- );
182
- uint16_t uniffi_mobile_checksum_func_auth(void
183
-
184
- );
185
- uint32_t ffi_mobile_uniffi_contract_version(void
186
-
187
- );
188
-
@@ -1,264 +0,0 @@
1
- // This file was autogenerated by some hot garbage in the `uniffi` crate.
2
- // Trust me, you don't want to mess with it!
3
-
4
- #pragma once
5
-
6
- #include <stdbool.h>
7
- #include <stddef.h>
8
- #include <stdint.h>
9
-
10
- // The following structs are used to implement the lowest level
11
- // of the FFI, and thus useful to multiple uniffied crates.
12
- // We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
13
- #ifdef UNIFFI_SHARED_H
14
- // We also try to prevent mixing versions of shared uniffi header structs.
15
- // If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
16
- #ifndef UNIFFI_SHARED_HEADER_V4
17
- #error Combining helper code from multiple versions of uniffi is not supported
18
- #endif // ndef UNIFFI_SHARED_HEADER_V4
19
- #else
20
- #define UNIFFI_SHARED_H
21
- #define UNIFFI_SHARED_HEADER_V4
22
- // ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
23
- // ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
24
-
25
- typedef struct RustBuffer
26
- {
27
- int32_t capacity;
28
- int32_t len;
29
- uint8_t *_Nullable data;
30
- } RustBuffer;
31
-
32
- typedef int32_t (*ForeignCallback)(uint64_t, int32_t, const uint8_t *_Nonnull, int32_t, RustBuffer *_Nonnull);
33
-
34
- // Task defined in Rust that Swift executes
35
- typedef void (*UniFfiRustTaskCallback)(const void * _Nullable, int8_t);
36
-
37
- // Callback to execute Rust tasks using a Swift Task
38
- //
39
- // Args:
40
- // executor: ForeignExecutor lowered into a size_t value
41
- // delay: Delay in MS
42
- // task: UniFfiRustTaskCallback to call
43
- // task_data: data to pass the task callback
44
- typedef int8_t (*UniFfiForeignExecutorCallback)(size_t, uint32_t, UniFfiRustTaskCallback _Nullable, const void * _Nullable);
45
-
46
- typedef struct ForeignBytes
47
- {
48
- int32_t len;
49
- const uint8_t *_Nullable data;
50
- } ForeignBytes;
51
-
52
- // Error definitions
53
- typedef struct RustCallStatus {
54
- int8_t code;
55
- RustBuffer errorBuf;
56
- } RustCallStatus;
57
-
58
- // ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
59
- // ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
60
- #endif // def UNIFFI_SHARED_H
61
-
62
- // Continuation callback for UniFFI Futures
63
- typedef void (*UniFfiRustFutureContinuation)(void * _Nonnull, int8_t);
64
-
65
- // Scaffolding functions
66
- RustBuffer uniffi_pubkymobile_fn_func_auth(RustBuffer url, RustBuffer secret_key, RustCallStatus *_Nonnull out_status
67
- );
68
- RustBuffer uniffi_pubkymobile_fn_func_create_recovery_file(RustBuffer secret_key, RustBuffer passphrase, RustCallStatus *_Nonnull out_status
69
- );
70
- RustBuffer uniffi_pubkymobile_fn_func_decrypt_recovery_file(RustBuffer recovery_file, RustBuffer passphrase, RustCallStatus *_Nonnull out_status
71
- );
72
- RustBuffer uniffi_pubkymobile_fn_func_generate_secret_key(RustCallStatus *_Nonnull out_status
73
-
74
- );
75
- RustBuffer uniffi_pubkymobile_fn_func_get(RustBuffer url, RustCallStatus *_Nonnull out_status
76
- );
77
- RustBuffer uniffi_pubkymobile_fn_func_get_public_key_from_secret_key(RustBuffer secret_key, RustCallStatus *_Nonnull out_status
78
- );
79
- RustBuffer uniffi_pubkymobile_fn_func_list(RustBuffer url, RustCallStatus *_Nonnull out_status
80
- );
81
- RustBuffer uniffi_pubkymobile_fn_func_parse_auth_url(RustBuffer url, RustCallStatus *_Nonnull out_status
82
- );
83
- RustBuffer uniffi_pubkymobile_fn_func_publish(RustBuffer record_name, RustBuffer record_content, RustBuffer secret_key, RustCallStatus *_Nonnull out_status
84
- );
85
- RustBuffer uniffi_pubkymobile_fn_func_publish_https(RustBuffer record_name, RustBuffer target, RustBuffer secret_key, RustCallStatus *_Nonnull out_status
86
- );
87
- RustBuffer uniffi_pubkymobile_fn_func_put(RustBuffer url, RustBuffer content, RustCallStatus *_Nonnull out_status
88
- );
89
- RustBuffer uniffi_pubkymobile_fn_func_resolve(RustBuffer public_key, RustCallStatus *_Nonnull out_status
90
- );
91
- RustBuffer uniffi_pubkymobile_fn_func_resolve_https(RustBuffer public_key, RustCallStatus *_Nonnull out_status
92
- );
93
- RustBuffer uniffi_pubkymobile_fn_func_sign_in(RustBuffer secret_key, RustCallStatus *_Nonnull out_status
94
- );
95
- RustBuffer uniffi_pubkymobile_fn_func_sign_out(RustBuffer secret_key, RustCallStatus *_Nonnull out_status
96
- );
97
- RustBuffer uniffi_pubkymobile_fn_func_sign_up(RustBuffer secret_key, RustBuffer homeserver, RustCallStatus *_Nonnull out_status
98
- );
99
- RustBuffer ffi_pubkymobile_rustbuffer_alloc(int32_t size, RustCallStatus *_Nonnull out_status
100
- );
101
- RustBuffer ffi_pubkymobile_rustbuffer_from_bytes(ForeignBytes bytes, RustCallStatus *_Nonnull out_status
102
- );
103
- void ffi_pubkymobile_rustbuffer_free(RustBuffer buf, RustCallStatus *_Nonnull out_status
104
- );
105
- RustBuffer ffi_pubkymobile_rustbuffer_reserve(RustBuffer buf, int32_t additional, RustCallStatus *_Nonnull out_status
106
- );
107
- void ffi_pubkymobile_rust_future_continuation_callback_set(UniFfiRustFutureContinuation _Nonnull callback
108
- );
109
- void ffi_pubkymobile_rust_future_poll_u8(void* _Nonnull handle, void* _Nonnull uniffi_callback
110
- );
111
- void ffi_pubkymobile_rust_future_cancel_u8(void* _Nonnull handle
112
- );
113
- void ffi_pubkymobile_rust_future_free_u8(void* _Nonnull handle
114
- );
115
- uint8_t ffi_pubkymobile_rust_future_complete_u8(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
116
- );
117
- void ffi_pubkymobile_rust_future_poll_i8(void* _Nonnull handle, void* _Nonnull uniffi_callback
118
- );
119
- void ffi_pubkymobile_rust_future_cancel_i8(void* _Nonnull handle
120
- );
121
- void ffi_pubkymobile_rust_future_free_i8(void* _Nonnull handle
122
- );
123
- int8_t ffi_pubkymobile_rust_future_complete_i8(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
124
- );
125
- void ffi_pubkymobile_rust_future_poll_u16(void* _Nonnull handle, void* _Nonnull uniffi_callback
126
- );
127
- void ffi_pubkymobile_rust_future_cancel_u16(void* _Nonnull handle
128
- );
129
- void ffi_pubkymobile_rust_future_free_u16(void* _Nonnull handle
130
- );
131
- uint16_t ffi_pubkymobile_rust_future_complete_u16(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
132
- );
133
- void ffi_pubkymobile_rust_future_poll_i16(void* _Nonnull handle, void* _Nonnull uniffi_callback
134
- );
135
- void ffi_pubkymobile_rust_future_cancel_i16(void* _Nonnull handle
136
- );
137
- void ffi_pubkymobile_rust_future_free_i16(void* _Nonnull handle
138
- );
139
- int16_t ffi_pubkymobile_rust_future_complete_i16(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
140
- );
141
- void ffi_pubkymobile_rust_future_poll_u32(void* _Nonnull handle, void* _Nonnull uniffi_callback
142
- );
143
- void ffi_pubkymobile_rust_future_cancel_u32(void* _Nonnull handle
144
- );
145
- void ffi_pubkymobile_rust_future_free_u32(void* _Nonnull handle
146
- );
147
- uint32_t ffi_pubkymobile_rust_future_complete_u32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
148
- );
149
- void ffi_pubkymobile_rust_future_poll_i32(void* _Nonnull handle, void* _Nonnull uniffi_callback
150
- );
151
- void ffi_pubkymobile_rust_future_cancel_i32(void* _Nonnull handle
152
- );
153
- void ffi_pubkymobile_rust_future_free_i32(void* _Nonnull handle
154
- );
155
- int32_t ffi_pubkymobile_rust_future_complete_i32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
156
- );
157
- void ffi_pubkymobile_rust_future_poll_u64(void* _Nonnull handle, void* _Nonnull uniffi_callback
158
- );
159
- void ffi_pubkymobile_rust_future_cancel_u64(void* _Nonnull handle
160
- );
161
- void ffi_pubkymobile_rust_future_free_u64(void* _Nonnull handle
162
- );
163
- uint64_t ffi_pubkymobile_rust_future_complete_u64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
164
- );
165
- void ffi_pubkymobile_rust_future_poll_i64(void* _Nonnull handle, void* _Nonnull uniffi_callback
166
- );
167
- void ffi_pubkymobile_rust_future_cancel_i64(void* _Nonnull handle
168
- );
169
- void ffi_pubkymobile_rust_future_free_i64(void* _Nonnull handle
170
- );
171
- int64_t ffi_pubkymobile_rust_future_complete_i64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
172
- );
173
- void ffi_pubkymobile_rust_future_poll_f32(void* _Nonnull handle, void* _Nonnull uniffi_callback
174
- );
175
- void ffi_pubkymobile_rust_future_cancel_f32(void* _Nonnull handle
176
- );
177
- void ffi_pubkymobile_rust_future_free_f32(void* _Nonnull handle
178
- );
179
- float ffi_pubkymobile_rust_future_complete_f32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
180
- );
181
- void ffi_pubkymobile_rust_future_poll_f64(void* _Nonnull handle, void* _Nonnull uniffi_callback
182
- );
183
- void ffi_pubkymobile_rust_future_cancel_f64(void* _Nonnull handle
184
- );
185
- void ffi_pubkymobile_rust_future_free_f64(void* _Nonnull handle
186
- );
187
- double ffi_pubkymobile_rust_future_complete_f64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
188
- );
189
- void ffi_pubkymobile_rust_future_poll_pointer(void* _Nonnull handle, void* _Nonnull uniffi_callback
190
- );
191
- void ffi_pubkymobile_rust_future_cancel_pointer(void* _Nonnull handle
192
- );
193
- void ffi_pubkymobile_rust_future_free_pointer(void* _Nonnull handle
194
- );
195
- void*_Nonnull ffi_pubkymobile_rust_future_complete_pointer(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
196
- );
197
- void ffi_pubkymobile_rust_future_poll_rust_buffer(void* _Nonnull handle, void* _Nonnull uniffi_callback
198
- );
199
- void ffi_pubkymobile_rust_future_cancel_rust_buffer(void* _Nonnull handle
200
- );
201
- void ffi_pubkymobile_rust_future_free_rust_buffer(void* _Nonnull handle
202
- );
203
- RustBuffer ffi_pubkymobile_rust_future_complete_rust_buffer(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
204
- );
205
- void ffi_pubkymobile_rust_future_poll_void(void* _Nonnull handle, void* _Nonnull uniffi_callback
206
- );
207
- void ffi_pubkymobile_rust_future_cancel_void(void* _Nonnull handle
208
- );
209
- void ffi_pubkymobile_rust_future_free_void(void* _Nonnull handle
210
- );
211
- void ffi_pubkymobile_rust_future_complete_void(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
212
- );
213
- uint16_t uniffi_pubkymobile_checksum_func_auth(void
214
-
215
- );
216
- uint16_t uniffi_pubkymobile_checksum_func_create_recovery_file(void
217
-
218
- );
219
- uint16_t uniffi_pubkymobile_checksum_func_decrypt_recovery_file(void
220
-
221
- );
222
- uint16_t uniffi_pubkymobile_checksum_func_generate_secret_key(void
223
-
224
- );
225
- uint16_t uniffi_pubkymobile_checksum_func_get(void
226
-
227
- );
228
- uint16_t uniffi_pubkymobile_checksum_func_get_public_key_from_secret_key(void
229
-
230
- );
231
- uint16_t uniffi_pubkymobile_checksum_func_list(void
232
-
233
- );
234
- uint16_t uniffi_pubkymobile_checksum_func_parse_auth_url(void
235
-
236
- );
237
- uint16_t uniffi_pubkymobile_checksum_func_publish(void
238
-
239
- );
240
- uint16_t uniffi_pubkymobile_checksum_func_publish_https(void
241
-
242
- );
243
- uint16_t uniffi_pubkymobile_checksum_func_put(void
244
-
245
- );
246
- uint16_t uniffi_pubkymobile_checksum_func_resolve(void
247
-
248
- );
249
- uint16_t uniffi_pubkymobile_checksum_func_resolve_https(void
250
-
251
- );
252
- uint16_t uniffi_pubkymobile_checksum_func_sign_in(void
253
-
254
- );
255
- uint16_t uniffi_pubkymobile_checksum_func_sign_out(void
256
-
257
- );
258
- uint16_t uniffi_pubkymobile_checksum_func_sign_up(void
259
-
260
- );
261
- uint32_t ffi_pubkymobile_uniffi_contract_version(void
262
-
263
- );
264
-
@@ -1,188 +0,0 @@
1
- // This file was autogenerated by some hot garbage in the `uniffi` crate.
2
- // Trust me, you don't want to mess with it!
3
-
4
- #pragma once
5
-
6
- #include <stdbool.h>
7
- #include <stddef.h>
8
- #include <stdint.h>
9
-
10
- // The following structs are used to implement the lowest level
11
- // of the FFI, and thus useful to multiple uniffied crates.
12
- // We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
13
- #ifdef UNIFFI_SHARED_H
14
- // We also try to prevent mixing versions of shared uniffi header structs.
15
- // If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
16
- #ifndef UNIFFI_SHARED_HEADER_V4
17
- #error Combining helper code from multiple versions of uniffi is not supported
18
- #endif // ndef UNIFFI_SHARED_HEADER_V4
19
- #else
20
- #define UNIFFI_SHARED_H
21
- #define UNIFFI_SHARED_HEADER_V4
22
- // ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
23
- // ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
24
-
25
- typedef struct RustBuffer
26
- {
27
- int32_t capacity;
28
- int32_t len;
29
- uint8_t *_Nullable data;
30
- } RustBuffer;
31
-
32
- typedef int32_t (*ForeignCallback)(uint64_t, int32_t, const uint8_t *_Nonnull, int32_t, RustBuffer *_Nonnull);
33
-
34
- // Task defined in Rust that Swift executes
35
- typedef void (*UniFfiRustTaskCallback)(const void * _Nullable, int8_t);
36
-
37
- // Callback to execute Rust tasks using a Swift Task
38
- //
39
- // Args:
40
- // executor: ForeignExecutor lowered into a size_t value
41
- // delay: Delay in MS
42
- // task: UniFfiRustTaskCallback to call
43
- // task_data: data to pass the task callback
44
- typedef int8_t (*UniFfiForeignExecutorCallback)(size_t, uint32_t, UniFfiRustTaskCallback _Nullable, const void * _Nullable);
45
-
46
- typedef struct ForeignBytes
47
- {
48
- int32_t len;
49
- const uint8_t *_Nullable data;
50
- } ForeignBytes;
51
-
52
- // Error definitions
53
- typedef struct RustCallStatus {
54
- int8_t code;
55
- RustBuffer errorBuf;
56
- } RustCallStatus;
57
-
58
- // ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
59
- // ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
60
- #endif // def UNIFFI_SHARED_H
61
-
62
- // Continuation callback for UniFFI Futures
63
- typedef void (*UniFfiRustFutureContinuation)(void * _Nonnull, int8_t);
64
-
65
- // Scaffolding functions
66
- void* _Nonnull uniffi_mobile_fn_func_auth(RustBuffer url, RustBuffer secret_key
67
- );
68
- RustBuffer ffi_mobile_rustbuffer_alloc(int32_t size, RustCallStatus *_Nonnull out_status
69
- );
70
- RustBuffer ffi_mobile_rustbuffer_from_bytes(ForeignBytes bytes, RustCallStatus *_Nonnull out_status
71
- );
72
- void ffi_mobile_rustbuffer_free(RustBuffer buf, RustCallStatus *_Nonnull out_status
73
- );
74
- RustBuffer ffi_mobile_rustbuffer_reserve(RustBuffer buf, int32_t additional, RustCallStatus *_Nonnull out_status
75
- );
76
- void ffi_mobile_rust_future_continuation_callback_set(UniFfiRustFutureContinuation _Nonnull callback
77
- );
78
- void ffi_mobile_rust_future_poll_u8(void* _Nonnull handle, void* _Nonnull uniffi_callback
79
- );
80
- void ffi_mobile_rust_future_cancel_u8(void* _Nonnull handle
81
- );
82
- void ffi_mobile_rust_future_free_u8(void* _Nonnull handle
83
- );
84
- uint8_t ffi_mobile_rust_future_complete_u8(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
85
- );
86
- void ffi_mobile_rust_future_poll_i8(void* _Nonnull handle, void* _Nonnull uniffi_callback
87
- );
88
- void ffi_mobile_rust_future_cancel_i8(void* _Nonnull handle
89
- );
90
- void ffi_mobile_rust_future_free_i8(void* _Nonnull handle
91
- );
92
- int8_t ffi_mobile_rust_future_complete_i8(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
93
- );
94
- void ffi_mobile_rust_future_poll_u16(void* _Nonnull handle, void* _Nonnull uniffi_callback
95
- );
96
- void ffi_mobile_rust_future_cancel_u16(void* _Nonnull handle
97
- );
98
- void ffi_mobile_rust_future_free_u16(void* _Nonnull handle
99
- );
100
- uint16_t ffi_mobile_rust_future_complete_u16(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
101
- );
102
- void ffi_mobile_rust_future_poll_i16(void* _Nonnull handle, void* _Nonnull uniffi_callback
103
- );
104
- void ffi_mobile_rust_future_cancel_i16(void* _Nonnull handle
105
- );
106
- void ffi_mobile_rust_future_free_i16(void* _Nonnull handle
107
- );
108
- int16_t ffi_mobile_rust_future_complete_i16(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
109
- );
110
- void ffi_mobile_rust_future_poll_u32(void* _Nonnull handle, void* _Nonnull uniffi_callback
111
- );
112
- void ffi_mobile_rust_future_cancel_u32(void* _Nonnull handle
113
- );
114
- void ffi_mobile_rust_future_free_u32(void* _Nonnull handle
115
- );
116
- uint32_t ffi_mobile_rust_future_complete_u32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
117
- );
118
- void ffi_mobile_rust_future_poll_i32(void* _Nonnull handle, void* _Nonnull uniffi_callback
119
- );
120
- void ffi_mobile_rust_future_cancel_i32(void* _Nonnull handle
121
- );
122
- void ffi_mobile_rust_future_free_i32(void* _Nonnull handle
123
- );
124
- int32_t ffi_mobile_rust_future_complete_i32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
125
- );
126
- void ffi_mobile_rust_future_poll_u64(void* _Nonnull handle, void* _Nonnull uniffi_callback
127
- );
128
- void ffi_mobile_rust_future_cancel_u64(void* _Nonnull handle
129
- );
130
- void ffi_mobile_rust_future_free_u64(void* _Nonnull handle
131
- );
132
- uint64_t ffi_mobile_rust_future_complete_u64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
133
- );
134
- void ffi_mobile_rust_future_poll_i64(void* _Nonnull handle, void* _Nonnull uniffi_callback
135
- );
136
- void ffi_mobile_rust_future_cancel_i64(void* _Nonnull handle
137
- );
138
- void ffi_mobile_rust_future_free_i64(void* _Nonnull handle
139
- );
140
- int64_t ffi_mobile_rust_future_complete_i64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
141
- );
142
- void ffi_mobile_rust_future_poll_f32(void* _Nonnull handle, void* _Nonnull uniffi_callback
143
- );
144
- void ffi_mobile_rust_future_cancel_f32(void* _Nonnull handle
145
- );
146
- void ffi_mobile_rust_future_free_f32(void* _Nonnull handle
147
- );
148
- float ffi_mobile_rust_future_complete_f32(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
149
- );
150
- void ffi_mobile_rust_future_poll_f64(void* _Nonnull handle, void* _Nonnull uniffi_callback
151
- );
152
- void ffi_mobile_rust_future_cancel_f64(void* _Nonnull handle
153
- );
154
- void ffi_mobile_rust_future_free_f64(void* _Nonnull handle
155
- );
156
- double ffi_mobile_rust_future_complete_f64(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
157
- );
158
- void ffi_mobile_rust_future_poll_pointer(void* _Nonnull handle, void* _Nonnull uniffi_callback
159
- );
160
- void ffi_mobile_rust_future_cancel_pointer(void* _Nonnull handle
161
- );
162
- void ffi_mobile_rust_future_free_pointer(void* _Nonnull handle
163
- );
164
- void*_Nonnull ffi_mobile_rust_future_complete_pointer(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
165
- );
166
- void ffi_mobile_rust_future_poll_rust_buffer(void* _Nonnull handle, void* _Nonnull uniffi_callback
167
- );
168
- void ffi_mobile_rust_future_cancel_rust_buffer(void* _Nonnull handle
169
- );
170
- void ffi_mobile_rust_future_free_rust_buffer(void* _Nonnull handle
171
- );
172
- RustBuffer ffi_mobile_rust_future_complete_rust_buffer(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
173
- );
174
- void ffi_mobile_rust_future_poll_void(void* _Nonnull handle, void* _Nonnull uniffi_callback
175
- );
176
- void ffi_mobile_rust_future_cancel_void(void* _Nonnull handle
177
- );
178
- void ffi_mobile_rust_future_free_void(void* _Nonnull handle
179
- );
180
- void ffi_mobile_rust_future_complete_void(void* _Nonnull handle, RustCallStatus *_Nonnull out_status
181
- );
182
- uint16_t uniffi_mobile_checksum_func_auth(void
183
-
184
- );
185
- uint32_t ffi_mobile_uniffi_contract_version(void
186
-
187
- );
188
-