66 releases (38 major breaking)

40.1.0 Jan 27, 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

#1 in #extrinsic

Download history 84687/week @ 2024-10-28 123765/week @ 2024-11-04 93299/week @ 2024-11-11 86085/week @ 2024-11-18 95619/week @ 2024-11-25 80232/week @ 2024-12-02 98306/week @ 2024-12-09 76827/week @ 2024-12-16 22283/week @ 2024-12-23 40356/week @ 2024-12-30 73758/week @ 2025-01-06 114737/week @ 2025-01-13 96527/week @ 2025-01-20 79411/week @ 2025-01-27 96337/week @ 2025-02-03 103235/week @ 2025-02-10

384,757 downloads per month
Used in 730 crates (530 directly)

Apache-2.0

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

~16–29MB
~458K SLoC