Skip to content

fix: pin rand to 0.10 and use its RngExt trait - #230

Merged
Neclow merged 1 commit into
sbhattlab:mainfrom
Neclow:fix/rand-0.10
Nov 6, 2026
Merged

Neclow merged 1 commit into
sbhattlab:mainfrom
Neclow:fix/rand-0.10

Conversation

@Neclow

@Neclow Neclow commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

rand = "*" resolves to the newest release whenever the lock file is not used, e.g. when phylo2vec is built as a dependency. rand 0.10 moved random_range and the other sampling methods to the RngExt trait, which broke the build.

  • Pin rand = "0.10" and import RngExt where the sampling methods are used.
  • Drop rand from py-phylo2vec, which declared it without using it.

rand = "*" resolves to the newest release whenever this lock file is not
used, e.g. when phylo2vec is built as a dependency. rand 0.10 moved
random_range and the other sampling methods to the RngExt trait, which
broke the build. py-phylo2vec declared rand without using it, so drop it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Neclow
Neclow merged commit 9b191cb into sbhattlab:main Nov 6, 2026
9 checks passed
@Neclow
Neclow deleted the fix/rand-0.10 branch November 6, 2026 17:49
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