Skip to content

Set custom version for vendored crates - #77

Merged
JukkaL merged 2 commits into
mypyc:mainfrom
p-sawicki:vendored-crates-custom-version
Aug 12, 2026
Merged

Set custom version for vendored crates#77
JukkaL merged 2 commits into
mypyc:mainfrom
p-sawicki:vendored-crates-custom-version

Conversation

@p-sawicki

Copy link
Copy Markdown
Contributor

The internal Ruff crates that are now vendored are not versioned which potentially makes bringing ast-serialize as a dependency to projects that already depend on the Ruff crates difficult.

cargo will reject multiple sources for the same version of crates but using the Ruff crates from a different source by ast-serialize, or the other way around - using the crates from ast-serialize by other packages, might not be possible because of incompatibilities between Ruff versions.

To resolve this, use a custom version for the vendored crates: 0.0.0-ast-serialize.0.8.0 so that ast-serialize can always be built using them even if there are other Ruff crates available in project dependencies.

@JukkaL
JukkaL merged commit fc05930 into mypyc:main Aug 12, 2026
25 checks passed
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.

2 participants