Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 49 additions & 14 deletions Cargo.lock

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

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ test-util = ["mockall"]
[dependencies]
async-trait = { version = "0.1" }
bytes = { version = "1.10" }
mediatype = "0.19"
mediatype = "0.20"
mockall = { version = "0.13", optional = true }
protobuf = { version = "3.7.2", features = ["with-bytes"] }
rand = { version = "0.8.0" }
rand = { version = "0.9" }
thiserror = { version = "1.0.69", optional = true }
tokio = { version = "1.44", default-features = false, optional = true }
tracing = { version = "0.1", default-features = false, features = ["log", "std"] }
Expand All @@ -62,10 +62,10 @@ protoc-bin-vendored = { version = "3.1" }
[dev-dependencies]
clap = { version = "4.5.40" }
cucumber = { version = "0.21.1", features = ["output-junit"] }
hex = { version = "0.4" }
mockall = { version = "0.13" }
test-case = { version = "3.3" }
tokio = { version = "1.44", default-features = false, features = [
hex = { version = "0.4.3" }
mockall = { version = "0.13.1" }
test-case = { version = "3.3.1" }
tokio = { version = "1.44.2", default-features = false, features = [
"macros",
"rt",
"rt-multi-thread",
Expand Down
11 changes: 3 additions & 8 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,16 @@
[licenses]
allow = ["Apache-2.0", "MIT"]
private = { ignore = true }
exceptions = [
{ name = "unicode-ident", allow = [
"Unicode-3.0",
] },
]
exceptions = [{ name = "unicode-ident", allow = ["Unicode-3.0"] }]
unused-allowed-license = "deny"

[bans]
multiple-versions = "deny"
wildcards = "deny"
skip-tree = [
{ crate = "protobuf-codegen", reason = "this is only needed/used during the build process" },
{ crate = "windows-sys", reason = "a foundational crate for many that bumps far too frequently to ever have a shared version" },
]

[advisories]
ignore = [
{ id = "RUSTSEC-2025-0023", reason = "this crate does not use tokio::sync::broadcast" }
]
ignore = [{ id = "RUSTSEC-2025-0023", reason = "this crate does not use tokio::sync::broadcast" }]
4 changes: 2 additions & 2 deletions src/uuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ impl UUID {
// fill upper 48 bits with timestamp
let mut msb = (timestamp_millis << 16).to_be_bytes();
// fill remaining bits with random bits
rand::thread_rng().fill_bytes(&mut msb[6..]);
rand::rng().fill_bytes(&mut msb[6..]);
// set version (7)
msb[6] = msb[6] & 0b00001111 | 0b01110000;

let mut lsb = [0u8; 8];
// fill lsb with random bits
rand::thread_rng().fill_bytes(&mut lsb);
rand::rng().fill_bytes(&mut lsb);
// set variant (RFC4122)
lsb[0] = lsb[0] & 0b00111111 | 0b10000000;
Self::from_bytes_unchecked(msb, lsb)
Expand Down