Skip to content

chore(deps): update rust crate num-prime to 0.7.0 - #15263

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/num-prime-0.x
Closed

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/num-prime-0.x

Conversation

@renovate

@renovate renovate Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
num-prime workspace.dependencies minor 0.6.0 → 0.7.0

Release Notes

uutils/num-prime (num-prime)

v0.7.0

Compare Source

What's Changed

# Dependencies

New Contributors

Full Changelog: uutils/num-prime@v0.6.1...v0.7.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@codspeed

codspeed Bot commented Oct 12, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 52.07%

⚠️ 32 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 5 improved benchmarks
✅ 44 untouched benchmarks
⏩ 406 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ file_tz_abbreviations 35.4 ms 18.8 ms +87.73%
⚡ file_custom_format 30 ms 17.3 ms +73.37%
⚡ file_iso_dates 31.5 ms 19 ms +66.19%
⚡ file_localized_names 41.9 ms 29.4 ms +42.75%
⚡ ⚠️ complex_relative_date 292.4 µs 277.7 µs +5.31%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing renovate/num-prime-0.x (d23d393) with main (99e8fbe)2

Open in CodSpeed

Footnotes

  1. 406 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (edea82f) during the generation of this report, so 99e8fbe was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@xtqqczze

xtqqczze commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

num-modular v0.6.6 had a breaking change (cmpute/num-modular#16):

  error[E0277]: the trait bound `for<'r, 'r> &'r BigUint: ModularUnaryOps<&'r BigUint>` is not satisfied
     --> /home/tester/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/num-prime-0.7.0/src/rand.rs:190:25
      |
  190 |             if is_prime(&t, config).probably() {
      |                -------- ^^ the trait `for<'r, 'r> ModularUnaryOps<&'r BigUint>` is not implemented for `&'r BigUint`
      |                |
      |                required by a bound introduced by this call
      |
      = help: the following other types implement trait `ModularUnaryOps<Modulus>`:
                `&Mint<T, R>` implements `ModularUnaryOps<&Mint<T, R>>`
                `&num_bigint::biguint::BigUint` implements `ModularUnaryOps<&num_bigint::biguint::BigUint>`
                `&u128` implements `ModularUnaryOps<&u128>`
                `&u16` implements `ModularUnaryOps<&u16>`
                `&u32` implements `ModularUnaryOps<&u32>`
                `&u64` implements `ModularUnaryOps<&u64>`
                `&u8` implements `ModularUnaryOps<&u8>`
                `&usize` implements `ModularUnaryOps<&usize>`
              and 8 others
      = note: there are multiple different versions of crate `num_bigint` in the dependency graph
      = help: you can use `cargo tree` to explore your dependency tree
  note: required for `&'r BigUint` to implement `for<'r> PrimalityRefBase<BigUint>`
     --> /home/tester/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/num-prime-0.7.0/src/primality.rs:381:15
      |
  381 | impl<T, Base> PrimalityRefBase<Base> for T where
      |               ^^^^^^^^^^^^^^^^^^^^^^     ^
  ...
  384 |         + for<'r> ModularUnaryOps<&'r Base, Output = Base>
      |           ------------------------------------------------ unsatisfied trait bound introduced here
  note: required by a bound in `is_prime`
     --> /home/tester/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/num-prime-0.7.0/src/nt_funcs.rs:607:20
      |
  605 | pub fn is_prime<T: PrimalityBase>(target: &T, config: Option<PrimalityTestConfig>) -> Primality
      |        -------- required by a bound in this function
  606 | where
  607 |     for<'r> &'r T: PrimalityRefBase<T>,
      |                    ^^^^^^^^^^^^^^^^^^^ required by this bound in `is_prime`

@renovate
renovate Bot force-pushed the renovate/num-prime-0.x branch from d23d393 to b60c8fb Compare October 13, 2026 11:56
@xtqqczze

Copy link
Copy Markdown
Collaborator

@sylvestre num-modular v0.6.6 was yanked, needs to be rebased

@renovate
renovate Bot deleted the renovate/num-prime-0.x branch October 17, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant