Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Contributor
|
Found 18 test failures on Blacksmith runners: Failures
...and 8 more test failures. View all on Blacksmith
|
This was referenced Dec 4, 2026
feat(cranelift): vendor cranelift-codegen 0.138 with AArch64 LSE2 + x86_64 AVX 128-bit atomics
#5849
Open
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-v2-3x.png)
Stack (on top of
kai/mir-stack-rebased)claude/bcu-meta-rebased): baml_bcu crate +.bmetaclaude/bcu-module-rebased):BcuModule(.bcu) + parallelbaml_mir_linker+ Salsa-free emitfeat/panic-interface)://baml:in_class_onlyandbaml.errors.Panicmarker interfacefeat/cleanup-interface):baml.Cleanupinterface (BEP-093)feat/stdlib-pure-baml): Migrate pure stdlib builtins &Arraycallbacks to pure BAMLavery/rust-items): Rust items frontend (rust function,rust class,builtin function)feat/rust-crate-syntax):rust "<crate>"syntax + disjointRustFnMeta/RustClassMetainBcuModulefeat/native-codegen):baml_rust_workspaceBEP-092 codegen + stubbaml_native_rt+baml_bcu::mangle(this PR)claude/cranelift-vendor-rebased): Vendorcranelift-codegen0.138 + LSE2/AVX 128-bit atomicsclaude/cranelift-bex2-rebased): Cranelift AOT backend +bex2M:N runtime + real BEP-092 C ABI +baml pack --nativeSummary
Stacked on #5868 (
feat/rust-crate-syntax). Implements the BEP-092 v4 Rust native workspace generator (baml_rust_workspace), collision-free shared symbol mangling (baml_bcu::mangle), and zero-dependency stub runtime types (baml_native_rt). Library + tests only (no CLI changes, no VM changes, all scaffolded crate methods panic withtodo!()).Changes
baml_bcu::mangle: injective, length-prefixed C/linker symbol mangling (mangle_rust_free_fn→__baml_rust_F_...,mangle_rust_method→__baml_rust_M_..., reserving_I_for futureImplMethod), with invertible demangler round-trip tests.baml_native_rt: zero-dependency, zero-unsafestub crate defining BEP-092 public API types (RawVal,BamlCtx,Scope,AsyncScope,Root,Ref,Type,Thrown,BigInt, marker ZSTs) with compile-timeSend/Syncproofs and#[doc(hidden)] pub mod __gluetodo!()stubs.baml_rust_workspace: Salsa-free generator consuming(&BcuModule, &[&BcuMeta], &CodegenOptions)directly (no extra IR layer, zero.bmeta/ VM edits):RustWorkspacePlan: resolves all 4 owners (root free fn, nested namespace free fn, plain class static/selfmethods,rust classstatic/selfmethods), all 4async × gcmodes, all 4throwsshapes (plainthrows neverreturnsRdirectly;<FnName>Errorwith<FnName>Throwsfallback when colliding with a BAML class likebaml.json.DecodeError), visibleis_panicclasses, cross-package dep.bmetas, andexternal_crates.baml_native/Cargo workspace:Cargo.toml(members = ["crates/*", "generated/*"], written only if absent)generated/common_bindings/(baml_common_bindings_<pkg>): shared types, enums,C::Instance,C::Owned,Panic<'s>,OwnedPanic,OwnedThrow,GcThrow, and imported dep typesgenerated/bindings_<crate>/(baml_bindings_<pkg>_<crate>): Option-1 merged re-exports + per-crateRusttraits and error enumsgenerated/glue_<crate>/(baml_glue_<pkg>_<crate>,rlib):#[unsafe(no_mangle)] pub extern "C"shims invoking the generated traitscrates/<crate>/(baml_native_<pkg>_<crate>): non-destructive scaffolds withtodo!()bodiessync_workspace_to_disk: idempotent writer skipping unchanged files and pruning stalegenerated/crates without clobbering author edits.crates/baml_rust_workspace/tests/codegen_e2e.rs+ 5 insta snapshots: full multi-crate matrix, split namespace/class across crates, Rust keywords, cross-package.bmetas, idempotent sync/pruning, strict//rust:gcenforcement,external_crates, and realcargo check --offline --workspace.crates/baml_tests/tests/native_codegen_e2e.rs: end-to-end.baml → ProjectDatabase → BcuModule → baml_rust_workspace → cargo check --offline --workspaceon both a multi-crate.bamlpackage and the entire realbamlstdlib (~458rust functions).Verification
cargo fmt --check,mise run stow,mise run clippy(0 warnings)baml_bcu(11/11),baml_native_rt(1/1),baml_rust_workspace(4/4),baml_tests --test native_codegen_e2e(2/2) all passing.