@noir-lang/noir_wasm 0.27.0-21f9f6f.nightly → 0.27.0-4dfd7f0.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.
@@ -1,9 +1,9 @@
1
+ export function compile_program_(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
2
+ export function compile_contract_(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
1
3
  export function init_log_level(level: string): void;
2
4
  export function build_info(): any;
3
5
  export function compile_program(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
4
6
  export function compile_contract(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
5
- export function compile_program_(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
6
- export function compile_contract_(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
7
7
  export function __wbindgen_object_drop_ref(arg0: any): void;
8
8
  export function __wbg_constructor_d324422a76f57e97(arg0: any): number;
9
9
  export function __wbindgen_is_undefined(arg0: any): boolean;
@@ -1,43 +1,43 @@
1
1
  /**
2
- * @param {string} level
3
- */
4
- export function init_log_level(level: string): void;
5
- /**
6
- * @returns {any}
7
- */
8
- export function build_info(): any;
9
- /**
2
+ * This is a method that exposes the same API as `compile`
3
+ * But uses the Context based APi internally
10
4
  * @param {string} entry_point
11
5
  * @param {DependencyGraph | undefined} dependency_graph
12
6
  * @param {PathToFileSourceMap} file_source_map
13
7
  * @returns {ProgramCompileResult}
14
8
  */
15
- export function compile_program(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
9
+ export function compile_program_(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
16
10
  /**
11
+ * This is a method that exposes the same API as `compile`
12
+ * But uses the Context based APi internally
17
13
  * @param {string} entry_point
18
14
  * @param {DependencyGraph | undefined} dependency_graph
19
15
  * @param {PathToFileSourceMap} file_source_map
20
16
  * @returns {ContractCompileResult}
21
17
  */
22
- export function compile_contract(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
18
+ export function compile_contract_(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
19
+ /**
20
+ * @param {string} level
21
+ */
22
+ export function init_log_level(level: string): void;
23
+ /**
24
+ * @returns {any}
25
+ */
26
+ export function build_info(): any;
23
27
  /**
24
- * This is a method that exposes the same API as `compile`
25
- * But uses the Context based APi internally
26
28
  * @param {string} entry_point
27
29
  * @param {DependencyGraph | undefined} dependency_graph
28
30
  * @param {PathToFileSourceMap} file_source_map
29
31
  * @returns {ProgramCompileResult}
30
32
  */
31
- export function compile_program_(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
33
+ export function compile_program(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
32
34
  /**
33
- * This is a method that exposes the same API as `compile`
34
- * But uses the Context based APi internally
35
35
  * @param {string} entry_point
36
36
  * @param {DependencyGraph | undefined} dependency_graph
37
37
  * @param {PathToFileSourceMap} file_source_map
38
38
  * @returns {ContractCompileResult}
39
39
  */
40
- export function compile_contract_(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
40
+ export function compile_contract(entry_point: string, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
41
41
  /**
42
42
  * This is a wrapper class that is wasm-bindgen compatible
43
43
  * We do not use js_name and rename it like CrateId because
@@ -132,6 +132,15 @@ export interface DebugInfo {
132
132
  */
133
133
  locations: Record<OpcodeLocation, SourceCodeLocation[]>;
134
134
  }
135
+ /**
136
+ * The debug information for a given program.
137
+ */
138
+ export interface ProgramDebugInfo {
139
+ /**
140
+ * An array that maps to each function of a program.
141
+ */
142
+ debug_infos: Array<DebugInfo>;
143
+ }
135
144
  /**
136
145
  * Maps a file ID to its metadata for debugging purposes.
137
146
  */