@vercel/rust 23.0.1 → 24.0.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/bin/proxy-linux-amd64 +0 -0
- package/bin/proxy-linux-arm64 +0 -0
- package/dist/index.js +12 -4
- package/package.json +5 -5
package/bin/proxy-linux-amd64
CHANGED
|
Binary file
|
package/bin/proxy-linux-arm64
CHANGED
|
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:
|
|
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 {
|
|
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:
|
|
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": "
|
|
3
|
+
"version": "24.0.0",
|
|
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
|
|
22
|
+
"@vercel/build-utils": "15.1.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/ms": "^0.7.31",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"prettier": "^2.8.4",
|
|
32
32
|
"rimraf": "^4.1.1",
|
|
33
33
|
"vitest": "4.1.10",
|
|
34
|
-
"@vercel/
|
|
35
|
-
"@vercel-internals/ipc-proxy": "1.0
|
|
36
|
-
"@vercel/
|
|
34
|
+
"@vercel/routing-utils": "6.6.0",
|
|
35
|
+
"@vercel-internals/ipc-proxy": "1.1.0",
|
|
36
|
+
"@vercel/build-utils": "15.1.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "node build.mjs",
|