René's URL Explorer Experiment


Title: `#[newtype_oparg]` derive macro by ShaharNaveh · Pull Request #7489 · RustPython/RustPython · GitHub

Open Graph Title: `#[newtype_oparg]` derive macro by ShaharNaveh · Pull Request #7489 · RustPython/RustPython

X Title: `#[newtype_oparg]` derive macro by ShaharNaveh · Pull Request #7489 · RustPython/RustPython

Description: Reason for creating a new crate for this is because rustpython-derive-impl has rustpython-compiler as a dependency, so it created a circular dependency:/ Summary by CodeRabbit New Features Added a procedural-macro crate to generate enum/newtype boilerplate. Refactor Converted many opcode/newtype declarations to use the new macro-driven approach, standardizing displays and conversions and reducing manual boilerplate. Bug Fixes Fixed parsing of containment-related bytecode arguments to preserve full argument width. Chores Added workspace dependency to enable the new macro crate.

Open Graph Description: Reason for creating a new crate for this is because rustpython-derive-impl has rustpython-compiler as a dependency, so it created a circular dependency:/ Summary by CodeRabbit New Features Adde...

X Description: Reason for creating a new crate for this is because rustpython-derive-impl has rustpython-compiler as a dependency, so it created a circular dependency:/ Summary by CodeRabbit New Features Adde...

Opengraph URL: https://github.com/RustPython/RustPython/pull/7489

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f7be20d5-5d46-aea1-6b3c-949e7fd516f4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9630:28D69A:7D7F36:A5E3E2:6A5B9E4A
html-safe-noncea304230d7846fbfbd029c67cede6b7b601abc08d570c062f61d7116f90e7d716
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjMwOjI4RDY5QTo3RDdGMzY6QTVFM0UyOjZBNUI5RTRBIiwidmlzaXRvcl9pZCI6IjY4NTY4MTA5MzA3MzMwMzA5ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4be18717b4ff52c5842fc135cbaa74168758c42aa8f07de090ec785952a7ff95
hovercard-subject-tagpull_request:3435962018
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/7489/files
twitter:imagehttps://avatars.githubusercontent.com/u/50263213?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/50263213?s=400&v=4
og:image:altReason for creating a new crate for this is because rustpython-derive-impl has rustpython-compiler as a dependency, so it created a circular dependency:/ Summary by CodeRabbit New Features Adde...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/7489/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F7489%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F7489%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/7489/files
Reloadhttps://github.com/RustPython/RustPython/pull/7489/files
Reloadhttps://github.com/RustPython/RustPython/pull/7489/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7489/files
RustPython https://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Notifications https://github.com/login?return_to=%2FRustPython%2FRustPython
Fork 1.5k https://github.com/login?return_to=%2FRustPython%2FRustPython
Star 22.2k https://github.com/login?return_to=%2FRustPython%2FRustPython
Code https://github.com/RustPython/RustPython
Issues 291 https://github.com/RustPython/RustPython/issues
Pull requests 105 https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects https://github.com/RustPython/RustPython/projects
Models https://github.com/RustPython/RustPython/models
Wiki https://github.com/RustPython/RustPython/wiki
Security and quality 0 https://github.com/RustPython/RustPython/security
Insights https://github.com/RustPython/RustPython/pulse
Code https://github.com/RustPython/RustPython
Issues https://github.com/RustPython/RustPython/issues
Pull requests https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects https://github.com/RustPython/RustPython/projects
Models https://github.com/RustPython/RustPython/models
Wiki https://github.com/RustPython/RustPython/wiki
Security and quality https://github.com/RustPython/RustPython/security
Insights https://github.com/RustPython/RustPython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
ShaharNavehhttps://github.com/ShaharNaveh
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
ShaharNaveh:macro-newtype-oparghttps://github.com/ShaharNaveh/RustPython/tree/macro-newtype-oparg
Conversation 26 https://github.com/RustPython/RustPython/pull/7489
Commits 14 https://github.com/RustPython/RustPython/pull/7489/commits
Checks 17 https://github.com/RustPython/RustPython/pull/7489/checks
Files changed https://github.com/RustPython/RustPython/pull/7489/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7489/files
#[newtype_oparg] derive macro https://github.com/RustPython/RustPython/pull/7489/files#top
Show all changes 14 commits https://github.com/RustPython/RustPython/pull/7489/files
e599382 Basic struct support ShaharNaveh Mar 19, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/e599382ac4b50d4f98e76b86dc0b345c96370e88
b60f972 Base enum support ShaharNaveh Mar 23, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/b60f97249df025eab9ab06119c61f9a62c585c44
936a079 Modify code for new macro ShaharNaveh Mar 23, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/936a0791d9b718dc49f17318596d447b1156720f
94d66dd No need for full feature ShaharNaveh Mar 23, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/94d66dd1550f702b347afb56eaee62e7ffae5403
f5c2f9b Remove debug code ShaharNaveh Mar 23, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/f5c2f9b4f0291b14dc37f2361fc9f61b81cc37e5
9fbc6d3 Impl hash ShaharNaveh Mar 23, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/9fbc6d30e9e7bfcd62a20507fad9f3736d2b8b7e
49d2fb6 Merge remote-tracking branch 'upstream/main' into macro-newtype-oparg ShaharNaveh Mar 24, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/49d2fb6cbf76ce7a24ad7576096f60977d3cc0b7
f7b11b6 syn full feature ShaharNaveh Mar 24, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/f7b11b65d0d1e92c84e27f1dc4754ee58f8937e0
f21d855 Remove unwrap ShaharNaveh Mar 24, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/f21d855f77e1cdfbfe6c0f7ad0532f74ee2d638c
77eae15 Use `TryFrom` ShaharNaveh Mar 24, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/77eae154111f8174dcbb9b3ae79870f3304a7252
4d6c725 Convert `ConvertValueOparg` to new macro ShaharNaveh Mar 24, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/4d6c72573553bff1761d343b41318f02e1ee9990
c702fbe Fix bug where `catch_all` is not the last element ShaharNaveh Mar 24, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/c702fbefb9c7e396d39d03c627057a57fc5dccf8
796b61c Don't match on 255 ShaharNaveh Mar 24, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/796b61c955701a55f9a6f8ad2b85d0ce6d462def
9691476 Validate `catch_all` variant drfinition ShaharNaveh Mar 24, 2026 https://github.com/RustPython/RustPython/pull/7489/commits/9691476d2ee059d4f61993e44cff18ecd1c08f58
Clear filters https://github.com/RustPython/RustPython/pull/7489/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7489/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7489/files
Cargo.lock https://github.com/RustPython/RustPython/pull/7489/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
Cargo.toml https://github.com/RustPython/RustPython/pull/7489/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
Cargo.toml https://github.com/RustPython/RustPython/pull/7489/files#diff-1fe804900faa12cec55c1e33bc78586f6e99da40d949d59a72e9a92f18e3c093
oparg.rs https://github.com/RustPython/RustPython/pull/7489/files#diff-4046b0673a11dc9e3309fe8759e2ce2981cd9881b6ce60d6b52280e5e1777d09
Cargo.toml https://github.com/RustPython/RustPython/pull/7489/files#diff-e38f329f4be3e9402b375a6c11efbbe307fb87d2f4334658dd01b311148306f5
lib.rs https://github.com/RustPython/RustPython/pull/7489/files#diff-974a456d61886f1ba25a8069f2a1da28542b7f887c447eab1b4bfde741f461e6
newtype_oparg.rs https://github.com/RustPython/RustPython/pull/7489/files#diff-a63b20672b6e405531a9cc15b10b4000926653a01263eca5c19b67faacb8a3d5
frame.rs https://github.com/RustPython/RustPython/pull/7489/files#diff-03f2741d7d424014f3d2f0c82226be52fa58134aab34bf0780714ee67a248deb
other.rs https://github.com/RustPython/RustPython/pull/7489/files#diff-806d220bd2c455ce464196b7e94cc3ebca24c9c18456f488e5bc47b8250eae01
Cargo.lockhttps://github.com/RustPython/RustPython/pull/7489/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
View file https://github.com/ShaharNaveh/RustPython/blob/9691476d2ee059d4f61993e44cff18ecd1c08f58/Cargo.lock
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7489/files
Cargo.tomlhttps://github.com/RustPython/RustPython/pull/7489/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
View file https://github.com/ShaharNaveh/RustPython/blob/9691476d2ee059d4f61993e44cff18ecd1c08f58/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/7489/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/7489/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
https://github.com/RustPython/RustPython/pull/7489/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
crates/compiler-core/Cargo.tomlhttps://github.com/RustPython/RustPython/pull/7489/files#diff-1fe804900faa12cec55c1e33bc78586f6e99da40d949d59a72e9a92f18e3c093
View file https://github.com/ShaharNaveh/RustPython/blob/9691476d2ee059d4f61993e44cff18ecd1c08f58/crates/compiler-core/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/7489/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/7489/files#diff-1fe804900faa12cec55c1e33bc78586f6e99da40d949d59a72e9a92f18e3c093
https://github.com/RustPython/RustPython/pull/7489/files#diff-1fe804900faa12cec55c1e33bc78586f6e99da40d949d59a72e9a92f18e3c093
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7489/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7489/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.