COOLJAPAN
← All posts

OxiCode 0.2.1 Released — Modern Pure Rust Binary Serialization, Successor to bincode

100% binary-compatible drop-in replacement for bincode with zero-copy decoding, SIMD-accelerated arrays (2–4× faster), built-in LZ4/Zstd compression (powered by OxiARC), CRC32 checksums, async streaming, schema evolution, and no_std support. 513k LOC of pure Rust, 19,927 passing tests. The sovereign serialization layer for SciRS2 and the entire COOLJAPAN ecosystem.

release oxicode bincode serialization serde zero-copy simd compression pure-rust scirs2 data-exchange

The data serialization foundation of the COOLJAPAN scientific computing ecosystem just leveled up.

Yesterday we released OxiCode 0.2.1 — a complete, production-grade modern binary serialization library written entirely in Rust. It is the spiritual and binary successor to bincode.

No C dependencies. No unsafe code in hot paths. No Python pickle or Java serialization overhead.
Just clean, memory-safe, blazing-fast encode/decode that compiles to a single static binary (or WASM) and runs everywhere.

Why OxiCode 0.2.1 is a game changer

For years, binary serialization in Rust meant either the aging bincode crate or heavy external solutions (Protocol Buffers, MessagePack, JSON, or language-specific formats).

These tools are powerful but suffer from:

OxiCode 0.2.1 ends all of that.

It delivers 100% binary compatibility with bincode 2.0 (via config::legacy()) while adding modern Rust superpowers.
Notable results:

Technical Deep Dive: How We Built the Modern Successor to bincode in Pure Rust

The architecture is clean, layered, and radically optimized:

  1. Core Layer (oxicode)
    Varint/fixed-width encoding, Encode/Decode/BorrowDecode traits, encoded_size API, CRC32 checksums, versioning & migration.

  2. SIMD Acceleration
    Hardware auto-detection (SSE2 → AVX2 → AVX-512) for massive array/struct packing — 2–4× speedup on supported CPUs.

  3. Compression & Integrity (new in 0.2.1)
    Full integration with OxiARC: pure-Rust LZ4 (speed) + Zstd (ratio), plus built-in decompression bomb protection.

  4. Async & Streaming
    Tokio-compatible non-blocking I/O, decode_iter_from_slice for streaming multi-item buffers.

  5. Derive & Validation (oxicode_derive)
    9 field + container attributes, constraint-based middleware, optional serde support.

Key Rust advantages:

What’s inside 0.2.1 (released March 16)

This is the foundation

OxiCode is now the official serialization backend for the entire COOLJAPAN scientific and data stack:

Repository: https://github.com/cool-japan/oxicode

Star the repo if you want fast, safe, and future-proof binary serialization without the old bincode limitations.

The era of “just use bincode and hope” or “add another C dependency” is over.

Pure Rust modern serialization is here — fast, compatible, and sovereign.

KitaSan at COOLJAPAN OÜ March 16, 2026

↑ Back to all posts