polycomp 0.0.0-stage → 0.3.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.
package/Cargo.toml ADDED
@@ -0,0 +1,25 @@
1
+ [package]
2
+ name = "polycomp"
3
+ version = "0.2.0"
4
+ edition = "2024"
5
+ autoexamples = false
6
+ description = "PolyComp: Universal polyglot meta-runtime, lazy importer, and Cranelift JIT engine"
7
+
8
+ [dependencies]
9
+ argon2 = "0.5"
10
+ blake3 = "1.8"
11
+ chacha20poly1305 = "0.10"
12
+ clap = { version = "4.6", features = ["derive"] }
13
+ cranelift-codegen = "0.137"
14
+ cranelift-frontend = "0.137"
15
+ cranelift-jit = "0.137"
16
+ cranelift-module = "0.137"
17
+ cranelift-native = "0.137"
18
+ ed25519-dalek = "2.2"
19
+ getrandom = "0.2"
20
+ regex = "1"
21
+ rustc-hash = "2.1"
22
+
23
+ [profile.release]
24
+ opt-level = 3
25
+ lto = "thin"
Binary file
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ const { spawnSync } = require("child_process");
5
+ const path = require("path");
6
+ const { findNativeBinary } = require("../js/index.cjs");
7
+
8
+ const args = process.argv.slice(2);
9
+ const nativeBin = findNativeBinary();
10
+
11
+ if (!nativeBin) {
12
+ console.error(
13
+ `Native PolyComp VM binary not found.\n` +
14
+ `Build it once from "${path.resolve(__dirname, "..")}" with:\n` +
15
+ ` cargo build --release`
16
+ );
17
+ process.exit(1);
18
+ }
19
+
20
+ const res = spawnSync(nativeBin, args, { stdio: "inherit" });
21
+ if (res.error) {
22
+ console.error(`[polycomp] failed to launch native VM: ${res.error.message}`);
23
+ process.exit(1);
24
+ }
25
+ process.exit(res.status ?? 0);