71 releases (43 major breaking)

new 45.0.0 Dec 18, 2025
44.0.0 Oct 2, 2025
43.0.0 Aug 1, 2025
42.0.0 Jul 14, 2025
2.0.0-alpha.5 Mar 24, 2020

#96 in Magic Beans

Download history 65084/week @ 2025-08-27 24984/week @ 2025-09-03 22738/week @ 2025-09-10 18320/week @ 2025-09-17 20945/week @ 2025-09-24 20406/week @ 2025-10-01 19991/week @ 2025-10-08 18834/week @ 2025-10-15 22271/week @ 2025-10-22 18893/week @ 2025-10-29 25990/week @ 2025-11-05 19802/week @ 2025-11-12 21387/week @ 2025-11-19 18254/week @ 2025-11-26 19390/week @ 2025-12-03 16261/week @ 2025-12-10

78,530 downloads per month
Used in 829 crates (565 directly)

Apache-2.0

2MB
29K SLoC

Runtime Modules shared primitive types.

License: Apache-2.0


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

~26–45MB
~611K SLoC