#proc-macro #bitcoin #macro-derive #system #traits

macro bitcoin-derive

proc macros for the bitcoin system

6 releases

0.1.16-alpha.0 Mar 31, 2023
0.1.15-alpha.0 Mar 31, 2023
0.1.12-alpha.0 Jan 18, 2023

#797 in #bitcoin

Download history 201/week @ 2024-05-20 142/week @ 2024-05-27 158/week @ 2024-06-03 226/week @ 2024-06-10 223/week @ 2024-06-17 250/week @ 2024-06-24 153/week @ 2024-07-08 259/week @ 2024-07-15 147/week @ 2024-07-22 151/week @ 2024-07-29 202/week @ 2024-08-05 146/week @ 2024-08-12 143/week @ 2024-08-19 221/week @ 2024-08-26 141/week @ 2024-09-02

700 downloads per month
Used in 189 crates (179 directly)

MIT license

250KB
702 lines

bitcoin-derive

Description

bitcoin-derive is a proc macro crate in the Bitcoin Rust workspace, providing macros for deriving various traits for Bitcoin-related types. This crate is a direct translation of the Bitcoin codebase from C++ to Rust and some function bodies may still be in the process of translation.

Features

bitcoin-derive provides macros for deriving traits for Bitcoin-related types, including serialization and deserialization traits, as well as other custom traits used within the Bitcoin ecosystem.

Usage

To use bitcoin-derive, simply include it as a dependency in your Rust project's Cargo.toml file and then use the appropriate proc macros to derive the desired traits for your Bitcoin-related types.

Dependencies

~88MB
~848K SLoC