From f985a122b7215d589ec46fb2d87a2f7b59d1495a Mon Sep 17 00:00:00 2001 From: Rasensprenger Date: Thu, 6 Aug 2026 18:02:51 +0200 Subject: [PATCH 1/7] Update Rust crate rand to 0.10 --- Cargo.lock | 14 +++++++------- client/Cargo.toml | 2 +- communities/Cargo.toml | 2 +- iota-auth/Cargo.toml | 2 +- iota-cli/Cargo.toml | 2 +- iota-storage/Cargo.toml | 2 +- omikron-connector/Cargo.toml | 2 +- other-iota/Cargo.toml | 2 +- web-ui/Cargo.toml | 2 +- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 58189ec..4062d30 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -802,7 +802,7 @@ dependencies = [ "once_cell", "open", "pnet", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "ratatui", "reqwest", @@ -2225,7 +2225,7 @@ dependencies = [ "once_cell", "open", "pnet", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "ratatui", "reqwest", @@ -2280,7 +2280,7 @@ dependencies = [ "once_cell", "open", "pnet", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "ratatui", "reqwest", @@ -2458,7 +2458,7 @@ dependencies = [ "mtp", "once_cell", "r2d2", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "ratatui", "reqwest", @@ -3268,7 +3268,7 @@ dependencies = [ "iota-util", "json", "mtp", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "reqwest", "sha2 0.10.9", @@ -3387,7 +3387,7 @@ dependencies = [ "once_cell", "open", "pnet", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "ratatui", "reqwest", @@ -5518,7 +5518,7 @@ dependencies = [ "once_cell", "open", "pnet", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "ratatui", "reqwest", diff --git a/client/Cargo.toml b/client/Cargo.toml index 43e27d3..6f92415 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -39,7 +39,7 @@ lazy_static = "1.5.0" once_cell = "1.21.3" open = "5.3.3" pnet = "0.35.0" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" diff --git a/communities/Cargo.toml b/communities/Cargo.toml index 0e867f2..ffacfe6 100644 --- a/communities/Cargo.toml +++ b/communities/Cargo.toml @@ -38,7 +38,7 @@ lazy_static = "1.5.0" once_cell = "1.21.3" open = "5.3.3" pnet = "0.35.0" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" diff --git a/iota-auth/Cargo.toml b/iota-auth/Cargo.toml index dbc740c..002bbc1 100644 --- a/iota-auth/Cargo.toml +++ b/iota-auth/Cargo.toml @@ -35,7 +35,7 @@ lazy_static = "1.5.0" once_cell = "1.21.3" open = "5.3.3" pnet = "0.35.0" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" diff --git a/iota-cli/Cargo.toml b/iota-cli/Cargo.toml index f7fe9a4..d397c1a 100644 --- a/iota-cli/Cargo.toml +++ b/iota-cli/Cargo.toml @@ -53,7 +53,7 @@ lazy_static = "1.5.0" once_cell = "1.21.3" open = "5.3.3" pnet = "0.35.0" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" diff --git a/iota-storage/Cargo.toml b/iota-storage/Cargo.toml index 0080576..a89e967 100644 --- a/iota-storage/Cargo.toml +++ b/iota-storage/Cargo.toml @@ -23,7 +23,7 @@ serde = { version = "1", features = ["derive"] } serde_json = "1" serde_yaml = "0.9" thiserror = "2" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" diff --git a/omikron-connector/Cargo.toml b/omikron-connector/Cargo.toml index c869941..8277455 100644 --- a/omikron-connector/Cargo.toml +++ b/omikron-connector/Cargo.toml @@ -24,7 +24,7 @@ tokio-util = { version = "0.7", features = ["rt"] } uuid = { version = "*", features = ["v4"] } base64 = "0.22.1" hex = "*" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } sha2 = "0.10.9" x448 = { version = "*" } diff --git a/other-iota/Cargo.toml b/other-iota/Cargo.toml index b4fd14e..8139a27 100644 --- a/other-iota/Cargo.toml +++ b/other-iota/Cargo.toml @@ -38,7 +38,7 @@ lazy_static = "1.5.0" once_cell = "1.21.3" open = "5.3.3" pnet = "0.35.0" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" diff --git a/web-ui/Cargo.toml b/web-ui/Cargo.toml index 5034f88..9a4ac48 100644 --- a/web-ui/Cargo.toml +++ b/web-ui/Cargo.toml @@ -38,7 +38,7 @@ lazy_static = "1.5.0" once_cell = "1.21.3" open = "5.3.3" pnet = "0.35.0" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" From e95974b082598d2c9fe92c1148a7461d5cd035e8 Mon Sep 17 00:00:00 2001 From: Rasensprenger Date: Thu, 6 Aug 2026 18:03:06 +0200 Subject: [PATCH 2/7] Update Rust crate sha2 to 0.11.0 --- Cargo.lock | 16 ++++++++-------- client/Cargo.toml | 2 +- communities/Cargo.toml | 2 +- iota-auth/Cargo.toml | 2 +- iota-cli/Cargo.toml | 2 +- iota-storage/Cargo.toml | 2 +- iota-updater/Cargo.toml | 2 +- omikron-connector/Cargo.toml | 2 +- other-iota/Cargo.toml | 2 +- web-ui/Cargo.toml | 2 +- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 58189ec..1b17528 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -810,7 +810,7 @@ dependencies = [ "rustls", "rustls-pemfile", "serde_json", - "sha2 0.10.9", + "sha2 0.11.0", "strum 0.27.2", "strum_macros 0.27.2", "sysinfo", @@ -2233,7 +2233,7 @@ dependencies = [ "rustls", "rustls-pemfile", "serde_json", - "sha2 0.10.9", + "sha2 0.11.0", "strum 0.27.2", "strum_macros 0.27.2", "sysinfo", @@ -2290,7 +2290,7 @@ dependencies = [ "serde", "serde_json", "serde_yaml", - "sha2 0.10.9", + "sha2 0.11.0", "strum 0.27.2", "strum_macros 0.27.2", "sysinfo", @@ -2466,7 +2466,7 @@ dependencies = [ "serde", "serde_json", "serde_yaml", - "sha2 0.10.9", + "sha2 0.11.0", "sysinfo", "thiserror 2.0.19", "tokio", @@ -2508,7 +2508,7 @@ dependencies = [ "semver", "serde", "serde_json", - "sha2 0.10.9", + "sha2 0.11.0", "sysinfo", "tempfile", "tokio", @@ -3271,7 +3271,7 @@ dependencies = [ "rand 0.8.7", "rand_core 0.6.4", "reqwest", - "sha2 0.10.9", + "sha2 0.11.0", "tokio", "tokio-util", "uuid", @@ -3395,7 +3395,7 @@ dependencies = [ "rustls", "rustls-pemfile", "serde_json", - "sha2 0.10.9", + "sha2 0.11.0", "strum 0.27.2", "strum_macros 0.27.2", "sysinfo", @@ -5526,7 +5526,7 @@ dependencies = [ "rustls", "rustls-pemfile", "serde_json", - "sha2 0.10.9", + "sha2 0.11.0", "strum 0.27.2", "strum_macros 0.27.2", "sysinfo", diff --git a/client/Cargo.toml b/client/Cargo.toml index 43e27d3..f159246 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -47,7 +47,7 @@ rusqlite = "0.40.0" rustls = { version = "0.23.37", features = ["aws-lc-rs"] } rustls-pemfile = "2.2.0" serde_json = "1.0.149" -sha2 = "0.10.9" +sha2 = "0.11.0" strum = "0.27.2" strum_macros = "0.27.2" sysinfo = "0.38.3" diff --git a/communities/Cargo.toml b/communities/Cargo.toml index 0e867f2..76054de 100644 --- a/communities/Cargo.toml +++ b/communities/Cargo.toml @@ -46,7 +46,7 @@ rusqlite = "0.40.0" rustls = { version = "0.23.37", features = ["aws-lc-rs"] } rustls-pemfile = "2.2.0" serde_json = "1.0.149" -sha2 = "0.10.9" +sha2 = "0.11.0" strum = "0.27.2" strum_macros = "0.27.2" sysinfo = "0.38.3" diff --git a/iota-auth/Cargo.toml b/iota-auth/Cargo.toml index dbc740c..d961329 100644 --- a/iota-auth/Cargo.toml +++ b/iota-auth/Cargo.toml @@ -43,7 +43,7 @@ rusqlite = "0.40.0" rustls = { version = "0.23.37", features = ["aws-lc-rs"] } rustls-pemfile = "2.2.0" serde_json = "1.0.149" -sha2 = "0.10.9" +sha2 = "0.11.0" strum = "0.27.2" strum_macros = "0.27.2" sysinfo = "0.38.3" diff --git a/iota-cli/Cargo.toml b/iota-cli/Cargo.toml index f7fe9a4..381a8a3 100644 --- a/iota-cli/Cargo.toml +++ b/iota-cli/Cargo.toml @@ -63,7 +63,7 @@ rustls-pemfile = "2.2.0" serde_json = "1.0.149" serde = { version = "1", features = ["derive"] } serde_yaml = "0.9" -sha2 = "0.10.9" +sha2 = "0.11.0" strum = "0.27.2" strum_macros = "0.27.2" sysinfo = "0.38.3" diff --git a/iota-storage/Cargo.toml b/iota-storage/Cargo.toml index 0080576..fd87d9c 100644 --- a/iota-storage/Cargo.toml +++ b/iota-storage/Cargo.toml @@ -28,7 +28,7 @@ rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" rusqlite = "0.40.0" -sha2 = "0.10.9" +sha2 = "0.11.0" sysinfo = "0.38.3" tokio = { version = "1.50.0", features = ["full"] } uuid = { version = "*", features = ["v4"] } diff --git a/iota-updater/Cargo.toml b/iota-updater/Cargo.toml index d089180..742b2a6 100644 --- a/iota-updater/Cargo.toml +++ b/iota-updater/Cargo.toml @@ -21,7 +21,7 @@ zip = "6.0.0" aes-gcm = "0.10.3" base64 = "0.22.1" rand_core = { version = "0.6", features = ["getrandom", "std"] } -sha2 = "0.10.9" +sha2 = "0.11.0" x448 = { version = "*" } hkdf = "0.12.4" once_cell = "1.21.3" diff --git a/omikron-connector/Cargo.toml b/omikron-connector/Cargo.toml index c869941..1e3e21d 100644 --- a/omikron-connector/Cargo.toml +++ b/omikron-connector/Cargo.toml @@ -26,5 +26,5 @@ base64 = "0.22.1" hex = "*" rand = "0.8" rand_core = { version = "0.6", features = ["getrandom", "std"] } -sha2 = "0.10.9" +sha2 = "0.11.0" x448 = { version = "*" } diff --git a/other-iota/Cargo.toml b/other-iota/Cargo.toml index b4fd14e..e23231b 100644 --- a/other-iota/Cargo.toml +++ b/other-iota/Cargo.toml @@ -46,7 +46,7 @@ rusqlite = "0.40.0" rustls = { version = "0.23.37", features = ["aws-lc-rs"] } rustls-pemfile = "2.2.0" serde_json = "1.0.149" -sha2 = "0.10.9" +sha2 = "0.11.0" strum = "0.27.2" strum_macros = "0.27.2" sysinfo = "0.38.3" diff --git a/web-ui/Cargo.toml b/web-ui/Cargo.toml index 5034f88..fb38dee 100644 --- a/web-ui/Cargo.toml +++ b/web-ui/Cargo.toml @@ -46,7 +46,7 @@ rusqlite = "0.40.0" rustls = { version = "0.23.37", features = ["aws-lc-rs"] } rustls-pemfile = "2.2.0" serde_json = "1.0.149" -sha2 = "0.10.9" +sha2 = "0.11.0" strum = "0.27.2" strum_macros = "0.27.2" sysinfo = "0.38.3" From a3815b30c9067ad3cea2cfa24e55a8a422807c5b Mon Sep 17 00:00:00 2001 From: Rasensprenger Date: Thu, 6 Aug 2026 19:02:08 +0200 Subject: [PATCH 3/7] Update Rust crate strum_macros to 0.28.0 --- Cargo.lock | 24 ++++++------------------ client/Cargo.toml | 2 +- communities/Cargo.toml | 2 +- iota-auth/Cargo.toml | 2 +- iota-cli/Cargo.toml | 2 +- other-iota/Cargo.toml | 2 +- web-ui/Cargo.toml | 2 +- 7 files changed, 12 insertions(+), 24 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 58189ec..d3be1b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -812,7 +812,7 @@ dependencies = [ "serde_json", "sha2 0.10.9", "strum 0.27.2", - "strum_macros 0.27.2", + "strum_macros", "sysinfo", "tokio", "tokio-tungstenite", @@ -2235,7 +2235,7 @@ dependencies = [ "serde_json", "sha2 0.10.9", "strum 0.27.2", - "strum_macros 0.27.2", + "strum_macros", "sysinfo", "tokio", "tokio-tungstenite", @@ -2292,7 +2292,7 @@ dependencies = [ "serde_yaml", "sha2 0.10.9", "strum 0.27.2", - "strum_macros 0.27.2", + "strum_macros", "sysinfo", "tempfile", "tokio", @@ -3397,7 +3397,7 @@ dependencies = [ "serde_json", "sha2 0.10.9", "strum 0.27.2", - "strum_macros 0.27.2", + "strum_macros", "sysinfo", "tokio", "tokio-tungstenite", @@ -4707,19 +4707,7 @@ version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9628de9b8791db39ceda2b119bbe13134770b56c138ec1d3af810d045c04f9bd" dependencies = [ - "strum_macros 0.28.0", -] - -[[package]] -name = "strum_macros" -version = "0.27.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7695ce3845ea4b33927c055a39dc438a45b059f7c1b3d91d38d10355fb8cbca7" -dependencies = [ - "heck", - "proc-macro2", - "quote", - "syn 2.0.119", + "strum_macros", ] [[package]] @@ -5528,7 +5516,7 @@ dependencies = [ "serde_json", "sha2 0.10.9", "strum 0.27.2", - "strum_macros 0.27.2", + "strum_macros", "sysinfo", "tokio", "tokio-tungstenite", diff --git a/client/Cargo.toml b/client/Cargo.toml index 43e27d3..e2725ad 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -49,7 +49,7 @@ rustls-pemfile = "2.2.0" serde_json = "1.0.149" sha2 = "0.10.9" strum = "0.27.2" -strum_macros = "0.27.2" +strum_macros = "0.28.0" sysinfo = "0.38.3" tokio = { version = "1.50.0", features = ["full"] } tokio-tungstenite = { version = "*", features = ["native-tls"] } diff --git a/communities/Cargo.toml b/communities/Cargo.toml index 0e867f2..9621999 100644 --- a/communities/Cargo.toml +++ b/communities/Cargo.toml @@ -48,7 +48,7 @@ rustls-pemfile = "2.2.0" serde_json = "1.0.149" sha2 = "0.10.9" strum = "0.27.2" -strum_macros = "0.27.2" +strum_macros = "0.28.0" sysinfo = "0.38.3" tokio = { version = "1.50.0", features = ["full"] } tokio-tungstenite = { version = "*", features = ["native-tls"] } diff --git a/iota-auth/Cargo.toml b/iota-auth/Cargo.toml index dbc740c..22ae173 100644 --- a/iota-auth/Cargo.toml +++ b/iota-auth/Cargo.toml @@ -45,7 +45,7 @@ rustls-pemfile = "2.2.0" serde_json = "1.0.149" sha2 = "0.10.9" strum = "0.27.2" -strum_macros = "0.27.2" +strum_macros = "0.28.0" sysinfo = "0.38.3" tokio = { version = "1.50.0", features = ["full"] } tokio-tungstenite = { version = "*", features = ["native-tls"] } diff --git a/iota-cli/Cargo.toml b/iota-cli/Cargo.toml index f7fe9a4..83f0328 100644 --- a/iota-cli/Cargo.toml +++ b/iota-cli/Cargo.toml @@ -65,7 +65,7 @@ serde = { version = "1", features = ["derive"] } serde_yaml = "0.9" sha2 = "0.10.9" strum = "0.27.2" -strum_macros = "0.27.2" +strum_macros = "0.28.0" sysinfo = "0.38.3" tokio = { version = "1.50.0", features = ["full"] } tokio-util = { version = "0.7", features = ["rt"] } diff --git a/other-iota/Cargo.toml b/other-iota/Cargo.toml index b4fd14e..66cf720 100644 --- a/other-iota/Cargo.toml +++ b/other-iota/Cargo.toml @@ -48,7 +48,7 @@ rustls-pemfile = "2.2.0" serde_json = "1.0.149" sha2 = "0.10.9" strum = "0.27.2" -strum_macros = "0.27.2" +strum_macros = "0.28.0" sysinfo = "0.38.3" tokio = { version = "1.50.0", features = ["full"] } tokio-tungstenite = { version = "*", features = ["native-tls"] } diff --git a/web-ui/Cargo.toml b/web-ui/Cargo.toml index 5034f88..378c947 100644 --- a/web-ui/Cargo.toml +++ b/web-ui/Cargo.toml @@ -48,7 +48,7 @@ rustls-pemfile = "2.2.0" serde_json = "1.0.149" sha2 = "0.10.9" strum = "0.27.2" -strum_macros = "0.27.2" +strum_macros = "0.28.0" sysinfo = "0.38.3" tokio = { version = "1.50.0", features = ["full"] } tokio-tungstenite = { version = "*", features = ["native-tls"] } From 7a0746893c222ef5e99363814eb238654db081cc Mon Sep 17 00:00:00 2001 From: Rasensprenger Date: Thu, 6 Aug 2026 21:02:54 +0200 Subject: [PATCH 4/7] Update Rust crate strum to 0.28.0 --- Cargo.lock | 20 +++++++------------- client/Cargo.toml | 2 +- communities/Cargo.toml | 2 +- iota-auth/Cargo.toml | 2 +- iota-cli/Cargo.toml | 2 +- other-iota/Cargo.toml | 2 +- web-ui/Cargo.toml | 2 +- 7 files changed, 13 insertions(+), 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 77154c0..1621120 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -811,7 +811,7 @@ dependencies = [ "rustls-pemfile", "serde_json", "sha2 0.11.0", - "strum 0.27.2", + "strum", "strum_macros", "sysinfo", "tokio", @@ -2234,7 +2234,7 @@ dependencies = [ "rustls-pemfile", "serde_json", "sha2 0.11.0", - "strum 0.27.2", + "strum", "strum_macros", "sysinfo", "tokio", @@ -2291,7 +2291,7 @@ dependencies = [ "serde_json", "serde_yaml", "sha2 0.11.0", - "strum 0.27.2", + "strum", "strum_macros", "sysinfo", "tempfile", @@ -3396,7 +3396,7 @@ dependencies = [ "rustls-pemfile", "serde_json", "sha2 0.11.0", - "strum 0.27.2", + "strum", "strum_macros", "sysinfo", "tokio", @@ -3981,7 +3981,7 @@ dependencies = [ "lru", "palette", "serde", - "strum 0.28.0", + "strum", "thiserror 2.0.19", "unicode-segmentation", "unicode-truncate", @@ -4045,7 +4045,7 @@ dependencies = [ "line-clipping", "ratatui-core", "serde", - "strum 0.28.0", + "strum", "time", "unicode-segmentation", "unicode-width", @@ -4695,12 +4695,6 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" -[[package]] -name = "strum" -version = "0.27.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af23d6f6c1a224baef9d3f61e287d2761385a5b88fdab4eb4c6f11aeb54c4bcf" - [[package]] name = "strum" version = "0.28.0" @@ -5515,7 +5509,7 @@ dependencies = [ "rustls-pemfile", "serde_json", "sha2 0.11.0", - "strum 0.27.2", + "strum", "strum_macros", "sysinfo", "tokio", diff --git a/client/Cargo.toml b/client/Cargo.toml index 8e665f2..ed48d6c 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -48,7 +48,7 @@ rustls = { version = "0.23.37", features = ["aws-lc-rs"] } rustls-pemfile = "2.2.0" serde_json = "1.0.149" sha2 = "0.11.0" -strum = "0.27.2" +strum = "0.28.0" strum_macros = "0.28.0" sysinfo = "0.38.3" tokio = { version = "1.50.0", features = ["full"] } diff --git a/communities/Cargo.toml b/communities/Cargo.toml index 6ad8198..d7ac493 100644 --- a/communities/Cargo.toml +++ b/communities/Cargo.toml @@ -47,7 +47,7 @@ rustls = { version = "0.23.37", features = ["aws-lc-rs"] } rustls-pemfile = "2.2.0" serde_json = "1.0.149" sha2 = "0.11.0" -strum = "0.27.2" +strum = "0.28.0" strum_macros = "0.28.0" sysinfo = "0.38.3" tokio = { version = "1.50.0", features = ["full"] } diff --git a/iota-auth/Cargo.toml b/iota-auth/Cargo.toml index cababc4..6e1a10c 100644 --- a/iota-auth/Cargo.toml +++ b/iota-auth/Cargo.toml @@ -44,7 +44,7 @@ rustls = { version = "0.23.37", features = ["aws-lc-rs"] } rustls-pemfile = "2.2.0" serde_json = "1.0.149" sha2 = "0.11.0" -strum = "0.27.2" +strum = "0.28.0" strum_macros = "0.28.0" sysinfo = "0.38.3" tokio = { version = "1.50.0", features = ["full"] } diff --git a/iota-cli/Cargo.toml b/iota-cli/Cargo.toml index c5199fa..31b0950 100644 --- a/iota-cli/Cargo.toml +++ b/iota-cli/Cargo.toml @@ -64,7 +64,7 @@ serde_json = "1.0.149" serde = { version = "1", features = ["derive"] } serde_yaml = "0.9" sha2 = "0.11.0" -strum = "0.27.2" +strum = "0.28.0" strum_macros = "0.28.0" sysinfo = "0.38.3" tokio = { version = "1.50.0", features = ["full"] } diff --git a/other-iota/Cargo.toml b/other-iota/Cargo.toml index a128cbe..14dd8fd 100644 --- a/other-iota/Cargo.toml +++ b/other-iota/Cargo.toml @@ -47,7 +47,7 @@ rustls = { version = "0.23.37", features = ["aws-lc-rs"] } rustls-pemfile = "2.2.0" serde_json = "1.0.149" sha2 = "0.11.0" -strum = "0.27.2" +strum = "0.28.0" strum_macros = "0.28.0" sysinfo = "0.38.3" tokio = { version = "1.50.0", features = ["full"] } diff --git a/web-ui/Cargo.toml b/web-ui/Cargo.toml index 2a2e01a..bd1bc40 100644 --- a/web-ui/Cargo.toml +++ b/web-ui/Cargo.toml @@ -47,7 +47,7 @@ rustls = { version = "0.23.37", features = ["aws-lc-rs"] } rustls-pemfile = "2.2.0" serde_json = "1.0.149" sha2 = "0.11.0" -strum = "0.27.2" +strum = "0.28.0" strum_macros = "0.28.0" sysinfo = "0.38.3" tokio = { version = "1.50.0", features = ["full"] } From e4a33578eb4849c12ec10ac13d6c30ceb2323b04 Mon Sep 17 00:00:00 2001 From: Rasensprenger Date: Thu, 6 Aug 2026 21:03:15 +0200 Subject: [PATCH 5/7] Update Rust crate sysinfo to 0.39.0 --- Cargo.lock | 65 +++++++++++++++++++++++++++++++++----- client/Cargo.toml | 2 +- communities/Cargo.toml | 2 +- iota-auth/Cargo.toml | 2 +- iota-cli/Cargo.toml | 2 +- iota-daemon-lib/Cargo.toml | 2 +- iota-state/Cargo.toml | 2 +- iota-storage/Cargo.toml | 2 +- iota-updater/Cargo.toml | 2 +- iota-util/Cargo.toml | 2 +- other-iota/Cargo.toml | 2 +- web-ui/Cargo.toml | 2 +- 12 files changed, 68 insertions(+), 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 77154c0..2c3fe0b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1264,6 +1264,16 @@ dependencies = [ "ctutils", ] +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.13.1", + "objc2", +] + [[package]] name = "displaydoc" version = "0.2.7" @@ -1353,7 +1363,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -3219,6 +3229,15 @@ dependencies = [ "libc", ] +[[package]] +name = "objc2" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f" +dependencies = [ + "objc2-encode", +] + [[package]] name = "objc2-core-foundation" version = "0.3.2" @@ -3226,6 +3245,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" dependencies = [ "bitflags 2.13.1", + "dispatch2", + "objc2", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.13.1", + "objc2", ] [[package]] @@ -3238,6 +3275,17 @@ dependencies = [ "objc2-core-foundation", ] +[[package]] +name = "objc2-open-directory" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb82bed227edf5201dfedf072bba4015a33d3d4a98519837295a90f0a23f676d" +dependencies = [ + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + [[package]] name = "octets" version = "0.3.6" @@ -3853,7 +3901,7 @@ dependencies = [ "once_cell", "socket2 0.6.5", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -4221,7 +4269,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -4289,7 +4337,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -4783,15 +4831,16 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.38.4" +version = "0.39.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92ab6a2f8bfe508deb3c6406578252e491d299cbbf3bc0529ecc3313aee4a52f" +checksum = "d2071df9448915b71c4fe6d25deaf1c22f12bd234f01540b77312bb8e41361e6" dependencies = [ "libc", "memchr", "ntapi", "objc2-core-foundation", "objc2-io-kit", + "objc2-open-directory", "windows", ] @@ -4826,7 +4875,7 @@ dependencies = [ "getrandom 0.4.3", "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -5631,7 +5680,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] diff --git a/client/Cargo.toml b/client/Cargo.toml index 8e665f2..7da750e 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -50,7 +50,7 @@ serde_json = "1.0.149" sha2 = "0.11.0" strum = "0.27.2" strum_macros = "0.28.0" -sysinfo = "0.38.3" +sysinfo = "0.39.0" tokio = { version = "1.50.0", features = ["full"] } tokio-tungstenite = { version = "*", features = ["native-tls"] } tungstenite = "*" diff --git a/communities/Cargo.toml b/communities/Cargo.toml index 6ad8198..22cb443 100644 --- a/communities/Cargo.toml +++ b/communities/Cargo.toml @@ -49,7 +49,7 @@ serde_json = "1.0.149" sha2 = "0.11.0" strum = "0.27.2" strum_macros = "0.28.0" -sysinfo = "0.38.3" +sysinfo = "0.39.0" tokio = { version = "1.50.0", features = ["full"] } tokio-tungstenite = { version = "*", features = ["native-tls"] } tungstenite = "*" diff --git a/iota-auth/Cargo.toml b/iota-auth/Cargo.toml index cababc4..c922377 100644 --- a/iota-auth/Cargo.toml +++ b/iota-auth/Cargo.toml @@ -46,7 +46,7 @@ serde_json = "1.0.149" sha2 = "0.11.0" strum = "0.27.2" strum_macros = "0.28.0" -sysinfo = "0.38.3" +sysinfo = "0.39.0" tokio = { version = "1.50.0", features = ["full"] } tokio-tungstenite = { version = "*", features = ["native-tls"] } tungstenite = "*" diff --git a/iota-cli/Cargo.toml b/iota-cli/Cargo.toml index c5199fa..0c8ee3b 100644 --- a/iota-cli/Cargo.toml +++ b/iota-cli/Cargo.toml @@ -66,7 +66,7 @@ serde_yaml = "0.9" sha2 = "0.11.0" strum = "0.27.2" strum_macros = "0.28.0" -sysinfo = "0.38.3" +sysinfo = "0.39.0" tokio = { version = "1.50.0", features = ["full"] } tokio-util = { version = "0.7", features = ["rt"] } tokio-tungstenite = { version = "*", features = ["native-tls"] } diff --git a/iota-daemon-lib/Cargo.toml b/iota-daemon-lib/Cargo.toml index 5e0c67c..4eb0b7c 100644 --- a/iota-daemon-lib/Cargo.toml +++ b/iota-daemon-lib/Cargo.toml @@ -15,7 +15,7 @@ omikron-connector = { path = "../omikron-connector" } mtp = { git = "https://git.methanium.net/Methanium/mtp.git" } dashmap = "6.1.0" libc = "0.2" -sysinfo = "0.38.3" +sysinfo = "0.39.0" serde_yaml = "0.9" tokio = { version = "1.50.0", features = ["full"] } tokio-util = { version = "0.7", features = ["rt"] } diff --git a/iota-state/Cargo.toml b/iota-state/Cargo.toml index 4275556..8c9ab8a 100644 --- a/iota-state/Cargo.toml +++ b/iota-state/Cargo.toml @@ -12,6 +12,6 @@ dashmap = "6.1.0" once_cell = "1.21.3" tokio = { version = "1.50.0", features = ["full"] } json = "*" -sysinfo = "0.38.3" +sysinfo = "0.39.0" mtp = { git = "https://git.methanium.net/Methanium/mtp.git" } serde = { version = "1", features = ["derive"] } diff --git a/iota-storage/Cargo.toml b/iota-storage/Cargo.toml index fd87d9c..caf6417 100644 --- a/iota-storage/Cargo.toml +++ b/iota-storage/Cargo.toml @@ -29,7 +29,7 @@ ratatui = "0.30.0" reqwest = "0.13.2" rusqlite = "0.40.0" sha2 = "0.11.0" -sysinfo = "0.38.3" +sysinfo = "0.39.0" tokio = { version = "1.50.0", features = ["full"] } uuid = { version = "*", features = ["v4"] } walkdir = "2.5.0" diff --git a/iota-updater/Cargo.toml b/iota-updater/Cargo.toml index 742b2a6..2f6bf04 100644 --- a/iota-updater/Cargo.toml +++ b/iota-updater/Cargo.toml @@ -14,7 +14,7 @@ pnet = "0.35.0" ratatui = "0.30.0" reqwest = "0.13.2" tokio = { version = "1.50.0", features = ["full"] } -sysinfo = "0.38.3" +sysinfo = "0.39.0" uuid = { version = "*", features = ["v4"] } walkdir = "2.5.0" zip = "6.0.0" diff --git a/iota-util/Cargo.toml b/iota-util/Cargo.toml index d61786e..e9907eb 100644 --- a/iota-util/Cargo.toml +++ b/iota-util/Cargo.toml @@ -11,7 +11,7 @@ mtp = { git = "https://git.methanium.net/Methanium/mtp.git", features = [ reqwest = "0.13.2" tokio = { version = "1.50.0", features = ["full"] } -sysinfo = "0.38.3" +sysinfo = "0.39.0" uuid = { version = "*", features = ["v4"] } walkdir = "2.5.0" zip = "6.0.0" diff --git a/other-iota/Cargo.toml b/other-iota/Cargo.toml index a128cbe..1a1dd45 100644 --- a/other-iota/Cargo.toml +++ b/other-iota/Cargo.toml @@ -49,7 +49,7 @@ serde_json = "1.0.149" sha2 = "0.11.0" strum = "0.27.2" strum_macros = "0.28.0" -sysinfo = "0.38.3" +sysinfo = "0.39.0" tokio = { version = "1.50.0", features = ["full"] } tokio-tungstenite = { version = "*", features = ["native-tls"] } tungstenite = "*" diff --git a/web-ui/Cargo.toml b/web-ui/Cargo.toml index 2a2e01a..453cffc 100644 --- a/web-ui/Cargo.toml +++ b/web-ui/Cargo.toml @@ -49,7 +49,7 @@ serde_json = "1.0.149" sha2 = "0.11.0" strum = "0.27.2" strum_macros = "0.28.0" -sysinfo = "0.38.3" +sysinfo = "0.39.0" tokio = { version = "1.50.0", features = ["full"] } tokio-tungstenite = { version = "*", features = ["native-tls"] } tungstenite = "*" From 45da43805af25bf4696f77072e16bd2d3f07e5fb Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 7 Aug 2026 23:53:12 +0200 Subject: [PATCH 6/7] [Fix] User States --- iota-connection/src/message_handlers.rs | 54 ++++++++++++++++++++++--- mtp-type-maps | 2 +- 2 files changed, 50 insertions(+), 6 deletions(-) diff --git a/iota-connection/src/message_handlers.rs b/iota-connection/src/message_handlers.rs index 1330ef2..73244d7 100644 --- a/iota-connection/src/message_handlers.rs +++ b/iota-connection/src/message_handlers.rs @@ -296,6 +296,45 @@ fn contact_value( typed_container(fields) } +fn current_contact_ids(user_id: i64) -> DataValue { + contact_ids_value( + chats_util::get_users(user_id) + .into_iter() + .map(|contact| contact.user_id), + ) +} + +fn contact_ids_value(ids: impl IntoIterator) -> DataValue { + let mut contact_ids = ids.into_iter().collect::>(); + contact_ids.sort_unstable(); + contact_ids.dedup(); + + DataValue::Array( + contact_ids + .into_iter() + .map(|user_id| DataValue::SignedNumber(user_id as i128)) + .collect(), + ) +} + +#[cfg(test)] +mod presence_tests { + use super::contact_ids_value; + use mtp::codec::DataValue; + + #[test] + fn contact_snapshot_is_sorted_and_deduplicated() { + assert_eq!( + contact_ids_value([9, 3, 9, 4, 3]), + DataValue::Array(vec![ + DataValue::SignedNumber(3), + DataValue::SignedNumber(4), + DataValue::SignedNumber(9), + ]) + ); + } +} + fn sync_error(cv: &CommunicationValue) -> CommunicationValue { error_response(cv, CommunicationType::ErrorInvalidData).add_typed_default( DataType::SessionId, @@ -356,10 +395,6 @@ pub fn handle_client_connected(cv: &CommunicationValue) -> CommunicationValue { ), } }; - let all_contact_ids = chats_util::get_users(user_id) - .into_iter() - .map(|contact| DataValue::SignedNumber(contact.user_id as i128)) - .collect(); let message_values = messages .iter() .map(|message| stored_message_value(message, user_id, message.external_user)) @@ -408,7 +443,7 @@ pub fn handle_client_connected(cv: &CommunicationValue) -> CommunicationValue { .collect(), ), ) - .add_typed_default(DataType::UserIds, DataValue::Array(all_contact_ids)) + .add_typed_default(DataType::UserIds, current_contact_ids(user_id)) .add_typed_default(DataType::Calls, DataValue::Array(Vec::new())) } @@ -511,6 +546,10 @@ pub fn handle_get_chats(cv: &CommunicationValue) -> CommunicationValue { pub fn handle_add_conversation(cv: &CommunicationValue) -> CommunicationValue { let user_id = cv.get_sender(); + let session_id = match data_i64(cv, DataType::SessionId) { + Some(id) if id > 0 => id, + _ => return sync_error(cv), + }; let other_id = match cv.get_data(DataType::ChatPartnerId).as_number() { Some(n) => n as i64, None => cv @@ -532,6 +571,11 @@ pub fn handle_add_conversation(cv: &CommunicationValue) -> CommunicationValue { CommunicationValue::new(CommunicationType::AddConversation) .with_id(cv.get_id()) .with_receiver(user_id) + .add_typed_default( + DataType::SessionId, + DataValue::SignedNumber(session_id as i128), + ) + .add_typed_default(DataType::UserIds, current_contact_ids(user_id as i64)) } pub fn handle_add_community(cv: &CommunicationValue) -> CommunicationValue { diff --git a/mtp-type-maps b/mtp-type-maps index f430cd3..486541b 160000 --- a/mtp-type-maps +++ b/mtp-type-maps @@ -1 +1 @@ -Subproject commit f430cd358b3d07a4cfd6982eb8917fec80c24a7d +Subproject commit 486541b9483356ff49ff3ec7016f87d3ecbeaa0e From f77f9c3a95d8e3fead028f9b56cda903660e9f90 Mon Sep 17 00:00:00 2001 From: Rasensprenger Date: Sat, 8 Aug 2026 00:01:39 +0200 Subject: [PATCH 7/7] Update Rust crate rand to 0.10 --- Cargo.lock | 14 +++++++------- client/Cargo.toml | 2 +- communities/Cargo.toml | 2 +- iota-auth/Cargo.toml | 2 +- iota-cli/Cargo.toml | 2 +- iota-storage/Cargo.toml | 2 +- omikron-connector/Cargo.toml | 2 +- other-iota/Cargo.toml | 2 +- web-ui/Cargo.toml | 2 +- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 149db71..e915524 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -802,7 +802,7 @@ dependencies = [ "once_cell", "open", "pnet", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "ratatui", "reqwest", @@ -2235,7 +2235,7 @@ dependencies = [ "once_cell", "open", "pnet", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "ratatui", "reqwest", @@ -2290,7 +2290,7 @@ dependencies = [ "once_cell", "open", "pnet", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "ratatui", "reqwest", @@ -2468,7 +2468,7 @@ dependencies = [ "mtp", "once_cell", "r2d2", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "ratatui", "reqwest", @@ -3316,7 +3316,7 @@ dependencies = [ "iota-util", "json", "mtp", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "reqwest", "sha2 0.11.0", @@ -3435,7 +3435,7 @@ dependencies = [ "once_cell", "open", "pnet", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "ratatui", "reqwest", @@ -5549,7 +5549,7 @@ dependencies = [ "once_cell", "open", "pnet", - "rand 0.8.7", + "rand 0.10.2", "rand_core 0.6.4", "ratatui", "reqwest", diff --git a/client/Cargo.toml b/client/Cargo.toml index 174b5fa..0c9e8a1 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -39,7 +39,7 @@ lazy_static = "1.5.0" once_cell = "1.21.3" open = "5.3.3" pnet = "0.35.0" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" diff --git a/communities/Cargo.toml b/communities/Cargo.toml index 89c4f57..c4553c1 100644 --- a/communities/Cargo.toml +++ b/communities/Cargo.toml @@ -38,7 +38,7 @@ lazy_static = "1.5.0" once_cell = "1.21.3" open = "5.3.3" pnet = "0.35.0" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" diff --git a/iota-auth/Cargo.toml b/iota-auth/Cargo.toml index dc43347..88cb1ea 100644 --- a/iota-auth/Cargo.toml +++ b/iota-auth/Cargo.toml @@ -35,7 +35,7 @@ lazy_static = "1.5.0" once_cell = "1.21.3" open = "5.3.3" pnet = "0.35.0" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" diff --git a/iota-cli/Cargo.toml b/iota-cli/Cargo.toml index 4c3d508..875893f 100644 --- a/iota-cli/Cargo.toml +++ b/iota-cli/Cargo.toml @@ -53,7 +53,7 @@ lazy_static = "1.5.0" once_cell = "1.21.3" open = "5.3.3" pnet = "0.35.0" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" diff --git a/iota-storage/Cargo.toml b/iota-storage/Cargo.toml index caf6417..1b4faa6 100644 --- a/iota-storage/Cargo.toml +++ b/iota-storage/Cargo.toml @@ -23,7 +23,7 @@ serde = { version = "1", features = ["derive"] } serde_json = "1" serde_yaml = "0.9" thiserror = "2" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" diff --git a/omikron-connector/Cargo.toml b/omikron-connector/Cargo.toml index 1e3e21d..76f079f 100644 --- a/omikron-connector/Cargo.toml +++ b/omikron-connector/Cargo.toml @@ -24,7 +24,7 @@ tokio-util = { version = "0.7", features = ["rt"] } uuid = { version = "*", features = ["v4"] } base64 = "0.22.1" hex = "*" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } sha2 = "0.11.0" x448 = { version = "*" } diff --git a/other-iota/Cargo.toml b/other-iota/Cargo.toml index a6933c3..27cf265 100644 --- a/other-iota/Cargo.toml +++ b/other-iota/Cargo.toml @@ -38,7 +38,7 @@ lazy_static = "1.5.0" once_cell = "1.21.3" open = "5.3.3" pnet = "0.35.0" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2" diff --git a/web-ui/Cargo.toml b/web-ui/Cargo.toml index 988aac1..8d94570 100644 --- a/web-ui/Cargo.toml +++ b/web-ui/Cargo.toml @@ -38,7 +38,7 @@ lazy_static = "1.5.0" once_cell = "1.21.3" open = "5.3.3" pnet = "0.35.0" -rand = "0.8" +rand = "0.10" rand_core = { version = "0.6", features = ["getrandom", "std"] } ratatui = "0.30.0" reqwest = "0.13.2"