Skip to content

Commit

Permalink
Merge pull request #119 from pinkforest/fix-no_std
Browse files Browse the repository at this point in the history
Fix `no std` by moving `get_random` feat dev-deps
  • Loading branch information
tarcieri committed Mar 21, 2023
2 parents 0e73cb8 + 5080b42 commit 6aabb9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ features = ["reusable_secrets", "serde"]

[dependencies]
curve25519-dalek = { version = "4.0.0-rc.0", default-features = false }
rand_core = { version = "0.6", default-features = false, features = ["getrandom"] }
rand_core = { version = "0.6", default-features = false }
serde = { version = "1", default-features = false, optional = true, features = ["derive"] }
zeroize = { version = "1", default-features = false, optional = true, features = ["zeroize_derive"] }

[dev-dependencies]
bincode = "1"
criterion = "0.3.0"
rand_core = { version = "0.6", default-features = false, features = ["getrandom"] }

[[bench]]
name = "x25519"
Expand Down
2 changes: 1 addition & 1 deletion src/x25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ impl AsRef<[u8]> for SharedSecret {
/// cannot use the better, safer, and faster ephemeral DH API.
///
/// # Example
/// ```
/// ```rust
/// use rand_core::OsRng;
/// use rand_core::RngCore;
///
Expand Down

0 comments on commit 6aabb9b

Please sign in to comment.