3Hren/msgpack-rust
MessagePack implementation for Rust / msgpack.org[Rust]
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tuần
#1 Repository của tuần
#1 Repository của tuần
🦀 RMP — Bộ triển khai MessagePack thuần Rust
Nhỏ hơn JSON, không cần schema, decoding zero-copy — RMP là lựa chọn serialize nhẹ nhàng cho Rust.
RMP là bộ triển khai MessagePack hoàn chỉnh bằng Rust thuần. Dự án đóng gói thành 3 crate: rmp-serde để serialize/deserialize dễ dàng qua Serde, rmp-value cho Value enum universal có thể chứa mọi kiểu MessagePack mà không cần schema cố định, và rmp cho các hàm low-level đọc/ghi dữ liệu nhị phân.
✨ Điểm nổi bật
- 3 crate theo layer: rmp-serde cho high-level, rmp-value cho arbitrary data, rmp cho low-level control — chọn đúng mức trừu tượng cần thiết
- Zero-copy decoding: parse bytes từ buffer mà không copy, toàn bộ an toàn trong safe Rust
- Hỗ trợ no-std: không phụ thuộc heap allocation, phù hợp embedded và môi trường hạn chế tài nguyên
- API Serde tích hợp: dùng
deriveattribute để encode/decode struct Rust một cách tự nhiên - Nhỏ hơn JSON: dữ liệu serialized gọn hơn, parse nhanh hơn, không cần schema định nghĩa trước
- Self-describing & extensible: mỗi giá trị mang theo
<length><data>, an toàn khi nối luồng và đọc từ stream - Robust & CI-tested: phát triển theo TDD, mọi bug fix không làm hỏng chức năng hiện có
💡 Vì sao đáng chú ý
MessagePack là format nhị phân tự mô tả, tương tự JSON nhưng gọn hơn và parse nhanh hơn. Hỗ trợ đầy đủ kiểu dữ liệu JSON cộng thêm binary data, map khóa không-string, float đầy đủ và số 64-bit. So với CBOR, MessagePack giữ simpler data types (không bignums, decimal floats, dates), giúp triển khai nhẹ hơn.
RMP nổi bật ở việc vừa có high-level API thuận tiện qua Serde, vừa có low-level API cho quyền kiểm soát tuyệt đối — mà vẫn safe Rust, zero-copy, và chạy được trên no-std. Đây là bộ công cụ serialize toàn diện cho Rust, từ ứng dụng thông thường đến hệ thống nhúng.
#Rust #MessagePack #Serialization #Serde #NoStd #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). / msgpack.org[C#]
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io
A lightweight library for converting complex objects to and from simple Python datatypes.
Yet another serialization library on top of dataclasses, inspired by serde-rs.
MPack - A C encoder/decoder for the MessagePack serialization format / msgpack.org[C]
Convert between CBOR, JSON, MessagePack, TOML, and YAML 1.1 & 1.2