René's URL Explorer Experiment


Title: Add proc-macros for DeepClone and ByteRepr · Issue #216 · Cpp2Rust/cpp2rust · GitHub

Open Graph Title: Add proc-macros for DeepClone and ByteRepr · Issue #216 · Cpp2Rust/cpp2rust

X Title: Add proc-macros for DeepClone and ByteRepr · Issue #216 · Cpp2Rust/cpp2rust

Description: Currently we generate: #[derive(Default)] pub struct woff2_Point { pub x: Value, pub y: Value, pub on_curve: Value, } impl Clone for woff2_Point { fn clone(&self) -> Self { let mut this = Self { x: Rc::new(RefCell::new((*...

Open Graph Description: Currently we generate: #[derive(Default)] pub struct woff2_Point { pub x: Value, pub y: Value, pub on_curve: Value, } impl Clone for woff2_Point { fn clone(&self) -> Self { let mut ...

X Description: Currently we generate: #[derive(Default)] pub struct woff2_Point { pub x: Value<i32>, pub y: Value<i32>, pub on_curve: Value<bool>, } impl Clone for woff2_Point { fn clone(&se...

Opengraph URL: https://github.com/Cpp2Rust/cpp2rust/issues/216

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add proc-macros for DeepClone and ByteRepr","articleBody":"Currently we generate:\n\n```rs\n#[derive(Default)]\npub struct woff2_Point {\n    pub x: Value\u003ci32\u003e,\n    pub y: Value\u003ci32\u003e,\n    pub on_curve: Value\u003cbool\u003e,\n}\nimpl Clone for woff2_Point {\n    fn clone(\u0026self) -\u003e Self {\n        let mut this = Self {\n            x: Rc::new(RefCell::new((*self.x.borrow()))),\n            y: Rc::new(RefCell::new((*self.y.borrow()))),\n            on_curve: Rc::new(RefCell::new((*self.on_curve.borrow()))),\n        };\n        this\n    }\n}\nimpl ByteRepr for woff2_Point {\n    fn to_bytes(\u0026self, buf: \u0026mut [u8]) {\n        (*self.x.borrow()).to_bytes(\u0026mut buf[0..4]);\n        (*self.y.borrow()).to_bytes(\u0026mut buf[4..8]);\n        (*self.on_curve.borrow()).to_bytes(\u0026mut buf[8..9]);\n    }\n    fn from_bytes(buf: \u0026[u8]) -\u003e Self {\n        Self {\n            x: Rc::new(RefCell::new(\u003ci32\u003e::from_bytes(\u0026buf[0..4]))),\n            y: Rc::new(RefCell::new(\u003ci32\u003e::from_bytes(\u0026buf[4..8]))),\n            on_curve: Rc::new(RefCell::new(\u003cbool\u003e::from_bytes(\u0026buf[8..9]))),\n        }\n    }\n}\n```\n\nThat's a lot of code. We can write 2 proc-macros: `DeepClone` and `ByteRepr` and generate the following code instead:\n\n```rs\n#[derive(Default, DeepClone, ByteRepr)]\npub struct woff2_Point {\n    pub x: Value\u003ci32\u003e,\n    pub y: Value\u003ci32\u003e,\n    pub on_curve: Value\u003cbool\u003e,\n}\n```","author":{"url":"https://github.com/lucic71","@type":"Person","name":"lucic71"},"datePublished":"2026-07-01T09:26:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/216/cpp2rust/issues/216"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a45b07f8-1007-a2c5-b75b-ff0fe81cb46e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC93E:390CE:3DCB1:531F5:6A4D90F8
html-safe-nonce821380cc78b6b4826958f2ad9c21b1734ccd64232a875ace8f616a2d3c801e0c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTNFOjM5MENFOjNEQ0IxOjUzMUY1OjZBNEQ5MEY4IiwidmlzaXRvcl9pZCI6IjMyNzI3MjE3ODM3NzAxNTczMDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb3bd6e747895ce5599819c050c5aead95d01df842c7faccb9808220796b4e0ef
hovercard-subject-tagissue:4784233453
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Cpp2Rust/cpp2rust/216/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2b4dfa333253dabbd49e7d299cd5e09db6d3f3a43794ee00d526c447b3ae41de/Cpp2Rust/cpp2rust/issues/216
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2b4dfa333253dabbd49e7d299cd5e09db6d3f3a43794ee00d526c447b3ae41de/Cpp2Rust/cpp2rust/issues/216
og:image:altCurrently we generate: #[derive(Default)] pub struct woff2_Point { pub x: Value, pub y: Value, pub on_curve: Value, } impl Clone for woff2_Point { fn clone(&self) -> Self { let mut ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelucic71
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
go-importgithub.com/Cpp2Rust/cpp2rust git https://github.com/Cpp2Rust/cpp2rust.git
octolytics-dimension-user_id197474191
octolytics-dimension-user_loginCpp2Rust
octolytics-dimension-repository_id1183095779
octolytics-dimension-repository_nwoCpp2Rust/cpp2rust
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1183095779
octolytics-dimension-repository_network_root_nwoCpp2Rust/cpp2rust
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release74e2a9c78f1e38588de4f25885878349d721eedf
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Cpp2Rust/cpp2rust/issues/216#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCpp2Rust%2Fcpp2rust%2Fissues%2F216
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2FCpp2Rust%2Fcpp2rust%2Fissues%2F216
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=Cpp2Rust%2Fcpp2rust
Reloadhttps://github.com/Cpp2Rust/cpp2rust/issues/216
Reloadhttps://github.com/Cpp2Rust/cpp2rust/issues/216
Reloadhttps://github.com/Cpp2Rust/cpp2rust/issues/216
Please reload this pagehttps://github.com/Cpp2Rust/cpp2rust/issues/216
Cpp2Rust https://github.com/Cpp2Rust
cpp2rusthttps://github.com/Cpp2Rust/cpp2rust
Notifications https://github.com/login?return_to=%2FCpp2Rust%2Fcpp2rust
Fork 5 https://github.com/login?return_to=%2FCpp2Rust%2Fcpp2rust
Star 65 https://github.com/login?return_to=%2FCpp2Rust%2Fcpp2rust
Code https://github.com/Cpp2Rust/cpp2rust
Issues 6 https://github.com/Cpp2Rust/cpp2rust/issues
Pull requests 14 https://github.com/Cpp2Rust/cpp2rust/pulls
Actions https://github.com/Cpp2Rust/cpp2rust/actions
Security and quality 0 https://github.com/Cpp2Rust/cpp2rust/security
Insights https://github.com/Cpp2Rust/cpp2rust/pulse
Code https://github.com/Cpp2Rust/cpp2rust
Issues https://github.com/Cpp2Rust/cpp2rust/issues
Pull requests https://github.com/Cpp2Rust/cpp2rust/pulls
Actions https://github.com/Cpp2Rust/cpp2rust/actions
Security and quality https://github.com/Cpp2Rust/cpp2rust/security
Insights https://github.com/Cpp2Rust/cpp2rust/pulse
Add proc-macros for DeepClone and ByteReprhttps://github.com/Cpp2Rust/cpp2rust/issues/216#top
https://github.com/lucic71
lucic71https://github.com/lucic71
on Jul 1, 2026https://github.com/Cpp2Rust/cpp2rust/issues/216#issue-4784233453
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.