#system #bitcoin #bitcoin-derive

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

#863 in #bitcoin

Download history 230/week @ 2024-12-11 76/week @ 2024-12-18 56/week @ 2024-12-25 72/week @ 2025-01-01 83/week @ 2025-01-08 147/week @ 2025-01-15 51/week @ 2025-01-22 56/week @ 2025-01-29 98/week @ 2025-02-05 107/week @ 2025-02-12 69/week @ 2025-02-19 151/week @ 2025-02-26 34/week @ 2025-03-05 100/week @ 2025-03-12 52/week @ 2025-03-19 50/week @ 2025-03-26

247 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

~89MB
~860K SLoC