百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

msgpack-rust

> 编程语言
开源

Rust 的 MessagePack 实现 / msgpack.org[Rust]

1.4K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Rust 的 MessagePack 实现 / msgpack.org[Rust]

RMP - Rust MessagePack

RMP is a complete pure-Rust MessagePack implementation. MessagePack a compact self-describing binary serialization format.

This project consists of three crates:

  • RMP-Serde (Documentation) — easy serializing/deserializing via Serde.
  • RMP-Value (Documentation) — a universal Value enum that can hold any MessagePack type. Allows deserializing arbitrary messages without a known schema.
  • RMP (Documentation) — low-level functions for reading/writing encoded data.

Features

  • Convenient and powerful APIs

    RMP is designed to be lightweight and straightforward. There is a high-level API with support for Serde, which provides you convenient interface for encode/decode Rust's data structures using derive attribute. There are also low-level APIs, which give you full control over data encoding/decoding process, with no-std support and without heap allocations.

  • Zero-copy value decoding

    RMP allows to decode bytes from a buffer in a zero-copy manner. Parsing is implemented in safe Rust.

  • Robust, stable and tested

    This project is developed using TDD and CI, so any found bugs will be fixed without breaking existing functionality.

Why MessagePack?

It's smaller and much simpler to parse than JSON. The encoded data is self-describing and extensible, without using any schema definitions. It supports the same data types as JSON, plus binary data, non-string map keys, all float values, and 64-bit numbers. Msgpack values use <lenght><data> encoding, so they can be safely concatenated and read from a stream.

MessagePack is similar to CBOR, but has simpler data types (no bignums, decimal floats, dates, or indefinite-length sets, etc.)

Requirements

  • An up-to-date stable version of Rust, preferably from rustup.

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •[RMP-Serde][crates-rmps-url] ([Documentation][rmps-docs-url]) — easy serializing/deserializing via Serde.
  • •[RMP][crates-rmp-url] ([Documentation][rmp-docs-url]) — low-level functions for reading/writing encoded data.
  • •Convenient and powerful APIs
  • •Zero-copy value decoding
  • •Robust, stable and tested
  • •An up-to-date stable version of Rust, preferably from rustup.

> 标签

Rustcrates-rmpdecodingmessagepackmsgpack

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言