Crates.io | cradle_system |
lib.rs | cradle_system |
version | 0.0.1-alpha2 |
source | src |
created_at | 2024-03-23 01:49:44.254771 |
updated_at | 2024-03-23 02:37:31.432568 |
description | A watchdog timer but more powerful |
homepage | |
repository | https://github.com/kingwingfly/cradle_system |
max_upload_size | |
id | 1183116 |
size | 8,584 |
Inspired by the science fiction novel The Three Body Program
.
cradle_system
in that novel is used to threaten others: The cradle system will detonate a bomb if no signal is received so as babies will cry if stopping rocking the cradle.
This is a little like watchdog timer in embedded system: if the system is not working properly, the watchdog timer will reset the system. To avoid the reset, the system should periodically feed the watchdog timer.
However, the cradle system is more complex than watchdog timer: it may receive both local and remote signals.
cradle_system
will provide LocalCradle
and RemoteCradle
to simulate the cradle system. And RemoteCradle
will work through a p2p network by libp2p
(WIP).