@vercel/rust 1.0.3 → 1.0.5
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/dist/index.js +5 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -321,6 +321,11 @@ async function buildHandler(options) {
|
|
|
321
321
|
const isVercelBuild = Boolean(process.env.VERCEL_BUILD_IMAGE ?? false);
|
|
322
322
|
const { files, entrypoint, workPath, config, meta } = options;
|
|
323
323
|
const crossCompilationEnabled = !isVercelBuild && !meta?.isDev;
|
|
324
|
+
if (crossCompilationEnabled && process.platform === "win32") {
|
|
325
|
+
throw new Error(
|
|
326
|
+
"Production prebuilt deployments for @vercel/rust are not yet supported on Windows. Please use a Linux or macOS environment, or deploy directly on Vercel."
|
|
327
|
+
);
|
|
328
|
+
}
|
|
324
329
|
await installRustToolchain();
|
|
325
330
|
(0, import_build_utils6.debug)("Creating file system");
|
|
326
331
|
const downloadedFiles = await (0, import_build_utils6.download)(files, workPath, meta);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/rust",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/rust",
|
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/jest": "^29.4.0",
|
|
21
21
|
"@types/ms": "^0.7.31",
|
|
22
|
-
"@types/node": "
|
|
23
|
-
"@vercel/build-utils": "13.2.0",
|
|
24
|
-
"@vercel/routing-utils": "5.3.0",
|
|
22
|
+
"@types/node": "20.11.0",
|
|
25
23
|
"@vercel/style-guide": "^4.0.2",
|
|
26
24
|
"eslint": "^8.35.0",
|
|
27
25
|
"husky": "^8.0.3",
|
|
@@ -30,7 +28,9 @@
|
|
|
30
28
|
"prettier": "^2.8.4",
|
|
31
29
|
"rimraf": "^4.1.1",
|
|
32
30
|
"ts-jest": "^29.0.5",
|
|
33
|
-
"typescript": "^4.9.4"
|
|
31
|
+
"typescript": "^4.9.4",
|
|
32
|
+
"@vercel/build-utils": "13.2.15",
|
|
33
|
+
"@vercel/routing-utils": "5.3.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "node ../../utils/build-builder.mjs",
|