本项目将从零开始在 MoonBit 中实现一个符合 RFC 8949 标准的高性能 CBOR (Concise Binary Object Representation) 序列化与反序列化库。 CBOR 是一种二进制数据序列化格式,旨在保持较小消息体积的同时,具备极低的代码复杂度与高扩展性(无需进行版本协商)。它在 WebAssembly (Wasm) 生态、物联网、边缘计算以及网络协议(如 C
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
MoonBit CBOR (RFC 8949)
A CBOR (Concise Binary Object Representation, RFC 8949) serialization and deserialization library written in pure MoonBit.
This project was built for the CCF x MoonBit Open Source Competition (2026).
Core Features
CborDecodeconversions forCborValue,Bool,Int64,UInt64,String,Bytes, andDoubleviadecode_as.Installation
Add the package with the current MoonBit workflow:
Or add it manually to
moon.pkg:Usage Example
CLI Example
The repository includes a runnable CLI in
cmd/main:Performance Notes
Validation
Local acceptance loop:
Windows PowerShell helper:
Repository self-check report:
Competition Notes
moon info,moon check --target all, andmoon test --target allon Linux, macOS, and Windows.docs/source-attribution.mdanddocs/acceptance-checklist.md.License
This project is licensed under Apache-2.0. See LICENSE for details.