@onda-lang/wasm-compiler 0.5.0-rc.0 → 0.5.0

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.
@@ -0,0 +1,18 @@
1
+ export {
2
+ OndaArtifactError,
3
+ PROCESSOR_ABI_VERSION,
4
+ PROCESSOR_ARTIFACT_FORMAT,
5
+ PROCESSOR_ARTIFACT_FORMAT_VERSION,
6
+ PROCESSOR_SNAPSHOT_FORMAT_VERSION,
7
+ createProcessorArtifactFiles,
8
+ loadProcessorArtifactFiles,
9
+ parseProcessorMetadata,
10
+ serializeProcessorMetadata,
11
+ validateProcessorArtifact,
12
+ validateProcessorMetadata,
13
+ validateProcessorModule,
14
+ } from "@onda-lang/processor-abi";
15
+ export type {
16
+ OndaProcessorArtifact,
17
+ OndaProcessorMetadata,
18
+ } from "@onda-lang/processor-abi";
@@ -0,0 +1 @@
1
+ export * from "@onda-lang/processor-abi";
@@ -0,0 +1,2 @@
1
+ // Synchronized from format-versions.json; do not edit this copy directly.
2
+ export const SUPPORTED_MIR_SCHEMA_VERSION = 1;
@@ -0,0 +1,6 @@
1
+ export class OndaBinaryenError extends Error {
2
+ constructor(message) {
3
+ super(message);
4
+ this.name = "OndaBinaryenError";
5
+ }
6
+ }
@@ -0,0 +1,37 @@
1
+ export const SUPPORTED_MIR_SCHEMA_VERSION: number;
2
+ export {
3
+ OndaArtifactError,
4
+ PROCESSOR_ABI_VERSION,
5
+ PROCESSOR_ARTIFACT_FORMAT,
6
+ PROCESSOR_ARTIFACT_FORMAT_VERSION,
7
+ PROCESSOR_SNAPSHOT_FORMAT_VERSION,
8
+ createProcessorArtifactFiles,
9
+ loadProcessorArtifactFiles,
10
+ parseProcessorMetadata,
11
+ serializeProcessorMetadata,
12
+ validateProcessorArtifact,
13
+ validateProcessorMetadata,
14
+ validateProcessorModule,
15
+ } from "@onda-lang/processor-abi";
16
+ export type {
17
+ OndaProcessorArtifact,
18
+ OndaProcessorMetadata,
19
+ } from "@onda-lang/processor-abi";
20
+ import type { OndaProcessorArtifact } from "@onda-lang/processor-abi";
21
+
22
+ export interface OndaBinaryenOptions {
23
+ optimize?: boolean;
24
+ optimizeLevel?: 0 | 1 | 2 | 3 | 4;
25
+ shrinkLevel?: 0 | 1 | 2;
26
+ fastMath?: boolean;
27
+ simd?: boolean;
28
+ allowInliningFunctionsWithLoops?: boolean;
29
+ emitText?: boolean;
30
+ }
31
+
32
+ export class OndaBinaryenError extends Error {}
33
+ export function compileTrustedMir(
34
+ mir: string | ArrayBuffer | ArrayBufferView | object,
35
+ options?: OndaBinaryenOptions,
36
+ ): OndaProcessorArtifact;
37
+ export function createDefaultImports(): Record<string, never>;