Skip to content

Commit

Permalink
upgrade comrak, getrandom, rand
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Jan 31, 2025
1 parent 3663966 commit 4f59e68
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 11 deletions.
65 changes: 58 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ docsrs-metadata = { path = "crates/metadata" }
anyhow = { version = "1.0.42", features = ["backtrace"]}
backtrace = "0.3.61"
thiserror = "2.0.3"
comrak = { version = "0.34.0", default-features = false }
comrak = { version = "0.35.0", default-features = false }
syntect = { version = "5.0.0", default-features = false, features = ["parsing", "html", "dump-load", "regex-onig"] }
toml = "0.8.0"
prometheus = { version = "0.13.0", default-features = false }
Expand All @@ -55,7 +55,7 @@ dashmap = "6.0.0"
string_cache = "0.8.0"
zip = {version = "2.2.0", default-features = false, features = ["bzip2"]}
bzip2 = "0.5.0"
getrandom = "0.2.1"
getrandom = "0.3.1"
itertools = { version = "0.14.0" }
rusqlite = { version = "0.32.1", features = ["bundled"] }
hex = "0.4.3"
Expand Down Expand Up @@ -110,7 +110,7 @@ criterion = "0.5.1"
kuchikiki = "0.8"
http02 = { version = "0.2.11", package = "http"}
http-body-util = "0.1.0"
rand = "0.8"
rand = "0.9"
mockito = "1.0.2"
test-case = "3.0.0"
tower = { version = "0.5.1", features = ["util"] }
Expand Down
2 changes: 1 addition & 1 deletion src/web/csp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl Csp {
// Nonces need to be different for each single request in order to maintain security, so we
// generate a new one with a cryptographically-secure generator for each request.
let mut random = [0u8; 36];
getrandom::getrandom(&mut random).expect("failed to generate a nonce");
getrandom::fill(&mut random).expect("failed to generate a nonce");

Self {
nonce: b64.encode(random),
Expand Down

0 comments on commit 4f59e68

Please sign in to comment.