73 releases (45 major breaking)

47.0.0 May 3, 2026
46.0.0 Mar 28, 2026
45.0.0 Dec 18, 2025
44.0.0 Oct 2, 2025
2.0.0-alpha.5 Mar 24, 2020

#1 in #extrinsic

Download history 15951/week @ 2026-01-22 23559/week @ 2026-01-29 21172/week @ 2026-02-05 27002/week @ 2026-02-12 41602/week @ 2026-02-19 40368/week @ 2026-02-26 56879/week @ 2026-03-05 50013/week @ 2026-03-12 51207/week @ 2026-03-19 55600/week @ 2026-03-26 60576/week @ 2026-04-02 57716/week @ 2026-04-09 55449/week @ 2026-04-16 54073/week @ 2026-04-23 39216/week @ 2026-04-30 36728/week @ 2026-05-07

197,259 downloads per month
Used in 841 crates (587 directly)

Apache-2.0

2MB
31K 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–37MB
~622K SLoC