@bio-rs/biors-wasm 0.47.4 → 0.47.9
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-APACHE +17 -0
- package/LICENSE-MIT +22 -0
- package/README.md +11 -3
- package/biors_wasm.d.ts +1 -1
- package/biors_wasm_bg.js +286 -0
- package/biors_wasm_bg.wasm +0 -0
- package/biors_wasm_bg.wasm.d.ts +17 -0
- package/index.d.ts +0 -1
- package/package.json +5 -1
package/LICENSE-APACHE
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
|
|
4
|
+
Copyright 2026 Bio.rs contributors
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
7
|
+
use this file except in compliance with the License. You may obtain a copy of
|
|
8
|
+
the License at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
14
|
+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
15
|
+
License for the specific language governing permissions and limitations under
|
|
16
|
+
the License.
|
|
17
|
+
|
package/LICENSE-MIT
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bio.rs contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ WebAssembly/JavaScript bindings for [bio-rs](https://github.com/bio-rs/bio-rs) c
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```javascript
|
|
8
|
-
import
|
|
8
|
+
import {
|
|
9
9
|
parseFasta,
|
|
10
10
|
validateFasta,
|
|
11
11
|
tokenize,
|
|
@@ -13,14 +13,13 @@ import init, {
|
|
|
13
13
|
runWorkflow,
|
|
14
14
|
} from "@bio-rs/biors-wasm";
|
|
15
15
|
|
|
16
|
-
await init();
|
|
17
|
-
|
|
18
16
|
const fastaText = ">seq1\nACDE\n>seq2\nFGHI\n";
|
|
19
17
|
const bytes = new TextEncoder().encode(fastaText);
|
|
20
18
|
|
|
21
19
|
const parsed = parseFasta(bytes);
|
|
22
20
|
const validated = validateFasta(bytes, "protein");
|
|
23
21
|
const tokenized = tokenize(parsed, "protein-20");
|
|
22
|
+
const dnaTokens = tokenize(parseFasta(new TextEncoder().encode(">dna\nACGT\n")), "dna-iupac");
|
|
24
23
|
const modelInput = buildModelInputWithPolicy(tokenized.records, 8, 0, "fixed_length");
|
|
25
24
|
const workflow = runWorkflow({
|
|
26
25
|
fastaBytes: bytes,
|
|
@@ -28,6 +27,12 @@ const workflow = runWorkflow({
|
|
|
28
27
|
padding: "fixed_length",
|
|
29
28
|
padTokenId: 0,
|
|
30
29
|
});
|
|
30
|
+
const dnaWorkflow = runWorkflow({
|
|
31
|
+
fastaBytes: new TextEncoder().encode(">dna\nACGT\n"),
|
|
32
|
+
kind: "dna",
|
|
33
|
+
profile: "dna-iupac",
|
|
34
|
+
maxLength: 8,
|
|
35
|
+
});
|
|
31
36
|
```
|
|
32
37
|
|
|
33
38
|
## Development
|
|
@@ -39,6 +44,9 @@ cargo check -p biors-wasm --target wasm32-unknown-unknown
|
|
|
39
44
|
# Build for bundlers
|
|
40
45
|
wasm-pack build packages/rust/biors-wasm --target bundler
|
|
41
46
|
|
|
47
|
+
# Enable browser panic stack traces for local debugging
|
|
48
|
+
wasm-pack build packages/rust/biors-wasm --target bundler --features console_error_panic_hook
|
|
49
|
+
|
|
42
50
|
# Run browser tests
|
|
43
51
|
wasm-pack test --headless --chrome packages/rust/biors-wasm
|
|
44
52
|
```
|
package/biors_wasm.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ export interface ValidationReport {
|
|
|
96
96
|
export interface WorkflowConfig {
|
|
97
97
|
fastaBytes: Uint8Array;
|
|
98
98
|
kind?: "auto" | "protein" | "dna" | "rna";
|
|
99
|
-
profile?: "protein-20" | "protein-20-special";
|
|
99
|
+
profile?: "protein-20" | "protein-20-special" | "dna-iupac" | "dna-iupac-special" | "rna-iupac" | "rna-iupac-special";
|
|
100
100
|
maxLength: number;
|
|
101
101
|
padding?: "fixed_length" | "no_padding";
|
|
102
102
|
padTokenId?: number;
|
package/biors_wasm_bg.js
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {any} tokenized
|
|
3
|
+
* @param {number} max_length
|
|
4
|
+
* @returns {any}
|
|
5
|
+
*/
|
|
6
|
+
export function buildModelInput(tokenized, max_length) {
|
|
7
|
+
const ret = wasm.buildModelInput(tokenized, max_length);
|
|
8
|
+
if (ret[2]) {
|
|
9
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
10
|
+
}
|
|
11
|
+
return takeFromExternrefTable0(ret[0]);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @param {any} tokenized
|
|
16
|
+
* @param {number} max_length
|
|
17
|
+
* @param {number} pad_token_id
|
|
18
|
+
* @param {string} padding
|
|
19
|
+
* @returns {any}
|
|
20
|
+
*/
|
|
21
|
+
export function buildModelInputWithPolicy(tokenized, max_length, pad_token_id, padding) {
|
|
22
|
+
const ptr0 = passStringToWasm0(padding, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
23
|
+
const len0 = WASM_VECTOR_LEN;
|
|
24
|
+
const ret = wasm.buildModelInputWithPolicy(tokenized, max_length, pad_token_id, ptr0, len0);
|
|
25
|
+
if (ret[2]) {
|
|
26
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
27
|
+
}
|
|
28
|
+
return takeFromExternrefTable0(ret[0]);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function init_panic_hook() {
|
|
32
|
+
wasm.init_panic_hook();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Parse FASTA bytes into an array of sequence records.
|
|
37
|
+
* @param {Uint8Array} bytes
|
|
38
|
+
* @returns {any}
|
|
39
|
+
*/
|
|
40
|
+
export function parseFasta(bytes) {
|
|
41
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
42
|
+
const len0 = WASM_VECTOR_LEN;
|
|
43
|
+
const ret = wasm.parseFasta(ptr0, len0);
|
|
44
|
+
if (ret[2]) {
|
|
45
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
46
|
+
}
|
|
47
|
+
return takeFromExternrefTable0(ret[0]);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @param {any} config
|
|
52
|
+
* @returns {any}
|
|
53
|
+
*/
|
|
54
|
+
export function runWorkflow(config) {
|
|
55
|
+
const ret = wasm.runWorkflow(config);
|
|
56
|
+
if (ret[2]) {
|
|
57
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
58
|
+
}
|
|
59
|
+
return takeFromExternrefTable0(ret[0]);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @param {any} records
|
|
64
|
+
* @param {string} profile
|
|
65
|
+
* @returns {any}
|
|
66
|
+
*/
|
|
67
|
+
export function tokenize(records, profile) {
|
|
68
|
+
const ptr0 = passStringToWasm0(profile, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
69
|
+
const len0 = WASM_VECTOR_LEN;
|
|
70
|
+
const ret = wasm.tokenize(records, ptr0, len0);
|
|
71
|
+
if (ret[2]) {
|
|
72
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
73
|
+
}
|
|
74
|
+
return takeFromExternrefTable0(ret[0]);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Validate FASTA bytes and return a structured validation report.
|
|
79
|
+
* @param {Uint8Array} bytes
|
|
80
|
+
* @param {string} kind
|
|
81
|
+
* @returns {any}
|
|
82
|
+
*/
|
|
83
|
+
export function validateFasta(bytes, kind) {
|
|
84
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
85
|
+
const len0 = WASM_VECTOR_LEN;
|
|
86
|
+
const ptr1 = passStringToWasm0(kind, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
87
|
+
const len1 = WASM_VECTOR_LEN;
|
|
88
|
+
const ret = wasm.validateFasta(ptr0, len0, ptr1, len1);
|
|
89
|
+
if (ret[2]) {
|
|
90
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
91
|
+
}
|
|
92
|
+
return takeFromExternrefTable0(ret[0]);
|
|
93
|
+
}
|
|
94
|
+
export function __wbg___wbindgen_is_undefined_29a43b4d42920abd(arg0) {
|
|
95
|
+
const ret = arg0 === undefined;
|
|
96
|
+
return ret;
|
|
97
|
+
}
|
|
98
|
+
export function __wbg___wbindgen_number_get_c7f42aed0525c451(arg0, arg1) {
|
|
99
|
+
const obj = arg1;
|
|
100
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
101
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
102
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
103
|
+
}
|
|
104
|
+
export function __wbg___wbindgen_string_get_7ed5322991caaec5(arg0, arg1) {
|
|
105
|
+
const obj = arg1;
|
|
106
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
107
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
108
|
+
var len1 = WASM_VECTOR_LEN;
|
|
109
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
110
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
111
|
+
}
|
|
112
|
+
export function __wbg___wbindgen_throw_6b64449b9b9ed33c(arg0, arg1) {
|
|
113
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
114
|
+
}
|
|
115
|
+
export function __wbg_get_6011fa3a58f61074() { return handleError(function (arg0, arg1) {
|
|
116
|
+
const ret = Reflect.get(arg0, arg1);
|
|
117
|
+
return ret;
|
|
118
|
+
}, arguments); }
|
|
119
|
+
export function __wbg_instanceof_Uint8Array_152ba1f289edcf3f(arg0) {
|
|
120
|
+
let result;
|
|
121
|
+
try {
|
|
122
|
+
result = arg0 instanceof Uint8Array;
|
|
123
|
+
} catch (_) {
|
|
124
|
+
result = false;
|
|
125
|
+
}
|
|
126
|
+
const ret = result;
|
|
127
|
+
return ret;
|
|
128
|
+
}
|
|
129
|
+
export function __wbg_length_9f1775224cf1d815(arg0) {
|
|
130
|
+
const ret = arg0.length;
|
|
131
|
+
return ret;
|
|
132
|
+
}
|
|
133
|
+
export function __wbg_parse_1bbc9c053611d0a7() { return handleError(function (arg0, arg1) {
|
|
134
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
135
|
+
return ret;
|
|
136
|
+
}, arguments); }
|
|
137
|
+
export function __wbg_prototypesetcall_a6b02eb00b0f4ce2(arg0, arg1, arg2) {
|
|
138
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
139
|
+
}
|
|
140
|
+
export function __wbg_stringify_91082ed7a5a5769e() { return handleError(function (arg0) {
|
|
141
|
+
const ret = JSON.stringify(arg0);
|
|
142
|
+
return ret;
|
|
143
|
+
}, arguments); }
|
|
144
|
+
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
145
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
146
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
147
|
+
return ret;
|
|
148
|
+
}
|
|
149
|
+
export function __wbindgen_init_externref_table() {
|
|
150
|
+
const table = wasm.__wbindgen_externrefs;
|
|
151
|
+
const offset = table.grow(4);
|
|
152
|
+
table.set(0, undefined);
|
|
153
|
+
table.set(offset + 0, undefined);
|
|
154
|
+
table.set(offset + 1, null);
|
|
155
|
+
table.set(offset + 2, true);
|
|
156
|
+
table.set(offset + 3, false);
|
|
157
|
+
}
|
|
158
|
+
function addToExternrefTable0(obj) {
|
|
159
|
+
const idx = wasm.__externref_table_alloc();
|
|
160
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
161
|
+
return idx;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
165
|
+
ptr = ptr >>> 0;
|
|
166
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
let cachedDataViewMemory0 = null;
|
|
170
|
+
function getDataViewMemory0() {
|
|
171
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
172
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
173
|
+
}
|
|
174
|
+
return cachedDataViewMemory0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
function getStringFromWasm0(ptr, len) {
|
|
178
|
+
ptr = ptr >>> 0;
|
|
179
|
+
return decodeText(ptr, len);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
let cachedUint8ArrayMemory0 = null;
|
|
183
|
+
function getUint8ArrayMemory0() {
|
|
184
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
185
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
186
|
+
}
|
|
187
|
+
return cachedUint8ArrayMemory0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function handleError(f, args) {
|
|
191
|
+
try {
|
|
192
|
+
return f.apply(this, args);
|
|
193
|
+
} catch (e) {
|
|
194
|
+
const idx = addToExternrefTable0(e);
|
|
195
|
+
wasm.__wbindgen_exn_store(idx);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function isLikeNone(x) {
|
|
200
|
+
return x === undefined || x === null;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
204
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
205
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
206
|
+
WASM_VECTOR_LEN = arg.length;
|
|
207
|
+
return ptr;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
211
|
+
if (realloc === undefined) {
|
|
212
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
213
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
214
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
215
|
+
WASM_VECTOR_LEN = buf.length;
|
|
216
|
+
return ptr;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
let len = arg.length;
|
|
220
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
221
|
+
|
|
222
|
+
const mem = getUint8ArrayMemory0();
|
|
223
|
+
|
|
224
|
+
let offset = 0;
|
|
225
|
+
|
|
226
|
+
for (; offset < len; offset++) {
|
|
227
|
+
const code = arg.charCodeAt(offset);
|
|
228
|
+
if (code > 0x7F) break;
|
|
229
|
+
mem[ptr + offset] = code;
|
|
230
|
+
}
|
|
231
|
+
if (offset !== len) {
|
|
232
|
+
if (offset !== 0) {
|
|
233
|
+
arg = arg.slice(offset);
|
|
234
|
+
}
|
|
235
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
236
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
237
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
238
|
+
|
|
239
|
+
offset += ret.written;
|
|
240
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
WASM_VECTOR_LEN = offset;
|
|
244
|
+
return ptr;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
function takeFromExternrefTable0(idx) {
|
|
248
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
249
|
+
wasm.__externref_table_dealloc(idx);
|
|
250
|
+
return value;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
254
|
+
cachedTextDecoder.decode();
|
|
255
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
256
|
+
let numBytesDecoded = 0;
|
|
257
|
+
function decodeText(ptr, len) {
|
|
258
|
+
numBytesDecoded += len;
|
|
259
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
260
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
261
|
+
cachedTextDecoder.decode();
|
|
262
|
+
numBytesDecoded = len;
|
|
263
|
+
}
|
|
264
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const cachedTextEncoder = new TextEncoder();
|
|
268
|
+
|
|
269
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
270
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
271
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
272
|
+
view.set(buf);
|
|
273
|
+
return {
|
|
274
|
+
read: arg.length,
|
|
275
|
+
written: buf.length
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
let WASM_VECTOR_LEN = 0;
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
let wasm;
|
|
284
|
+
export function __wbg_set_wasm(val) {
|
|
285
|
+
wasm = val;
|
|
286
|
+
}
|
package/biors_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const runWorkflow: (a: any) => [number, number, number];
|
|
5
|
+
export const buildModelInput: (a: any, b: number) => [number, number, number];
|
|
6
|
+
export const buildModelInputWithPolicy: (a: any, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
7
|
+
export const init_panic_hook: () => void;
|
|
8
|
+
export const parseFasta: (a: number, b: number) => [number, number, number];
|
|
9
|
+
export const validateFasta: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
10
|
+
export const tokenize: (a: any, b: number, c: number) => [number, number, number];
|
|
11
|
+
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
12
|
+
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
13
|
+
export const __wbindgen_exn_store: (a: number) => void;
|
|
14
|
+
export const __externref_table_alloc: () => number;
|
|
15
|
+
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
16
|
+
export const __externref_table_dealloc: (a: number) => void;
|
|
17
|
+
export const __wbindgen_start: () => void;
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@bio-rs/biors-wasm",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "WebAssembly bindings for bio-rs biological sequence processing",
|
|
5
|
-
"version": "0.47.
|
|
5
|
+
"version": "0.47.9",
|
|
6
6
|
"license": "MIT OR Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
"directory": "packages/rust/biors-wasm"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
+
"LICENSE-APACHE",
|
|
14
|
+
"LICENSE-MIT",
|
|
15
|
+
"biors_wasm_bg.js",
|
|
13
16
|
"biors_wasm_bg.wasm",
|
|
17
|
+
"biors_wasm_bg.wasm.d.ts",
|
|
14
18
|
"biors_wasm.js",
|
|
15
19
|
"biors_wasm.d.ts",
|
|
16
20
|
"index.d.ts",
|