3 unstable releases

0.9.0-alpha.2 Nov 25, 2022
0.9.0-alpha.1 Nov 17, 2022
0.8.0 Nov 16, 2022

#6 in #internet2


Used in confined_encoding

Apache-2.0

57KB
1K SLoC

Strict encoding derivation macros

Build Tests Lints codecov

Docs unsafe forbidden Apache-2 licensed

Derivation macros for strict encoding. To learn more about the strict encoding please check confined_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/confined_encoding_derive/

Usage

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

confined_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(ConfinedEncode, ConfinedDecode)], 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

~2MB
~47K SLoC