#strict-encoding #proc-macro

macro strict_encoding_derive

Strict encoding derivation macros

20 releases (12 stable)

new 2.0.0 Mar 28, 2023
2.0.0-beta.2 Jan 30, 2023
1.7.6 Dec 6, 2021
1.7.4 Aug 31, 2021
0.8.0 Jun 30, 2022

#6 in #type-safety

Download history 1522/week @ 2022-12-06 1983/week @ 2022-12-13 1218/week @ 2022-12-20 1793/week @ 2022-12-27 498/week @ 2023-01-03 849/week @ 2023-01-10 699/week @ 2023-01-17 872/week @ 2023-01-24 1908/week @ 2023-01-31 417/week @ 2023-02-07 528/week @ 2023-02-14 1408/week @ 2023-02-21 722/week @ 2023-02-28 1429/week @ 2023-03-07 836/week @ 2023-03-14 1382/week @ 2023-03-21

4,870 downloads per month
Used in 55 crates (3 directly)

Apache-2.0

47KB
916 lines

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.8–1.2MB
~29K SLoC