@vercel/rust 23.0.0 → 23.0.2

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
@@ -1296,7 +1296,7 @@ function resolveStandaloneMode(workPath, entrypoint, rustEnv, filterPlatform) {
1296
1296
  return result;
1297
1297
  }
1298
1298
  async function buildStandaloneServer(options, { rustEnv, crossCompilation, verbose }) {
1299
- const { entrypoint, workPath, config, service } = options;
1299
+ const { entrypoint, workPath, config, service, diagnosticsValues } = options;
1300
1300
  (0, import_build_utils9.debug)(`Building standalone Rust server: ${entrypoint}`);
1301
1301
  const lambdaOptions = await (0, import_build_utils9.getLambdaOptionsFromFunction)({
1302
1302
  sourceFile: entrypoint,
@@ -1348,7 +1348,7 @@ async function buildStandaloneServer(options, { rustEnv, crossCompilation, verbo
1348
1348
  await generateProjectManifest({
1349
1349
  workPath,
1350
1350
  cargoMetadata,
1351
- framework: config?.framework ?? void 0,
1351
+ framework: diagnosticsValues?.framework,
1352
1352
  serviceType: service ? (0, import_build_utils9.getReportedServiceType)(service) : void 0
1353
1353
  });
1354
1354
  if (!ownsRouteTable(service)) {
@@ -1545,7 +1545,15 @@ var detectEntrypoint = async ({ workPath }) => {
1545
1545
  async function buildHandler(options) {
1546
1546
  const BUILDER_DEBUG = Boolean(process.env.VERCEL_BUILDER_DEBUG ?? false);
1547
1547
  const isVercelBuild = Boolean(process.env.VERCEL_BUILD_IMAGE ?? false);
1548
- const { files, entrypoint, workPath, config, meta, service } = options;
1548
+ const {
1549
+ files,
1550
+ entrypoint,
1551
+ workPath,
1552
+ config,
1553
+ meta,
1554
+ service,
1555
+ diagnosticsValues
1556
+ } = options;
1549
1557
  const crossCompilationEnabled = !isVercelBuild && !meta?.isDev;
1550
1558
  if (crossCompilationEnabled && process.platform === "win32") {
1551
1559
  throw new Error(
@@ -1644,7 +1652,7 @@ async function buildHandler(options) {
1644
1652
  await generateProjectManifest({
1645
1653
  workPath,
1646
1654
  cargoMetadata,
1647
- framework: config?.framework ?? void 0,
1655
+ framework: diagnosticsValues?.framework,
1648
1656
  serviceType: service ? (0, import_build_utils11.getReportedServiceType)(service) : void 0,
1649
1657
  runtimeVersion: resolvedRustVersion ? {
1650
1658
  ...requestedRustVersion ? { requested: requestedRustVersion } : {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/rust",
3
- "version": "23.0.0",
3
+ "version": "23.0.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/rust",
@@ -19,7 +19,7 @@
19
19
  "get-port": "5.1.1"
20
20
  },
21
21
  "peerDependencies": {
22
- "@vercel/build-utils": "15.0.0"
22
+ "@vercel/build-utils": "15.0.2"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/ms": "^0.7.31",
@@ -31,8 +31,8 @@
31
31
  "prettier": "^2.8.4",
32
32
  "rimraf": "^4.1.1",
33
33
  "vitest": "4.1.10",
34
- "@vercel/build-utils": "15.0.0",
35
34
  "@vercel/routing-utils": "6.6.0",
35
+ "@vercel/build-utils": "15.0.2",
36
36
  "@vercel-internals/ipc-proxy": "1.0.1"
37
37
  },
38
38
  "scripts": {