#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

#749 in #bitcoin

Download history 332/week @ 2023-12-22 86/week @ 2023-12-29 181/week @ 2024-01-05 297/week @ 2024-01-12 158/week @ 2024-01-19 128/week @ 2024-01-26 159/week @ 2024-02-02 120/week @ 2024-02-09 206/week @ 2024-02-16 155/week @ 2024-02-23 162/week @ 2024-03-01 212/week @ 2024-03-08 211/week @ 2024-03-15 340/week @ 2024-03-22 505/week @ 2024-03-29 160/week @ 2024-04-05

1,219 downloads per month
Used in 190 crates (180 directly)

MIT license

250KB
701 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

~87MB
~802K SLoC