#protobuf #serialization

prost-amino

An implementation of the Amino serialization for Tendermint/Cosmos in the Rust Language. See https://github.com/tendermint/go-amino for details.

3 releases (breaking)

Uses old Rust 2015

0.6.0 Jun 23, 2020
0.5.0 Jan 19, 2020
0.4.1 Jan 19, 2020
0.4.0 Oct 17, 2018

#410 in Encoding

Download history 227/week @ 2021-06-02 541/week @ 2021-06-09 584/week @ 2021-06-16 767/week @ 2021-06-23 363/week @ 2021-06-30 312/week @ 2021-07-07 631/week @ 2021-07-14 616/week @ 2021-07-21 430/week @ 2021-07-28 167/week @ 2021-08-04 144/week @ 2021-08-11 213/week @ 2021-08-18 585/week @ 2021-08-25 261/week @ 2021-09-01 182/week @ 2021-09-08 242/week @ 2021-09-15

1,589 downloads per month
Used in 6 crates (3 directly)

Apache-2.0

65KB
1.5K SLoC

Rust Amino

This is a work in progress implementation of the Amino serialization for Tendermint/Cosmos in the Rust Language. For details on amino, see: https://github.com/tendermint/go-amino.

It is based on the Protocol Buffers implementation prost! by @danburkert.

Like prost! for protobuf, it uses Rust's type-directed metaprogramming to add support for amino's registered types.

Registered types can be annotated via #[aminoName="registered/name/goes/here"] to derive encoding and decoding. As amino allows to register type aliases of primitive types (e.g. bytes via ed25519.Pubkey), you can also annotate fields.

You can find a complete example which uses both, a registered type (or message) and a registered scalar type (bytes or Vec<u8>) in the kms repository.

Dependencies

~280KB