14 releases (stable)

1.7.6 Dec 6, 2021
1.7.5 Dec 5, 2021
1.7.4 Aug 31, 2021
1.5.2 Jul 4, 2021
0.8.0 Jun 30, 2022

#2044 in Magic Beans

Download history 315/week @ 2022-04-22 939/week @ 2022-04-29 534/week @ 2022-05-06 692/week @ 2022-05-13 1334/week @ 2022-05-20 540/week @ 2022-05-27 1996/week @ 2022-06-03 2544/week @ 2022-06-10 4779/week @ 2022-06-17 1759/week @ 2022-06-24 2154/week @ 2022-07-01 2215/week @ 2022-07-08 1174/week @ 2022-07-15 1310/week @ 2022-07-22 1459/week @ 2022-07-29 1003/week @ 2022-08-05

5,282 downloads per month
Used in 44 crates (3 directly)

Apache-2.0

52KB
1K SLoC

Strict encoding derivation macros

Build Tests Lints codecov

crates.io Docs unsafe forbidden Apache-2 licensed

Derivation macros for strict encoding. To learn more about the strict encoding please check strict_encoding crate.

The development of the library is supported by LNP/BP Standards Association.

Documentation

Detailed developer & API documentation for the library can be accessed at https://docs.rs/strict_encoding_derive/

Usage

To use the library, you need to reference a latest version of the strict_encoding crate in[dependencies] section of your project Cargo.toml. This crate includes derivation macros from the present library by default.

strict_encoding = "1.3"

If you are using other client-side-validation libraries, consider importing just a single client_side_validation library which re-exports all of them, including the current one.

Library exports derivation macros #[derive(StrictEncode, StrictDecode)], which can be added on top of any structure you'd like to support string encoding

Contributing

Contribution guidelines can be found in CONTRIBUTING

Licensing

The libraries are distributed on the terms of Apache 2.0 opensource license. See LICENCE file for the license details.

Dependencies

~0.5–1MB
~22K SLoC