72 releases (44 major breaking)

46.0.0 Mar 28, 2026
45.0.0 Dec 18, 2025
44.0.0 Oct 2, 2025
43.0.0 Aug 1, 2025
2.0.0-alpha.5 Mar 24, 2020

#2 in #substrate-runtime

Download history 18096/week @ 2025-12-14 12987/week @ 2025-12-21 12359/week @ 2025-12-28 17556/week @ 2026-01-04 12393/week @ 2026-01-11 18695/week @ 2026-01-18 17936/week @ 2026-01-25 24583/week @ 2026-02-01 17934/week @ 2026-02-08 36530/week @ 2026-02-15 43394/week @ 2026-02-22 44330/week @ 2026-03-01 56645/week @ 2026-03-08 48305/week @ 2026-03-15 48312/week @ 2026-03-22 60273/week @ 2026-03-29

217,043 downloads per month
Used in 824 crates (573 directly)

Apache-2.0

2MB
30K 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

~25–37MB
~607K SLoC