Skip to content

sync: header and binding mirrors for 0.2.2 - #48

Merged
prabod merged 1 commit into
mainfrom
sync/headers-bindings-0.2.2
Aug 12, 2026
Merged

sync: header and binding mirrors for 0.2.2#48
prabod merged 1 commit into
mainfrom
sync/headers-bindings-0.2.2

Conversation

@prabod

@prabod prabod commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

The half of the 0.2.2 sync that had to follow the engine release.

embed_norm_eps widens BaseRTModelConfig from 1540 to 1704 bytes. The rust-sys ABI job links the latest engine release from this repo and compares it against the in-tree mirror, so syncing these while v0.2.1 was newest failed by construction (1540 from the binary vs 1704 from source). v0.2.2 is now released here, so they agree.

Verified locally the way that job does it — downloaded basert-engine-macos-arm64-0.2.2.tar.gz from this repo's release, set BASERT_LIB_DIR, ran the sys crate: 15 passed, including model_config_size_matches_library.

Six files, one ABI struct across C, Swift, Rust, Python and Node. The model config is returned by value, so a mirror even four bytes short lets the engine write past the caller's allocation.

Completes the 0.2.2 open-core sync; the converter and catalog landed in #47.

The half of the 0.2.2 sync that had to wait for the engine release.

`embed_norm_eps` widens BaseRTModelConfig from 1540 to 1704 bytes. The rust-sys
ABI job links the latest engine RELEASE from this repo and compares it against
the in-tree mirror, so syncing these before v0.2.2 was published failed by
construction — 1540 from the binary against 1704 from source. v0.2.2 is now
released here, so the two agree.

Verified the way that job does it: downloaded
basert-engine-macos-arm64-0.2.2.tar.gz from this repo's release, pointed
BASERT_LIB_DIR at it, and ran the sys crate — 15 passed, including
model_config_size_matches_library, the assertion that previously failed.

The mirrors are one ABI struct across C, Swift, Rust, Python and Node; the
model config is returned BY VALUE, so a mirror even four bytes short lets the
engine write past the caller's allocation.
@prabod
prabod merged commit aae4c1f into main Aug 12, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant