17 major breaking releases

18.0.0 Oct 1, 2024
17.0.0 Jul 19, 2024
15.0.0 Jul 13, 2024
14.0.0 Jun 24, 2024
0.0.0 Nov 21, 2022

#4 in #holds

Download history 460/week @ 2024-07-29 556/week @ 2024-08-05 717/week @ 2024-08-12 806/week @ 2024-08-19 568/week @ 2024-08-26 504/week @ 2024-09-02 752/week @ 2024-09-09 679/week @ 2024-09-16 937/week @ 2024-09-23 1403/week @ 2024-09-30 748/week @ 2024-10-07 850/week @ 2024-10-14 964/week @ 2024-10-21 892/week @ 2024-10-28 1033/week @ 2024-11-04 809/week @ 2024-11-11

3,779 downloads per month
Used in 55 crates (17 directly)

GPL-3.0-only

92KB
2K SLoC

Release

Polkadot SDK stable2409


lib.rs:

Overseer

overseer implements the Overseer architecture described in the implementers' guide. For the motivations behind implementing the overseer itself you should check out that guide, documentation in this crate will be mostly discussing technical stuff.

An Overseer is something that allows spawning/stopping and overseeing asynchronous tasks as well as establishing a well-defined and easy to use protocol that the tasks can use to communicate with each other. It is desired that this protocol is the only way tasks communicate with each other, however at this moment there are no foolproof guards against other ways of communication.

The Overseer is instantiated with a pre-defined set of Subsystems that share the same behavior from Overseer's point of view.

                             +-----------------------------+
                             |         Overseer            |
                             +-----------------------------+

            ................|  Overseer "holds" these and uses |..............
            .                  them to (re)start things                      .
            .                                                                .
            .  +-------------------+                +---------------------+  .
            .  |   Subsystem1      |                |   Subsystem2        |  .
            .  +-------------------+                +---------------------+  .
            .           |                                       |            .
            ..................................................................
                        |                                       |
                      start()                                 start()
                        V                                       V
            ..................| Overseer "runs" these |.......................
            .  +--------------------+               +---------------------+  .
            .  | SubsystemInstance1 |               | SubsystemInstance2  |  .
            .  +--------------------+               +---------------------+  .
            ..................................................................

Dependencies

~98–140MB
~2.5M SLoC