#subsystem #define #definition

polkadot-node-subsystem-util

Subsystem traits and message definitions

19 major breaking releases

new 21.1.0 Mar 27, 2025
20.0.0 Jan 14, 2025
18.0.0 Oct 1, 2024
17.1.0 Aug 14, 2024
0.0.0 Nov 21, 2022

#12 in #subsystem

Download history 1423/week @ 2024-12-04 1507/week @ 2024-12-11 1368/week @ 2024-12-18 925/week @ 2024-12-25 936/week @ 2025-01-01 1325/week @ 2025-01-08 1234/week @ 2025-01-15 1102/week @ 2025-01-22 1287/week @ 2025-01-29 1371/week @ 2025-02-05 1236/week @ 2025-02-12 1072/week @ 2025-02-19 1238/week @ 2025-02-26 966/week @ 2025-03-05 1541/week @ 2025-03-12 1438/week @ 2025-03-19

5,360 downloads per month
Used in 41 crates (24 directly)

GPL-3.0-only

185KB
4K SLoC

Release

Polkadot SDK Stable 2412


lib.rs:

Utility module for subsystems

Many subsystems have common interests such as canceling a bunch of spawned jobs, or determining what their validator ID is. These common interests are factored into this module.

This crate also reexports Prometheus metric types which are expected to be implemented by subsystems.

Dependencies

~97–135MB
~2.5M SLoC