#substrate #blockchain #polkadot

macro sp-runtime-interface-proc-macro

This crate provides procedural macros for usage within the context of the Substrate runtime interface

37 releases (16 major breaking)

18.0.0 Feb 26, 2024
17.0.0 Jan 23, 2024
16.0.0 Dec 12, 2023
15.0.0 Nov 1, 2023
2.0.0-alpha.5 Mar 24, 2020

#250 in #polkadot

Download history 38496/week @ 2024-12-10 30973/week @ 2024-12-17 12010/week @ 2024-12-24 19961/week @ 2024-12-31 32941/week @ 2025-01-07 49485/week @ 2025-01-14 40525/week @ 2025-01-21 36252/week @ 2025-01-28 42192/week @ 2025-02-04 47780/week @ 2025-02-11 41209/week @ 2025-02-18 38016/week @ 2025-02-25 37932/week @ 2025-03-04 40085/week @ 2025-03-11 36084/week @ 2025-03-18 37464/week @ 2025-03-25

158,596 downloads per month
Used in 812 crates (2 directly)

Apache-2.0

61KB
1K SLoC

This crate provides procedural macros for usage within the context of the Substrate runtime interface.

The following macros are provided:

  1. The #[runtime_interface] attribute macro for generating the runtime interfaces.
  2. The PassByCodec derive macro for implementing PassBy with Codec. 3. The PassByEnum derive macro for implementing PassBy with Enum. 4. The PassByInner derive macro for implementing PassBy with Inner.

Dependencies

~3–4MB
~86K SLoC