Implement chrs-election: Stateful weighted leader election following original CHORUS specs

This commit is contained in:
anthonyrawlins
2026-03-04 04:49:03 +11:00
parent 83ef40d3e2
commit 6bc78f4854
908 changed files with 739 additions and 32 deletions

View File

@@ -0,0 +1 @@
c363d25a4249deb8

View File

@@ -0,0 +1 @@
{"rustc":15597765236515928571,"features":"[]","declared_features":"[]","target":1330476452819908374,"profile":8731458305071235362,"path":4074536749608015683,"deps":[[303782240219042746,"chrs_council",false,18228527939123661723],[956568835236753365,"chrs_discovery",false,16065464362077433063],[3856126590694406759,"chrono",false,12796829643718796743],[3892385271859331781,"chrs_bubble",false,580284052123158153],[6743343474447045702,"chrs_mail",false,4558872596417840486],[9501418907531436400,"ratatui",false,7630702010021151535],[12333148202307381059,"chrs_backbeat",false,8165411497337264962],[12891030758458664808,"tokio",false,5728030250252527160],[13446551438807115857,"crossterm",false,15052951668381140596],[13548984313718623784,"serde",false,15970305258377189281],[13795362694956882968,"serde_json",false,1136853191008193563]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/chrs-observer-ecca5b3db8c424ef/dep-bin-chrs-observer","checksum":false}}],"rustflags":[],"config":2069994364910194474,"compile_kind":0}

View File

@@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@@ -0,0 +1,2 @@
{"$message_type":"diagnostic","message":"unused import: `Paragraph`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"chrs-observer/src/main.rs","byte_start":151,"byte_end":160,"line_start":5,"line_end":5,"column_start":31,"column_end":40,"is_primary":true,"text":[{"text":" widgets::{Block, Borders, Paragraph, List, ListItem, Gauge},","highlight_start":31,"highlight_end":40}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the unused import","code":null,"level":"help","spans":[{"file_name":"chrs-observer/src/main.rs","byte_start":149,"byte_end":160,"line_start":5,"line_end":5,"column_start":29,"column_end":40,"is_primary":true,"text":[{"text":" widgets::{Block, Borders, Paragraph, List, ListItem, Gauge},","highlight_start":29,"highlight_end":40}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: unused import: `Paragraph`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0mchrs-observer/src/main.rs:5:31\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m5\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m widgets::{Block, Borders, Paragraph, List, ListItem, Gauge},\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^^^^^^^^^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m= \u001b[0m\u001b[0m\u001b[1mnote\u001b[0m\u001b[0m: `#[warn(unused_imports)]` on by default\u001b[0m\n\n"}
{"$message_type":"diagnostic","message":"1 warning emitted","code":null,"level":"warning","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: 1 warning emitted\u001b[0m\n\n"}