@vercel/rust 26.0.1-snapshot-e70db18f5218 → 26.0.2-snapshot-ff25f3f66933

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.
Binary file
Binary file
package/dist/index.js CHANGED
@@ -338,7 +338,8 @@ var require_dist = __commonJS({
338
338
  __export2(src_exports2, {
339
339
  createStandaloneLambda: () => createStandaloneLambda2,
340
340
  getBootstrapDir: () => getBootstrapDir,
341
- getProxyBinaryPath: () => getProxyBinaryPath
341
+ getProxyBinaryPath: () => getProxyBinaryPath,
342
+ getStandaloneExecutableFiles: () => getStandaloneExecutableFiles
342
343
  });
343
344
  module2.exports = __toCommonJS2(src_exports2);
344
345
  var import_node_path8 = require("path");
@@ -361,6 +362,15 @@ var require_dist = __commonJS({
361
362
  function getBootstrapDir() {
362
363
  return (0, import_node_path8.join)(__dirname, "..", "bootstrap");
363
364
  }
365
+ function getStandaloneExecutableFiles(options) {
366
+ return {
367
+ executable: {
368
+ fsPath: getProxyBinaryPath(options.architecture),
369
+ mode: 493
370
+ },
371
+ "user-server": { fsPath: options.userServerPath, mode: 493 }
372
+ };
373
+ }
364
374
  async function createStandaloneLambda2(options) {
365
375
  const {
366
376
  userServerPath,
@@ -370,17 +380,26 @@ var require_dist = __commonJS({
370
380
  runtimeLanguage,
371
381
  supportsResponseStreaming = true
372
382
  } = options;
373
- const proxyPath = getProxyBinaryPath(architecture);
383
+ const executableFiles = getStandaloneExecutableFiles({
384
+ userServerPath,
385
+ architecture
386
+ });
374
387
  const [proxyData, userServerData] = await Promise.all([
375
- (0, import_promises2.readFile)(proxyPath),
376
- (0, import_promises2.readFile)(userServerPath)
388
+ (0, import_promises2.readFile)(executableFiles.executable.fsPath),
389
+ (0, import_promises2.readFile)(executableFiles["user-server"].fsPath)
377
390
  ]);
378
391
  return new import_build_utils12.Lambda({
379
392
  ...lambdaOptions,
380
393
  files: {
381
394
  ...includedFiles,
382
- executable: new import_build_utils12.FileBlob({ mode: 493, data: proxyData }),
383
- "user-server": new import_build_utils12.FileBlob({ mode: 493, data: userServerData })
395
+ executable: new import_build_utils12.FileBlob({
396
+ mode: executableFiles.executable.mode,
397
+ data: proxyData
398
+ }),
399
+ "user-server": new import_build_utils12.FileBlob({
400
+ mode: executableFiles["user-server"].mode,
401
+ data: userServerData
402
+ })
384
403
  },
385
404
  handler: "executable",
386
405
  runtime: "executable",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/rust",
3
- "version": "26.0.1-snapshot-e70db18f5218",
3
+ "version": "26.0.2-snapshot-ff25f3f66933",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/rust",
@@ -33,7 +33,7 @@
33
33
  "vitest": "4.1.10",
34
34
  "@vercel/build-utils": "15.3.0",
35
35
  "@vercel/routing-utils": "6.6.1",
36
- "@vercel-internals/ipc-proxy": "1.1.3"
36
+ "@vercel-internals/ipc-proxy": "1.1.4"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "node build.mjs",