Title: rustpython-codegen 0.6.0 fails to compile against rustpython-ruff_python_ast 0.16.10 · Issue #9863 · RustPython/RustPython · GitHub
Open Graph Title: rustpython-codegen 0.6.0 fails to compile against rustpython-ruff_python_ast 0.16.10 · Issue #9863 · RustPython/RustPython
X Title: rustpython-codegen 0.6.0 fails to compile against rustpython-ruff_python_ast 0.16.10 · Issue #9863 · RustPython/RustPython
Description: A new project whose only dependency is the published rustpython-stdlib 0.6.0 fails to compile in rustpython-codegen 0.6.0. It requires rustpython-ruff_python_ast ^0.16.5, so a fresh resolve (no lock file) picks 0.16.10, which renamed Exp...
Open Graph Description: A new project whose only dependency is the published rustpython-stdlib 0.6.0 fails to compile in rustpython-codegen 0.6.0. It requires rustpython-ruff_python_ast ^0.16.5, so a fresh resolve (no loc...
X Description: A new project whose only dependency is the published rustpython-stdlib 0.6.0 fails to compile in rustpython-codegen 0.6.0. It requires rustpython-ruff_python_ast ^0.16.5, so a fresh resolve (no loc...
Opengraph URL: https://github.com/RustPython/RustPython/issues/9863
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"rustpython-codegen 0.6.0 fails to compile against rustpython-ruff_python_ast 0.16.10","articleBody":"A new project whose only dependency is the published `rustpython-stdlib` 0.6.0 fails to compile in `rustpython-codegen` 0.6.0. It requires `rustpython-ruff_python_ast ^0.16.5`, so a fresh resolve (no lock file) picks 0.16.10, which renamed `ExprCompare` fields:\n\n```\nerror[E0026]: struct `ruff_python_ast::ExprCompare` does not have fields named `left`, `comparators`\n --> rustpython-codegen-0.6.0/src/compile.rs:8608:17\n |\n8608 | left,\n | ^^^^\n8609 | ops,\n8610 | comparators,\n | ^^^^^^^^^^^ struct `ruff_python_ast::ExprCompare` does not have these fields\n```\n\n(10 errors in `rustpython-codegen`.)\n\n## Repro\n\n```sh\ncargo new hello && cd hello\ncargo add rustpython-stdlib@=0.6.0\ncargo build\n```\n\nPinning the fork crates to `=0.16.5` gets past it:\n\n```sh\nfor c in rustpython-ruff_python_ast rustpython-ruff_python_parser rustpython-ruff_python_trivia rustpython-ruff_source_file rustpython-ruff_text_size; do cargo add \"$c@=0.16.5\"; done\n```\n\n(The build then hits a separate `malachite-bigint` problem, tracked in RustPython/pymath#22.)\n\n## Possible fixes\n\n- A `rustpython-codegen` 0.6.x release that requires `=0.16.5`, or that compiles against 0.16.10.\n- Keeping the ruff fork's patch releases API-compatible.\n- For future releases, exact `=` requirements on the ruff fork crates, so a fork release can't break published RustPython releases.\n","author":{"url":"https://github.com/sarayev","@type":"Person","name":"sarayev"},"datePublished":"2026-11-15T21:23:48Z","url":"https://github.com/RustPython/RustPython/issues/9863"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5e9bf1f8-66ee-67f8-6a8f-db10f2d2b009 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C544:158DF1:EE0BF6:13A87A8:6B01D40C |
| html-safe-nonce | 2eaa03f23ac5a5c9dd50ba15a7fb15f696d6429a20478fc7b57d2e3bd6102e87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTQ0OjE1OERGMTpFRTBCRjY6MTNBODdBODo2QjAxRDQwQyIsInZpc2l0b3JfaWQiOiIyMTU5NDg5ODM1NzM0MjU4NzAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 99f85fc82895db4d7a2aa49ee0d3a871da9e8c795f8b70c82bde0fb91ae10617 |
| hovercard-subject-tag | issue:6409691587 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RustPython/RustPython/9863/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b9c638d657cac1a92451492aeac87abf00d351ecd1b4c992ed628cde4da764ce/RustPython/RustPython/issues/9863 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b9c638d657cac1a92451492aeac87abf00d351ecd1b4c992ed628cde4da764ce/RustPython/RustPython/issues/9863 |
| og:image:alt | A new project whose only dependency is the published rustpython-stdlib 0.6.0 fails to compile in rustpython-codegen 0.6.0. It requires rustpython-ruff_python_ast ^0.16.5, so a fresh resolve (no loc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sarayev |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width