rings-node 0.39.0

Rings is a browser-native, structured peer-to-peer network: browser tabs and native daemons find each other by DID and talk over WebRTC, routed by a Chord DHT.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# The one-spawn law of `src/tasks.rs` (#1085): every task of the node layer joins a task set,
# the node's (`NodeTasks`) or one its owner awaits (`rings_runtime::TaskSet`), so a close can
# stop it and await its end. No spawn here may detach a task, in tests either: a test owns its
# tasks (`TestTask`, `src/test_support.rs`) or runs them as tasks of a node it owns, and the
# binary owns its tasks through `JoinSet`.
disallowed-methods = [
    { path = "tokio::task::spawn", reason = "spawn through `NodeTasks` (src/tasks.rs) so a close awaits the task (#1085)" },
    { path = "tokio::task::spawn_local", reason = "spawn through `NodeTasks` (src/tasks.rs) so a close awaits the task (#1085)" },
    { path = "tokio::runtime::Handle::spawn", reason = "spawn through `NodeTasks` (src/tasks.rs) so a close awaits the task (#1085)" },
    { path = "tokio::runtime::Runtime::spawn", reason = "spawn through `NodeTasks` (src/tasks.rs) so a close awaits the task (#1085)" },
    { path = "wasm_bindgen_futures::spawn_local", reason = "spawn through `NodeTasks` (src/tasks.rs) so a close awaits the task (#1085)" },
    { path = "rings_runtime::spawn_detached", reason = "spawn through `NodeTasks` (src/tasks.rs) so a close awaits the task (#1085)" },
    { path = "rings_runtime::run_detached", reason = "spawn through `NodeTasks` (src/tasks.rs) so a close awaits the task (#1085)" },
    { path = "rings_runtime::Spawner::spawn", reason = "spawn through `NodeTasks` (src/tasks.rs) or a `TaskSet` so a close awaits the task (#1085)" },
    { path = "rings_runtime::Spawner::run_detached", reason = "spawn through `NodeTasks` (src/tasks.rs) or a `TaskSet` so a close awaits the task (#1085)" },
]