{"id":23863302,"url":"https://github.com/jam1garner/cpp-inherit","last_synced_at":"2025-09-08T12:31:23.168Z","repository":{"id":62439043,"uuid":"282099222","full_name":"jam1garner/cpp-inherit","owner":"jam1garner","description":"A macro for inheriting Rust structures from C++ classes. Nothing valued is here.","archived":false,"fork":false,"pushed_at":"2023-12-04T09:32:01.000Z","size":24,"stargazers_count":35,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-03T02:53:58.737Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jam1garner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-24T02:05:18.000Z","updated_at":"2024-11-05T00:37:29.000Z","dependencies_parsed_at":"2022-11-01T22:01:39.596Z","dependency_job_id":null,"html_url":"https://github.com/jam1garner/cpp-inherit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jam1garner%2Fcpp-inherit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jam1garner%2Fcpp-inherit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jam1garner%2Fcpp-inherit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jam1garner%2Fcpp-inherit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jam1garner","download_url":"https://codeload.github.com/jam1garner/cpp-inherit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232308509,"owners_count":18503114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-03T07:52:01.984Z","updated_at":"2025-01-03T07:52:02.662Z","avatar_url":"https://github.com/jam1garner.png","language":"Rust","readme":"# cpp-inherit\nA macro for inheriting Rust structures from C++ classes. Nothing of value lies here.\n\n### Example\n\n```rust\nuse cpp_inherit::*;\n\n#[inherit_from(BaseType)]\n#[derive(Debug)]\nstruct RustType {}\n\n#[inherit_from_impl(BaseType, \"test.hpp\")]\nimpl RustType {\n    fn new() -\u003e Self {\n        Self {\n            _base: BaseType { vtable_: RustType::VTABLE_ as _, value: 3 }\n        }\n    }\n\n    #[overridden] fn x(\u0026self) -\u003e i32 {\n        99\n    }\n}\n\n// Now you can pass RustType as a BaseType, access any BaseType fields, call any BaseType methods (virtual or not), from either C++ or Rust\n```\n\n[Rest of example usage here](https://github.com/jam1garner/cpp-inherit-test)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjam1garner%2Fcpp-inherit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjam1garner%2Fcpp-inherit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjam1garner%2Fcpp-inherit/lists"}