Skip to content

Commit 7158ac9

Browse files
build(Build): optimize release build configuration and resolve dependency version conflict
- Added `.cargo/config.toml` to centralize Rust build settings for Mountain backend: - Sets `target-dir` to "Target" for unified build artifact location - Configures release profile with LTO, panic=abort, and symbol stripping to minimize binary size and improve runtime performance - critical for Land's Electron migration performance goals - Resolved merge conflict in `package.json` by standardizing on @cloudflare/workers-types@4.20250528.0 - Ensures consistent dependency versioning for Rest bundler and Cocoon extension host shim environment These changes strengthen Land's build reproducibility while aligning with core objectives of reduced disk footprint and reliable cross-component dependency management.
1 parent 1299874 commit 7158ac9

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.cargo/config.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[build]
2+
target-dir = "Target"
3+
4+
[cargo-new]
5+
vcs = "git"
6+
7+
[profile.release]
8+
opt-level = 3
9+
codegen-units = 1
10+
debug = false
11+
lto = true
12+
panic = "abort"
13+
strip = true

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@
2929
},
3030
"devDependencies": {
3131
"@playform/build": "0.2.4",
32-
<<<<<<< HEAD
33-
"@cloudflare/workers-types": "4.20250525.0",
34-
=======
3532
"@cloudflare/workers-types": "4.20250528.0",
36-
>>>>>>> 2279deab7e1dc7a4bad279ccc4f9f918b07dce10
3733
"@types/dotenv": "8.2.3",
3834
"miniflare": "4.20250523.0",
3935
"wrangler": "4.17.0"

0 commit comments

Comments
 (0)