#dharithri #blockchain #smart-contracts #wasm #contract

nightly no-std dharithri-sc-codec

轻量级二进制序列化/反序列化器,专为 dharithri 智能合约编写

1 个不稳定版本

0.18.1 2023 年 9 月 14 日

3#dharithri 中排名

Download history · Rust 包仓库 23/week @ 2024-03-11 · Rust 包仓库 22/week @ 2024-03-18 · Rust 包仓库 33/week @ 2024-03-25 · Rust 包仓库 62/week @ 2024-04-01 · Rust 包仓库 14/week @ 2024-04-08 · Rust 包仓库 17/week @ 2024-04-15 · Rust 包仓库 19/week @ 2024-04-22 · Rust 包仓库 14/week @ 2024-04-29 · Rust 包仓库 26/week @ 2024-05-06 · Rust 包仓库 15/week @ 2024-05-13 · Rust 包仓库 20/week @ 2024-05-20 · Rust 包仓库 9/week @ 2024-05-27 · Rust 包仓库 19/week @ 2024-06-03 · Rust 包仓库 15/week @ 2024-06-10 · Rust 包仓库 9/week @ 2024-06-17 · Rust 包仓库 21/week @ 2024-06-24 · Rust 包仓库

每月下载量 64 次
8 个 crate 中使用(通过 dharithri-sc

GPL-3.0-only

120KB
3K SLoC

智能合约标准编解码器

crates.io

轻量级二进制序列化/反序列化器,专为 dharithri 智能合约编写。

设计用于

  • 生成最小的 WASM 字节码
  • 快速
  • 尽可能避免数据复制

主要受到 Parity SCALE 编解码器的启发,但格式和实现完全不同。

有关序列化格式的更多信息,请参阅 开发者参考

no-std

由于是为 dharithri 智能合约设计的,它需要在无 std 环境中运行。

它也可以在常规 std 环境中安全运行。

默认提供的类型都在不使用分配器的情况下工作。要使用分配器,请传递功能标志 "alloc"。

依赖关系

~61–390KB