65 releases (38 major breaking)

new 40.0.0 Jan 7, 2025
39.0.5 Dec 20, 2024
39.0.2 Oct 9, 2024
39.0.0 Jul 18, 2024
2.0.0-alpha.5 Mar 24, 2020

#706 in Magic Beans

Download history 70241/week @ 2024-09-17 85224/week @ 2024-09-24 99189/week @ 2024-10-01 94740/week @ 2024-10-08 106795/week @ 2024-10-15 103009/week @ 2024-10-22 92930/week @ 2024-10-29 118204/week @ 2024-11-05 91396/week @ 2024-11-12 86885/week @ 2024-11-19 89338/week @ 2024-11-26 88758/week @ 2024-12-03 88735/week @ 2024-12-10 71489/week @ 2024-12-17 24015/week @ 2024-12-24 30240/week @ 2024-12-31

237,485 downloads per month
Used in 724 crates (537 directly)

Apache-2.0

1.5MB
26K SLoC

Runtime Modules shared primitive types.

License: Apache-2.0

Release

Polkadot SDK Stable 2412


lib.rs:

Substrate Runtime Primitives.

This crate, among other things, contains a large library of types and utilities that are used in the Substrate runtime, but are not particularly FRAME-oriented.

Block, Header and Extrinsics

Most notable, this crate contains some of the types and trait that enable important communication between the client and the runtime. This includes:

Runtime API Types

This crate also contains some types that are often used in conjuncture with Runtime APIs. Most notable:

  • ApplyExtrinsicResult, and DispatchOutcome, which dictate how the client and runtime communicate about the success or failure of an extrinsic.
  • transaction_validity, which dictates how the client and runtime communicate about the validity of an extrinsic while still in the transaction-queue.

Dependencies

~15–28MB
~446K SLoC