-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): update rust crate rand_core to 0.10 #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,4 +15,4 @@ serde_json = "1" | |
| base64 = "0.22" # 0.5.1 — wallet_hook(privy) needs Basic auth encoding | ||
| urlencoding = "2" # 0.5.1 — wallet_hook(privy) URL-encodes the wallet_id path segment | ||
| p256 = { version = "0.13", features = ["pkcs8", "ecdsa"] } # 0.6.2 — CDP-JWT (ES256) signing | ||
| rand_core = "0.6" # 0.6.2 — nonce randomness for CDP-JWT | ||
| rand_core = "0.10" # 0.6.2 — nonce randomness for CDP-JWT | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Dependency change to the published client is not recorded in the changelog A user-facing dependency requirement of the published Rust client is changed ( Repository rule
Was this helpful? React with 👍 or 👎 to provide feedback.
Comment on lines
15
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔍 No lockfile or CI build for the Rust SDK to catch dependency drift There is no (Refers to lines 12-18) Was this helpful? React with 👍 or 👎 to provide feedback. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔍 No CHANGELOG entry for the dependency change of a published crate
Was this helpful? React with 👍 or 👎 to provide feedback. |
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Rust SDK no longer builds after the random-number library upgrade
The random-number library is upgraded to a version whose randomness source no longer exists (
rand_core = "0.10"atsdk/rust/Cargo.toml:18) while the signing code still asks for that removed source, so the Rust SDK fails to build at all.Impact: Anyone depending on or publishing the Rust client gets a broken package — no requests can be signed or sent.
Removed OsRng/RngCore items in rand_core 0.10 vs. the SDK's usage
sdk/rust/src/lib.rs:22-23doesuse rand_core::{OsRng, RngCore}; OsRng.fill_bytes(&mut nonce_bytes);to build the CDP-JWT nonce. rand_core 0.10 removedOsRng(and theos_rng/getrandomsupport) entirely and renamedRngCoretoRng, so both imports resolve to nothing. Additionally,p256 = "0.13"(sdk/rust/Cargo.toml:17) is built against the rand_core 0.6 trait family, so even after fixing the import the two crates would not share RNG traits. Either keeprand_core = "0.6"(matching the accompanying comment and p256 0.13), or migrate the nonce generation togetrandom/randand upgrade p256 accordingly.Was this helpful? React with 👍 or 👎 to provide feedback.