Title: Organize our rust code into `crates/` directory · Issue #6214 · RustPython/RustPython · GitHub
Open Graph Title: Organize our rust code into `crates/` directory · Issue #6214 · RustPython/RustPython
X Title: Organize our rust code into `crates/` directory · Issue #6214 · RustPython/RustPython
Description: All of our current crates are scattered in the top level of the repository, it's not very intuitive for newcomers to look at the code and know that common directory is for shared rust code, and that wtf8 is also a crate for example. I pr...
Open Graph Description: All of our current crates are scattered in the top level of the repository, it's not very intuitive for newcomers to look at the code and know that common directory is for shared rust code, and tha...
X Description: All of our current crates are scattered in the top level of the repository, it's not very intuitive for newcomers to look at the code and know that common directory is for shared rust code, and...
Opengraph URL: https://github.com/RustPython/RustPython/issues/6214
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Organize our rust code into `crates/` directory","articleBody":"All of our current crates are scattered in the top level of the repository, it's not very intuitive for newcomers to look at the code and know that `common` directory is for shared rust code, and that `wtf8` is also a crate for example.\n\nI propose that we create a new directory called `crates` where we will have the following:\n\n- [ ] `common` -\u003e `crates/common` #6256 \n- [ ] `compiler/core` -\u003e `crates/compiler-core` #6258\n- [ ] `compiler/codegen` -\u003e `crates/codegen` #6260 \n- [ ] `compiler/literal` -\u003e `crates/literal` #6259\n- [ ] `compiler/source` -\u003e `crates/compiler-source` #6261\n- [ ] `compiler/src` -\u003e `crates/compiler` #6270\n- [ ] `derive` -\u003e `crates/derive` #6264\n- [ ] `derive-impl` -\u003e `crates/derive-impl` #6263\n- [ ] `jit` -\u003e `crates/jit` #6262\n- [ ] `pylib` -\u003e `crates/pylib` #6225 \n- [ ] `stdlib` -\u003e `crates/stdlib` #6268\n- [ ] `vm/sre_engine` -\u003e `crates/sre_engine` #6265\n- [ ] `vm` -\u003e `crates/vm` #6269\n- [ ] `wasm/lib` -\u003e `crates/wasm` #6280\n- [ ] `wtf8` -\u003e `crates/wtf8` #6257 \n- [ ] `src` -\u003e `crates/rustpyton`\n\nI think it be better if we do those changes with many smaller PRs as not all of them would require changes to the CI, or any other changes. while minimizing the merge conflicts frequencies while we are in this transition.\n\nFor project examples that uses this workspace structure you can see:\n\n- https://github.com/astral-sh/ruff\n- https://github.com/bevyengine/bevy","author":{"url":"https://github.com/ShaharNaveh","@type":"Person","name":"ShaharNaveh"},"datePublished":"2025-10-24T10:42:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/6214/RustPython/issues/6214"}
| 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:24c684b1-2e97-d9a1-984d-61669a237284 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BFC2:D449A:15DF10E:1C57F90:696B21E9 |
| html-safe-nonce | 3b8cfcba303bff66b342e74c1ab01ea10dd6c028afde9c181c5c2e8d90b59290 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkMyOkQ0NDlBOjE1REYxMEU6MUM1N0Y5MDo2OTZCMjFFOSIsInZpc2l0b3JfaWQiOiIyNDAwNjE1Njk5MjA2MzE2NTIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 99da617f5d02200a43333634b0fd5354b6f7e360636c6c2fc3d12b985bd8c237 |
| hovercard-subject-tag | issue:3548794059 |
| 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/6214/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0709a357433cbd65fac4113c2567efe88ba90fca9d1e677da8df18a6bdea8d92/RustPython/RustPython/issues/6214 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0709a357433cbd65fac4113c2567efe88ba90fca9d1e677da8df18a6bdea8d92/RustPython/RustPython/issues/6214 |
| og:image:alt | All of our current crates are scattered in the top level of the repository, it's not very intuitive for newcomers to look at the code and know that common directory is for shared rust code, and tha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ShaharNaveh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width