lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

commit bcff16549efd1441437fd17c35d9de45c5a1158a
parent bfcaeadefd0c8837784a60d2676a2c33164e3802
Author: triesap <tyson@radroots.org>
Date:   Sun, 18 Jan 2026 21:28:54 +0000

build: bump refs toolchain to 1.92.0


- set refs/crates rust-toolchain channel to 1.92.0 and add wasm target
- update refs/crates workspace rust-version to 1.92.0
- switch nostr deps to crates.io versions with matching features
- drop unsupported os-rng feature to unblock nostr resolution

Diffstat:
MCargo.lock | 56++++++++++++++++++++++++++++++++++++++++++--------------
MCargo.toml | 8++++----
Midentity/Cargo.toml | 2+-
Mnostr/Cargo.toml | 3+--
Mpnpm-lock.yaml | 2+-
Mrust-toolchain.toml | 3++-
6 files changed, 51 insertions(+), 23 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock @@ -319,12 +319,6 @@ dependencies = [ ] [[package]] -name = "btreecap" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6160c957d8aa33d0a8ba1dbab98e3cb57023ad9374c501441e88559f99e6c4c9" - -[[package]] name = "bumpalo" version = "3.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -553,6 +547,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ "generic-array", + "rand_core 0.6.4", "typenum", ] @@ -1161,6 +1156,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" dependencies = [ "cfg-if", + "js-sys", + "wasm-bindgen", + "web-sys", ] [[package]] @@ -1355,7 +1353,9 @@ dependencies = [ [[package]] name = "nostr" -version = "0.44.1" +version = "0.44.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3aa5e3b6a278ed061835fe1ee293b71641e6bf8b401cfe4e1834bbf4ef0a34e1" dependencies = [ "aes", "base64 0.22.1", @@ -1365,10 +1365,9 @@ dependencies = [ "cbc", "chacha20", "chacha20poly1305", + "getrandom 0.2.16", "hex", "instant", - "once_cell", - "rand", "scrypt", "secp256k1", "serde", @@ -1380,8 +1379,9 @@ dependencies = [ [[package]] name = "nostr-database" version = "0.44.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7462c9d8ae5ef6a28d66a192d399ad2530f1f2130b13186296dbb11bdef5b3d1" dependencies = [ - "btreecap", "lru", "nostr", "tokio", @@ -1390,6 +1390,8 @@ dependencies = [ [[package]] name = "nostr-gossip" version = "0.44.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ade30de16869618919c6b5efc8258f47b654a98b51541eb77f85e8ec5e3c83a6" dependencies = [ "nostr", ] @@ -1397,6 +1399,8 @@ dependencies = [ [[package]] name = "nostr-relay-pool" version = "0.44.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b1073ccfbaea5549fb914a9d52c68dab2aecda61535e5143dd73e95445a804b" dependencies = [ "async-utility", "async-wsocket", @@ -1413,6 +1417,8 @@ dependencies = [ [[package]] name = "nostr-sdk" version = "0.44.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "471732576710e779b64f04c55e3f8b5292f865fea228436daf19694f0bf70393" dependencies = [ "async-utility", "nostr", @@ -1665,7 +1671,7 @@ dependencies = [ "bytes", "getrandom 0.3.3", "lru-slab", - "rand", + "rand 0.9.2", "ring", "rustc-hash", "rustls", @@ -1978,16 +1984,37 @@ dependencies = [ [[package]] name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" dependencies = [ - "rand_chacha", + "rand_chacha 0.9.0", "rand_core 0.9.3", ] [[package]] name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" @@ -2286,6 +2313,7 @@ version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9465315bc9d4566e1724f0fffcbcc446268cb522e60f9a27bcded6b19c108113" dependencies = [ + "rand 0.8.5", "secp256k1-sys", "serde", ] @@ -2899,7 +2927,7 @@ dependencies = [ "http", "httparse", "log", - "rand", + "rand 0.9.2", "rustls", "rustls-pki-types", "sha1", @@ -3016,7 +3044,7 @@ checksum = "f33196643e165781c20a5ead5582283a7dacbb87855d867fbc2df3f81eddc1be" dependencies = [ "getrandom 0.3.3", "js-sys", - "rand", + "rand 0.9.2", "wasm-bindgen", ] diff --git a/Cargo.toml b/Cargo.toml @@ -27,7 +27,7 @@ resolver = "2" [workspace.package] version = "0.1.0" edition = "2024" -rust-version = "1.88.0" +rust-version = "1.92.0" license = "AGPL-3.0" [workspace.dependencies] @@ -62,9 +62,9 @@ directories = { version = "6" } futures = { version = "0.3" } hex = { version = "0.4" } js-sys = { version = "0.3" } -nostr = { version = "0.44.1", path = "../refs/rust-nostr/crates/nostr" } -nostr-relay-pool = { version = "0.44.0", path = "../refs/rust-nostr/crates/nostr-relay-pool" } -nostr-sdk = { version = "0.44.1", path = "../refs/rust-nostr/crates/nostr-sdk" } +nostr = { version = "0.44.2" } +nostr-relay-pool = { version = "0.44.0" } +nostr-sdk = { version = "0.44.1" } num_cpus = { version = "1.17.0" } secrecy = { version = "0.10.3" } serde = { version = "1", default-features = false, features = ["derive"] } diff --git a/identity/Cargo.toml b/identity/Cargo.toml @@ -15,7 +15,7 @@ ts-rs = ["dep:ts-rs"] [dependencies] radroots-runtime = { workspace = true, optional = true } radroots-events = { workspace = true, default-features = false, features = ["serde"] } -nostr = { workspace = true, features = ["os-rng"] } +nostr = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } thiserror = { workspace = true } diff --git a/nostr/Cargo.toml b/nostr/Cargo.toml @@ -9,12 +9,11 @@ license.workspace = true [features] default = ["std"] std = [] -os-rng = ["nostr/os-rng"] client = ["std", "dep:nostr-sdk", "dep:radroots-identity"] codec = ["dep:radroots-events", "dep:radroots-events-codec", "radroots-events-codec/nostr"] events = ["dep:radroots-events", "radroots-events/std", "radroots-events/serde"] http = ["dep:reqwest"] -nip17 = ["std", "codec", "nostr/nip44", "nostr/nip59", "nostr/os-rng"] +nip17 = ["std", "codec", "nostr/nip44", "nostr/nip59"] [dependencies] radroots-events = { workspace = true, optional = true, default-features = false } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml @@ -68,7 +68,7 @@ importers: specifier: ^3.15.0 version: 3.15.0 - tangle-schema/bindings/ts: + tangle-db-schema/bindings/ts: dependencies: '@radroots/types-bindings': specifier: workspace:* diff --git a/rust-toolchain.toml b/rust-toolchain.toml @@ -1,2 +1,3 @@ [toolchain] -channel = "1.88.0" +channel = "1.92.0" +targets = ["wasm32-unknown-unknown"]