@rusaint/react-native 0.10.0-dev.1 → 0.10.0-dev.2

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.
@@ -8,7 +8,7 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>librusaint_ffi.a</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64</string>
11
+ <string>ios-arm64-simulator</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>librusaint_ffi.a</string>
14
14
  <key>SupportedArchitectures</key>
@@ -17,12 +17,14 @@
17
17
  </array>
18
18
  <key>SupportedPlatform</key>
19
19
  <string>ios</string>
20
+ <key>SupportedPlatformVariant</key>
21
+ <string>simulator</string>
20
22
  </dict>
21
23
  <dict>
22
24
  <key>BinaryPath</key>
23
25
  <string>librusaint_ffi.a</string>
24
26
  <key>LibraryIdentifier</key>
25
- <string>ios-arm64-simulator</string>
27
+ <string>ios-arm64</string>
26
28
  <key>LibraryPath</key>
27
29
  <string>librusaint_ffi.a</string>
28
30
  <key>SupportedArchitectures</key>
@@ -31,8 +33,6 @@
31
33
  </array>
32
34
  <key>SupportedPlatform</key>
33
35
  <string>ios</string>
34
- <key>SupportedPlatformVariant</key>
35
- <string>simulator</string>
36
36
  </dict>
37
37
  </array>
38
38
  <key>CFBundlePackageType</key>
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,8 @@
1
+ import type { TurboModule } from 'react-native';
2
+ export interface Spec extends TurboModule {
3
+ installRustCrate(): boolean;
4
+ cleanupRustCrate(): boolean;
5
+ }
6
+ declare const _default: Spec;
7
+ export default _default;
8
+ //# sourceMappingURL=NativeReactNative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeReactNative.d.ts","sourceRoot":"","sources":["../../../../src/NativeReactNative.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,gBAAgB,IAAI,OAAO,CAAC;IAC5B,gBAAgB,IAAI,OAAO,CAAC;CAC7B;;AAED,wBAAqE"}
@@ -0,0 +1,109 @@
1
+ import { type UniffiRustCallStatus, type UniffiRustArcPtr } from 'uniffi-bindgen-react-native';
2
+ interface NativeModuleInterface {
3
+ ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length(string: string, uniffi_out_err: UniffiRustCallStatus): number;
4
+ ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer(string: string, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
5
+ ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string(buffer: Uint8Array, uniffi_out_err: UniffiRustCallStatus): string;
6
+ ubrn_uniffi_rusaint_fn_clone_lecturecategorybuilder(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
7
+ ubrn_uniffi_rusaint_fn_free_lecturecategorybuilder(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
8
+ ubrn_uniffi_rusaint_fn_constructor_lecturecategorybuilder_new(uniffi_out_err: UniffiRustCallStatus): bigint;
9
+ ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_chapel(ptr: bigint, lectureName: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
10
+ ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_connected_major(ptr: bigint, major: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
11
+ ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_cyber(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
12
+ ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_education(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
13
+ ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_find_by_lecture(ptr: bigint, keyword: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
14
+ ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_find_by_professor(ptr: bigint, keyword: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
15
+ ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_graduated(ptr: bigint, collage: Uint8Array, department: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
16
+ ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_major(ptr: bigint, collage: Uint8Array, department: Uint8Array, major: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
17
+ ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_optional_elective(ptr: bigint, category: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
18
+ ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_recognized_other_major(ptr: bigint, collage: Uint8Array, department: Uint8Array, major: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
19
+ ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_required_elective(ptr: bigint, lectureName: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
20
+ ubrn_uniffi_rusaint_fn_method_lecturecategorybuilder_united_major(ptr: bigint, major: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
21
+ ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_chapel(): number;
22
+ ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_connected_major(): number;
23
+ ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_cyber(): number;
24
+ ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_education(): number;
25
+ ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_find_by_lecture(): number;
26
+ ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_find_by_professor(): number;
27
+ ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_graduated(): number;
28
+ ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_major(): number;
29
+ ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_optional_elective(): number;
30
+ ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_recognized_other_major(): number;
31
+ ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_required_elective(): number;
32
+ ubrn_uniffi_rusaint_checksum_method_lecturecategorybuilder_united_major(): number;
33
+ ubrn_uniffi_rusaint_checksum_constructor_lecturecategorybuilder_new(): number;
34
+ ubrn_ffi_rusaint_uniffi_contract_version(): number;
35
+ ubrn_uniffi_internal_fn_method_lecturecategorybuilder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiRustArcPtr;
36
+ }
37
+ declare const getter: () => NativeModuleInterface;
38
+ export default getter;
39
+ export type UniffiRustFutureContinuationCallback = (data: bigint, pollResult: number) => void;
40
+ type UniffiForeignFutureFree = (handle: bigint) => void;
41
+ export type UniffiForeignFuture = {
42
+ handle: bigint;
43
+ free: UniffiForeignFutureFree;
44
+ };
45
+ export type UniffiForeignFutureStructU8 = {
46
+ returnValue: number;
47
+ callStatus: UniffiRustCallStatus;
48
+ };
49
+ export type UniffiForeignFutureCompleteU8 = (callbackData: bigint, result: UniffiForeignFutureStructU8) => void;
50
+ export type UniffiForeignFutureStructI8 = {
51
+ returnValue: number;
52
+ callStatus: UniffiRustCallStatus;
53
+ };
54
+ export type UniffiForeignFutureCompleteI8 = (callbackData: bigint, result: UniffiForeignFutureStructI8) => void;
55
+ export type UniffiForeignFutureStructU16 = {
56
+ returnValue: number;
57
+ callStatus: UniffiRustCallStatus;
58
+ };
59
+ export type UniffiForeignFutureCompleteU16 = (callbackData: bigint, result: UniffiForeignFutureStructU16) => void;
60
+ export type UniffiForeignFutureStructI16 = {
61
+ returnValue: number;
62
+ callStatus: UniffiRustCallStatus;
63
+ };
64
+ export type UniffiForeignFutureCompleteI16 = (callbackData: bigint, result: UniffiForeignFutureStructI16) => void;
65
+ export type UniffiForeignFutureStructU32 = {
66
+ returnValue: number;
67
+ callStatus: UniffiRustCallStatus;
68
+ };
69
+ export type UniffiForeignFutureCompleteU32 = (callbackData: bigint, result: UniffiForeignFutureStructU32) => void;
70
+ export type UniffiForeignFutureStructI32 = {
71
+ returnValue: number;
72
+ callStatus: UniffiRustCallStatus;
73
+ };
74
+ export type UniffiForeignFutureCompleteI32 = (callbackData: bigint, result: UniffiForeignFutureStructI32) => void;
75
+ export type UniffiForeignFutureStructU64 = {
76
+ returnValue: bigint;
77
+ callStatus: UniffiRustCallStatus;
78
+ };
79
+ export type UniffiForeignFutureCompleteU64 = (callbackData: bigint, result: UniffiForeignFutureStructU64) => void;
80
+ export type UniffiForeignFutureStructI64 = {
81
+ returnValue: bigint;
82
+ callStatus: UniffiRustCallStatus;
83
+ };
84
+ export type UniffiForeignFutureCompleteI64 = (callbackData: bigint, result: UniffiForeignFutureStructI64) => void;
85
+ export type UniffiForeignFutureStructF32 = {
86
+ returnValue: number;
87
+ callStatus: UniffiRustCallStatus;
88
+ };
89
+ export type UniffiForeignFutureCompleteF32 = (callbackData: bigint, result: UniffiForeignFutureStructF32) => void;
90
+ export type UniffiForeignFutureStructF64 = {
91
+ returnValue: number;
92
+ callStatus: UniffiRustCallStatus;
93
+ };
94
+ export type UniffiForeignFutureCompleteF64 = (callbackData: bigint, result: UniffiForeignFutureStructF64) => void;
95
+ export type UniffiForeignFutureStructPointer = {
96
+ returnValue: bigint;
97
+ callStatus: UniffiRustCallStatus;
98
+ };
99
+ export type UniffiForeignFutureCompletePointer = (callbackData: bigint, result: UniffiForeignFutureStructPointer) => void;
100
+ export type UniffiForeignFutureStructRustBuffer = {
101
+ returnValue: Uint8Array;
102
+ callStatus: UniffiRustCallStatus;
103
+ };
104
+ export type UniffiForeignFutureCompleteRustBuffer = (callbackData: bigint, result: UniffiForeignFutureStructRustBuffer) => void;
105
+ export type UniffiForeignFutureStructVoid = {
106
+ callStatus: UniffiRustCallStatus;
107
+ };
108
+ export type UniffiForeignFutureCompleteVoid = (callbackData: bigint, result: UniffiForeignFutureStructVoid) => void;
109
+ //# sourceMappingURL=rusaint-ffi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rusaint-ffi.d.ts","sourceRoot":"","sources":["../../../../../src/generated/rusaint-ffi.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EAGtB,MAAM,6BAA6B,CAAC;AAErC,UAAU,qBAAqB;IAC7B,uDAAuD,CACrD,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,oBAAoB,GACnC,MAAM,CAAC;IACV,uDAAuD,CACrD,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,oBAAoB,GACnC,UAAU,CAAC;IACd,uDAAuD,CACrD,MAAM,EAAE,UAAU,EAClB,cAAc,EAAE,oBAAoB,GACnC,MAAM,CAAC;IACV,mDAAmD,CACjD,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,oBAAoB,GACnC,MAAM,CAAC;IACV,kDAAkD,CAChD,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,oBAAoB,GACnC,IAAI,CAAC;IACR,6DAA6D,CAC3D,cAAc,EAAE,oBAAoB,GACnC,MAAM,CAAC;IACV,2DAA2D,CACzD,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,UAAU,EACvB,cAAc,EAAE,oBAAoB,GACnC,UAAU,CAAC;IACd,oEAAoE,CAClE,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,UAAU,EACjB,cAAc,EAAE,oBAAoB,GACnC,UAAU,CAAC;IACd,0DAA0D,CACxD,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,oBAAoB,GACnC,UAAU,CAAC;IACd,8DAA8D,CAC5D,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,oBAAoB,GACnC,UAAU,CAAC;IACd,oEAAoE,CAClE,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,UAAU,EACnB,cAAc,EAAE,oBAAoB,GACnC,UAAU,CAAC;IACd,sEAAsE,CACpE,GAAG,EAAE,MAAM,EACX,OAAO,E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