commit a5091bcaeb53b4250e24651755a8f44f128bc601
parent 8e3e2d39aa045cde0689b0f8e3174035bcf3a6f3
Author: triesap <tyson@radroots.org>
Date: Fri, 20 Mar 2026 14:35:46 +0000
build: upgrade icondata and getrandom
Diffstat:
5 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
@@ -1072,9 +1072,9 @@ dependencies = [
[[package]]
name = "icondata"
-version = "0.4.0"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "18db9eec46b6c870bf84281dd8065fb207b23a9c1c0cb367c49a919a61a38dec"
+checksum = "412c95f764f89aad1a8505aa4273d931b66d5a26d1e6609a37243784a9128ad9"
dependencies = [
"icondata_core",
"icondata_lu",
@@ -1088,9 +1088,9 @@ checksum = "6c97be924215abd5e630d84e95a47c710138a6559b4c55039f4f33aa897fa859"
[[package]]
name = "icondata_lu"
-version = "0.0.10"
+version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d552c45cc3ab1d1bf88cc0201004eb92418141e5454e9e0e46c4b4a4faf66248"
+checksum = "f25663a6cc5371e9e33c98bab870f4aa2fd68c88853f1467c8fccfaf112782b1"
dependencies = [
"icondata_core",
]
@@ -2027,7 +2027,7 @@ dependencies = [
"base64 0.22.1",
"chrono",
"futures",
- "getrandom 0.2.17",
+ "getrandom 0.4.2",
"hex",
"js-sys",
"radroots-nostr",
@@ -2102,7 +2102,7 @@ version = "0.1.0"
dependencies = [
"base64 0.22.1",
"futures",
- "getrandom 0.2.17",
+ "getrandom 0.4.2",
"gloo-timers",
"js-sys",
"once_cell",
diff --git a/Cargo.toml b/Cargo.toml
@@ -29,13 +29,13 @@ unsafe_code = "forbid"
[workspace.dependencies]
leptos = { version = "0.8.17", default-features = false }
leptos_router = { version = "0.8.12", default-features = false }
-icondata = { version = "0.4", default-features = false, features = ["lucide"] }
+icondata = { version = "0.7", default-features = false, features = ["lucide"] }
wasm-bindgen = "=0.2.114"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
futures = "0.3"
async-trait = "0.1.89"
-getrandom = "0.2"
+getrandom = "0.4"
js-sys = "0.3.91"
gloo-timers = "0.3"
web-sys = { version = "0.3.91", features = [
diff --git a/crates/core/src/crypto/random.rs b/crates/core/src/crypto/random.rs
@@ -19,7 +19,7 @@ fn fill_random_inner(bytes: &mut [u8]) -> Result<(), RadrootsClientCryptoError>
#[cfg(not(target_arch = "wasm32"))]
fn fill_random_inner(bytes: &mut [u8]) -> Result<(), RadrootsClientCryptoError> {
- getrandom::getrandom(bytes).map_err(|_| RadrootsClientCryptoError::CryptoUndefined)
+ getrandom::fill(bytes).map_err(|_| RadrootsClientCryptoError::CryptoUndefined)
}
#[cfg(test)]
diff --git a/crates/ui-components/src/icon.rs b/crates/ui-components/src/icon.rs
@@ -1,6 +1,6 @@
#![forbid(unsafe_code)]
-use icondata::{Icon, LuBeaker, LuChevronRight, LuChevronsUpDown, LuHome, LuPlus, LuSettings};
+use icondata::{Icon, LuBeaker, LuChevronRight, LuChevronsUpDown, LuHouse, LuPlus, LuSettings};
use leptos::prelude::*;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
@@ -44,7 +44,7 @@ pub fn radroots_app_ui_icon_data(key: RadrootsAppUiIconKey) -> Icon {
RadrootsAppUiIconKey::CaretUpDown => LuChevronsUpDown,
RadrootsAppUiIconKey::Plus => LuPlus,
RadrootsAppUiIconKey::Settings => LuSettings,
- RadrootsAppUiIconKey::Home => LuHome,
+ RadrootsAppUiIconKey::Home => LuHouse,
RadrootsAppUiIconKey::Beaker => LuBeaker,
}
}
diff --git a/crates/utils/src/numbers/mod.rs b/crates/utils/src/numbers/mod.rs
@@ -54,7 +54,7 @@ fn random_u64() -> Result<u64, RadrootsAppUtilsError> {
#[cfg(not(target_arch = "wasm32"))]
fn random_u64() -> Result<u64, RadrootsAppUtilsError> {
let mut bytes = [0u8; 8];
- getrandom::getrandom(&mut bytes).map_err(|_| RadrootsAppUtilsError::Unavailable)?;
+ getrandom::fill(&mut bytes).map_err(|_| RadrootsAppUtilsError::Unavailable)?;
Ok(u64::from_le_bytes(bytes))
}