Repository navigation
Description
Follow-up to #3 (OSS security automation).
Problem
mlxcel-core depends on bincode 1.3.3 directly. The bincode 1.x team has permanently ceased development following a doxxing/harassment incident (see RUSTSEC-2025-0141 and the project announcement). There is no safe upgrade path — bincode 2.x is a different crate with a breaking API and a different maintainer story.
PR #3 worked around the advisory by adding an [advisories.ignore] entry in deny.toml with the justification that:
bincode 1.x permanently unmaintained; migration tracked in a follow-up issue; no runtime vulnerability
This is the follow-up issue. It tracks the actual migration to a maintained alternative.
Candidate alternatives
(Pick the one whose semantics best match mlxcel-core's current bincode usage — encode/decode of Serialize/Deserialize types, likely for cache snapshot / config / small fixed-shape records.)
| Crate | Pros | Cons |
|---|---|---|
postcard |
Actively maintained, no_std-friendly, compact wire format, serde-based | Different on-wire format from bincode (migration cost for any persisted artifacts) |
bitcode |
Actively maintained, very fast, supports both serde and derive | Newer, narrower ecosystem |
rkyv |
Zero-copy deserialization, very fast for hot read paths | Different programming model (not serde-based); bigger refactor |
bincode 2.x |
Same name, similar mental model | Different maintainer / project history; not a drop-in upgrade |
Tasks
- Audit
mlxcel-coreto find everybincode::serialize/deserialize(and related) call site - Determine whether any on-wire format is persisted across processes (file on disk, network) — if yes, a format migration is needed (write old + new, or version-tag the artifacts); if no, in-process swap is safe
- Pick the alternative (recommend
postcardif no zero-copy need;bitcodeif performance dominates;rkyvif there's a clear hot read path that benefits) - Migrate call sites
- Once
bincode1.x is no longer in the dependency tree, remove the[advisories.ignore]entry forRUSTSEC-2025-0141indeny.toml - Verify
cargo deny checkpasses cleanly without the ignore
Risks
- If
bincodeis used for any on-disk cache (e.g. tokenizer cache, KV-cache snapshot, model metadata), users with the old cache will break on upgrade. Strategy: detect old format on read and re-encode, or invalidate. - Performance characteristics differ between the alternatives — benchmark on the actual hot path before committing.
Refs
- Follows up on chore: complete OSS release rollout #1, chore: add OSS security automation and community health files #3
deny.toml[advisories.ignore]entry forRUSTSEC-2025-0141is to be removed once this migration lands- Upstream advisory: https://rustsec.org/advisories/RUSTSEC-2025-0141
Activity
chore: add OSS security automation and community health files (#3)
refactor(core): migrate lang_analyzer cache from bincode to postcard (#…
chore: add OSS security automation and community health files (lablup#3)
refactor(core): migrate lang_analyzer cache from bincode to postcard (l…
fix(server): join model workers before the process exits (#2742)