Skip to content

Commit

Permalink
Merge #1334: Update dependencies
Browse files Browse the repository at this point in the history
5da4103 chore(deps): udpate dependencies (Jose Celano)

Pull request description:

  Update dependencies:

  ```
  cargo update
      Updating crates.io index
       Locking 24 packages to latest compatible versions
      Updating async-compression v0.4.18 -> v0.4.19
      Updating cc v1.2.14 -> v1.2.15
      Updating chrono v0.4.39 -> v0.4.40
      Updating clap v4.5.30 -> v4.5.31
      Updating clap_builder v4.5.30 -> v4.5.31
      Updating either v1.13.0 -> v1.14.0
      Updating flate2 v1.0.35 -> v1.1.0
      Updating inout v0.1.3 -> v0.1.4
      Updating libc v0.2.169 -> v0.2.170
      Updating litemap v0.7.4 -> v0.7.5
      Updating log v0.4.25 -> v0.4.26
      Updating miniz_oxide v0.8.4 -> v0.8.5
      Updating pem v3.0.4 -> v3.0.5
      Updating portable-atomic v1.10.0 -> v1.11.0
      Updating rand_core v0.9.1 -> v0.9.2
      Updating redox_syscall v0.5.8 -> v0.5.9
      Updating ring v0.17.9 -> v0.17.11
      Updating uuid v1.13.2 -> v1.15.1
        Adding windows-link v0.1.0
      Updating zerofrom v0.1.5 -> v0.1.6
      Updating zerofrom-derive v0.1.5 -> v0.1.6
      Updating zstd v0.13.2 -> v0.13.3
      Updating zstd-safe v7.2.1 -> v7.2.3
      Updating zstd-sys v2.0.13+zstd.1.5.6 -> v2.0.14+zstd.1.5.7
  ```

ACKs for top commit:
  josecelano:
    ACK 5da4103

Tree-SHA512: 1e1aa9e0f6bd2c8feac82e24390a4bbe94a759877406abfd2368b7c5dbfdae0e5e2bdc7c239cca2543ebb1f497f82acc2ddb726b43bd90e096dd3ad3c5729155
  • Loading branch information
josecelano committed Feb 28, 2025
2 parents 605eb3f + 5da4103 commit 1f69e02
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 60 deletions.
115 changes: 60 additions & 55 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions packages/axum-http-tracker-server/tests/common/fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ pub fn invalid_info_hashes() -> Vec<String> {

/// Returns a random info hash.
pub fn random_info_hash() -> InfoHash {
let mut rng = rand::thread_rng();
let random_bytes: [u8; 20] = rng.gen();
let mut rng = rand::rng();
let random_bytes: [u8; 20] = rng.random();

InfoHash::from_bytes(&random_bytes)
}
6 changes: 3 additions & 3 deletions packages/udp-tracker-server/tests/common/fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ use rand::prelude::*;

/// Returns a random info hash.
pub fn random_info_hash() -> InfoHash {
let mut rng = rand::thread_rng();
let random_bytes: [u8; 20] = rng.gen();
let mut rng = rand::rng();
let random_bytes: [u8; 20] = rng.random();

InfoHash::from_bytes(&random_bytes)
}

/// Returns a random transaction id.
pub fn random_transaction_id() -> TransactionId {
let random_value = rand::thread_rng().gen();
let random_value = rand::rng().random();
TransactionId::new(random_value)
}

0 comments on commit 1f69e02

Please sign in to comment.