@noir-lang/noir_wasm 0.22.0-4b16090.nightly → 0.22.0-5be049e.nightly
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/nodejs/noir_wasm.d.ts +8 -8
- package/nodejs/noir_wasm.js +37 -27
- package/nodejs/noir_wasm_bg.wasm +0 -0
- package/nodejs/noir_wasm_bg.wasm.d.ts +3 -3
- package/package.json +1 -1
- package/web/noir_wasm.d.ts +11 -11
- package/web/noir_wasm.js +36 -26
- package/web/noir_wasm_bg.wasm +0 -0
- package/web/noir_wasm_bg.wasm.d.ts +3 -3
package/nodejs/noir_wasm.d.ts
CHANGED
|
@@ -11,14 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export function compile_(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
|
|
13
13
|
/**
|
|
14
|
-
* @param {string} entry_point
|
|
15
|
-
* @param {boolean | undefined} contracts
|
|
16
|
-
* @param {DependencyGraph | undefined} dependency_graph
|
|
17
|
-
* @param {PathToFileSourceMap} file_source_map
|
|
18
|
-
* @returns {CompileResult}
|
|
19
|
-
*/
|
|
20
|
-
export function compile(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
|
|
21
|
-
/**
|
|
22
14
|
* @param {string} filter
|
|
23
15
|
*/
|
|
24
16
|
export function init_log_level(filter: string): void;
|
|
@@ -26,6 +18,14 @@ export function init_log_level(filter: string): void;
|
|
|
26
18
|
* @returns {any}
|
|
27
19
|
*/
|
|
28
20
|
export function build_info(): any;
|
|
21
|
+
/**
|
|
22
|
+
* @param {string} entry_point
|
|
23
|
+
* @param {boolean | undefined} contracts
|
|
24
|
+
* @param {DependencyGraph | undefined} dependency_graph
|
|
25
|
+
* @param {PathToFileSourceMap} file_source_map
|
|
26
|
+
* @returns {CompileResult}
|
|
27
|
+
*/
|
|
28
|
+
export function compile(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
|
|
29
29
|
|
|
30
30
|
export type Diagnostic = {
|
|
31
31
|
message: string;
|
package/nodejs/noir_wasm.js
CHANGED
|
@@ -218,6 +218,23 @@ module.exports.compile_ = function(entry_point, contracts, dependency_graph, fil
|
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
|
|
221
|
+
/**
|
|
222
|
+
* @param {string} filter
|
|
223
|
+
*/
|
|
224
|
+
module.exports.init_log_level = function(filter) {
|
|
225
|
+
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
226
|
+
const len0 = WASM_VECTOR_LEN;
|
|
227
|
+
wasm.init_log_level(ptr0, len0);
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @returns {any}
|
|
232
|
+
*/
|
|
233
|
+
module.exports.build_info = function() {
|
|
234
|
+
const ret = wasm.build_info();
|
|
235
|
+
return takeObject(ret);
|
|
236
|
+
};
|
|
237
|
+
|
|
221
238
|
/**
|
|
222
239
|
* @param {string} entry_point
|
|
223
240
|
* @param {boolean | undefined} contracts
|
|
@@ -245,23 +262,6 @@ module.exports.compile = function(entry_point, contracts, dependency_graph, file
|
|
|
245
262
|
}
|
|
246
263
|
};
|
|
247
264
|
|
|
248
|
-
/**
|
|
249
|
-
* @param {string} filter
|
|
250
|
-
*/
|
|
251
|
-
module.exports.init_log_level = function(filter) {
|
|
252
|
-
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
253
|
-
const len0 = WASM_VECTOR_LEN;
|
|
254
|
-
wasm.init_log_level(ptr0, len0);
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* @returns {any}
|
|
259
|
-
*/
|
|
260
|
-
module.exports.build_info = function() {
|
|
261
|
-
const ret = wasm.build_info();
|
|
262
|
-
return takeObject(ret);
|
|
263
|
-
};
|
|
264
|
-
|
|
265
265
|
function handleError(f, args) {
|
|
266
266
|
try {
|
|
267
267
|
return f.apply(this, args);
|
|
@@ -330,11 +330,21 @@ class CompilerContext {
|
|
|
330
330
|
* @param {CrateId} to
|
|
331
331
|
*/
|
|
332
332
|
add_dependency_edge(crate_name, from, to) {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
333
|
+
try {
|
|
334
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
335
|
+
const ptr0 = passStringToWasm0(crate_name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
336
|
+
const len0 = WASM_VECTOR_LEN;
|
|
337
|
+
_assertClass(from, CrateId);
|
|
338
|
+
_assertClass(to, CrateId);
|
|
339
|
+
wasm.compilercontext_add_dependency_edge(retptr, this.__wbg_ptr, ptr0, len0, from.__wbg_ptr, to.__wbg_ptr);
|
|
340
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
341
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
342
|
+
if (r1) {
|
|
343
|
+
throw takeObject(r0);
|
|
344
|
+
}
|
|
345
|
+
} finally {
|
|
346
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
347
|
+
}
|
|
338
348
|
}
|
|
339
349
|
/**
|
|
340
350
|
* @param {number} program_width
|
|
@@ -448,11 +458,6 @@ class PathToFileSourceMap {
|
|
|
448
458
|
}
|
|
449
459
|
module.exports.PathToFileSourceMap = PathToFileSourceMap;
|
|
450
460
|
|
|
451
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
452
|
-
const ret = getObject(arg0) === undefined;
|
|
453
|
-
return ret;
|
|
454
|
-
};
|
|
455
|
-
|
|
456
461
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
457
462
|
takeObject(arg0);
|
|
458
463
|
};
|
|
@@ -467,6 +472,11 @@ module.exports.__wbg_constructor_a3b5b211c5053ce8 = function() {
|
|
|
467
472
|
return addHeapObject(ret);
|
|
468
473
|
};
|
|
469
474
|
|
|
475
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
476
|
+
const ret = getObject(arg0) === undefined;
|
|
477
|
+
return ret;
|
|
478
|
+
};
|
|
479
|
+
|
|
470
480
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
471
481
|
const ret = new Error();
|
|
472
482
|
return addHeapObject(ret);
|
package/nodejs/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -6,16 +6,16 @@ export function __wbg_crateid_free(a: number): void;
|
|
|
6
6
|
export function compilercontext_new(a: number): number;
|
|
7
7
|
export function compilercontext_process_root_crate(a: number, b: number, c: number): number;
|
|
8
8
|
export function compilercontext_process_dependency_crate(a: number, b: number, c: number): number;
|
|
9
|
-
export function compilercontext_add_dependency_edge(a: number, b: number, c: number, d: number, e: number): void;
|
|
9
|
+
export function compilercontext_add_dependency_edge(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
10
10
|
export function compilercontext_compile_program(a: number, b: number, c: number): void;
|
|
11
11
|
export function compilercontext_compile_contract(a: number, b: number, c: number): void;
|
|
12
12
|
export function compile_(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
13
|
+
export function init_log_level(a: number, b: number): void;
|
|
14
|
+
export function build_info(): number;
|
|
13
15
|
export function __wbg_pathtofilesourcemap_free(a: number): void;
|
|
14
16
|
export function pathtofilesourcemap_new(): number;
|
|
15
17
|
export function pathtofilesourcemap_add_source_code(a: number, b: number, c: number, d: number, e: number): number;
|
|
16
18
|
export function compile(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
17
|
-
export function init_log_level(a: number, b: number): void;
|
|
18
|
-
export function build_info(): number;
|
|
19
19
|
export function __wbindgen_export_0(a: number): number;
|
|
20
20
|
export function __wbindgen_export_1(a: number, b: number, c: number): number;
|
|
21
21
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
package/package.json
CHANGED
package/web/noir_wasm.d.ts
CHANGED
|
@@ -11,14 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export function compile_(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
|
|
13
13
|
/**
|
|
14
|
-
* @param {string} entry_point
|
|
15
|
-
* @param {boolean | undefined} contracts
|
|
16
|
-
* @param {DependencyGraph | undefined} dependency_graph
|
|
17
|
-
* @param {PathToFileSourceMap} file_source_map
|
|
18
|
-
* @returns {CompileResult}
|
|
19
|
-
*/
|
|
20
|
-
export function compile(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
|
|
21
|
-
/**
|
|
22
14
|
* @param {string} filter
|
|
23
15
|
*/
|
|
24
16
|
export function init_log_level(filter: string): void;
|
|
@@ -26,6 +18,14 @@ export function init_log_level(filter: string): void;
|
|
|
26
18
|
* @returns {any}
|
|
27
19
|
*/
|
|
28
20
|
export function build_info(): any;
|
|
21
|
+
/**
|
|
22
|
+
* @param {string} entry_point
|
|
23
|
+
* @param {boolean | undefined} contracts
|
|
24
|
+
* @param {DependencyGraph | undefined} dependency_graph
|
|
25
|
+
* @param {PathToFileSourceMap} file_source_map
|
|
26
|
+
* @returns {CompileResult}
|
|
27
|
+
*/
|
|
28
|
+
export function compile(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
|
|
29
29
|
|
|
30
30
|
export type Diagnostic = {
|
|
31
31
|
message: string;
|
|
@@ -147,16 +147,16 @@ export interface InitOutput {
|
|
|
147
147
|
readonly compilercontext_new: (a: number) => number;
|
|
148
148
|
readonly compilercontext_process_root_crate: (a: number, b: number, c: number) => number;
|
|
149
149
|
readonly compilercontext_process_dependency_crate: (a: number, b: number, c: number) => number;
|
|
150
|
-
readonly compilercontext_add_dependency_edge: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
150
|
+
readonly compilercontext_add_dependency_edge: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
151
151
|
readonly compilercontext_compile_program: (a: number, b: number, c: number) => void;
|
|
152
152
|
readonly compilercontext_compile_contract: (a: number, b: number, c: number) => void;
|
|
153
153
|
readonly compile_: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
154
|
+
readonly init_log_level: (a: number, b: number) => void;
|
|
155
|
+
readonly build_info: () => number;
|
|
154
156
|
readonly __wbg_pathtofilesourcemap_free: (a: number) => void;
|
|
155
157
|
readonly pathtofilesourcemap_new: () => number;
|
|
156
158
|
readonly pathtofilesourcemap_add_source_code: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
157
159
|
readonly compile: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
158
|
-
readonly init_log_level: (a: number, b: number) => void;
|
|
159
|
-
readonly build_info: () => number;
|
|
160
160
|
readonly __wbindgen_export_0: (a: number) => number;
|
|
161
161
|
readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
|
|
162
162
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
package/web/noir_wasm.js
CHANGED
|
@@ -215,6 +215,23 @@ export function compile_(entry_point, contracts, dependency_graph, file_source_m
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
/**
|
|
219
|
+
* @param {string} filter
|
|
220
|
+
*/
|
|
221
|
+
export function init_log_level(filter) {
|
|
222
|
+
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
223
|
+
const len0 = WASM_VECTOR_LEN;
|
|
224
|
+
wasm.init_log_level(ptr0, len0);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @returns {any}
|
|
229
|
+
*/
|
|
230
|
+
export function build_info() {
|
|
231
|
+
const ret = wasm.build_info();
|
|
232
|
+
return takeObject(ret);
|
|
233
|
+
}
|
|
234
|
+
|
|
218
235
|
/**
|
|
219
236
|
* @param {string} entry_point
|
|
220
237
|
* @param {boolean | undefined} contracts
|
|
@@ -242,23 +259,6 @@ export function compile(entry_point, contracts, dependency_graph, file_source_ma
|
|
|
242
259
|
}
|
|
243
260
|
}
|
|
244
261
|
|
|
245
|
-
/**
|
|
246
|
-
* @param {string} filter
|
|
247
|
-
*/
|
|
248
|
-
export function init_log_level(filter) {
|
|
249
|
-
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
250
|
-
const len0 = WASM_VECTOR_LEN;
|
|
251
|
-
wasm.init_log_level(ptr0, len0);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* @returns {any}
|
|
256
|
-
*/
|
|
257
|
-
export function build_info() {
|
|
258
|
-
const ret = wasm.build_info();
|
|
259
|
-
return takeObject(ret);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
262
|
function handleError(f, args) {
|
|
263
263
|
try {
|
|
264
264
|
return f.apply(this, args);
|
|
@@ -327,11 +327,21 @@ export class CompilerContext {
|
|
|
327
327
|
* @param {CrateId} to
|
|
328
328
|
*/
|
|
329
329
|
add_dependency_edge(crate_name, from, to) {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
330
|
+
try {
|
|
331
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
332
|
+
const ptr0 = passStringToWasm0(crate_name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
333
|
+
const len0 = WASM_VECTOR_LEN;
|
|
334
|
+
_assertClass(from, CrateId);
|
|
335
|
+
_assertClass(to, CrateId);
|
|
336
|
+
wasm.compilercontext_add_dependency_edge(retptr, this.__wbg_ptr, ptr0, len0, from.__wbg_ptr, to.__wbg_ptr);
|
|
337
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
338
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
339
|
+
if (r1) {
|
|
340
|
+
throw takeObject(r0);
|
|
341
|
+
}
|
|
342
|
+
} finally {
|
|
343
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
344
|
+
}
|
|
335
345
|
}
|
|
336
346
|
/**
|
|
337
347
|
* @param {number} program_width
|
|
@@ -476,10 +486,6 @@ async function __wbg_load(module, imports) {
|
|
|
476
486
|
function __wbg_get_imports() {
|
|
477
487
|
const imports = {};
|
|
478
488
|
imports.wbg = {};
|
|
479
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
480
|
-
const ret = getObject(arg0) === undefined;
|
|
481
|
-
return ret;
|
|
482
|
-
};
|
|
483
489
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
484
490
|
takeObject(arg0);
|
|
485
491
|
};
|
|
@@ -491,6 +497,10 @@ function __wbg_get_imports() {
|
|
|
491
497
|
const ret = new Object();
|
|
492
498
|
return addHeapObject(ret);
|
|
493
499
|
};
|
|
500
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
501
|
+
const ret = getObject(arg0) === undefined;
|
|
502
|
+
return ret;
|
|
503
|
+
};
|
|
494
504
|
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
495
505
|
const ret = new Error();
|
|
496
506
|
return addHeapObject(ret);
|
package/web/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -6,16 +6,16 @@ export function __wbg_crateid_free(a: number): void;
|
|
|
6
6
|
export function compilercontext_new(a: number): number;
|
|
7
7
|
export function compilercontext_process_root_crate(a: number, b: number, c: number): number;
|
|
8
8
|
export function compilercontext_process_dependency_crate(a: number, b: number, c: number): number;
|
|
9
|
-
export function compilercontext_add_dependency_edge(a: number, b: number, c: number, d: number, e: number): void;
|
|
9
|
+
export function compilercontext_add_dependency_edge(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
10
10
|
export function compilercontext_compile_program(a: number, b: number, c: number): void;
|
|
11
11
|
export function compilercontext_compile_contract(a: number, b: number, c: number): void;
|
|
12
12
|
export function compile_(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
13
|
+
export function init_log_level(a: number, b: number): void;
|
|
14
|
+
export function build_info(): number;
|
|
13
15
|
export function __wbg_pathtofilesourcemap_free(a: number): void;
|
|
14
16
|
export function pathtofilesourcemap_new(): number;
|
|
15
17
|
export function pathtofilesourcemap_add_source_code(a: number, b: number, c: number, d: number, e: number): number;
|
|
16
18
|
export function compile(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
17
|
-
export function init_log_level(a: number, b: number): void;
|
|
18
|
-
export function build_info(): number;
|
|
19
19
|
export function __wbindgen_export_0(a: number): number;
|
|
20
20
|
export function __wbindgen_export_1(a: number, b: number, c: number): number;
|
|
21
21
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|