next.js
2b2c8f2f - Fix Rust build regression in bootstrap metadata embedding (#101888)

Commit
22 hours ago
Fix Rust build regression in bootstrap metadata embedding (#101888) ### What? Restore Rust compilation of the Turbopack runtime and native Next.js bindings. ### Why? The bootstrap metadata call added in #97574 still uses the `generate_source_map` argument removed by #99962, causing Rust errors E0425 and E0061. ### How? Remove the obsolete argument and propagate the fallible `CodeBuilder::push_code` result, matching adjacent calls. ### Verification - `cargo check --locked -p turbopack-ecmascript-runtime` fails before the fix and passes after it. - `cargo clippy --locked -p turbopack-ecmascript-runtime --all-targets -- -D warnings -A deprecated` passes. - `cargo check --locked -p next-napi-bindings -j 2` and `cargo build --locked -p next-napi-bindings -j 2` pass. - The built host native library loads successfully in Node.js via `process.dlopen`. - Not run: JS/e2e tests (JS dependencies/build artifacts unavailable) or release/cross-platform builds. <!-- NEXT_JS_LLM --> <!-- fleet 4208309d-2590-42c4-b9a1-f4578ad31ce6 --> Co-authored-by: vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com> Co-authored-by: Will Binns-Smith <755844+wbinnssmith@users.noreply.github.com>
Author
Parents
Loading