{"id":13342938,"url":"https://github.com/iujakchu/cxx-xmake-example","last_synced_at":"2025-03-12T03:30:42.060Z","repository":{"id":38386700,"uuid":"498601008","full_name":"iujakchu/cxx-xmake-example","owner":"iujakchu","description":"modern cpp with the power of rust","archived":false,"fork":false,"pushed_at":"2022-06-09T07:26:53.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-24T13:58:50.243Z","etag":null,"topics":["cpp","cxx","ffi","lto","mold","rust","xmake"],"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/iujakchu.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":"2022-06-01T05:20:55.000Z","updated_at":"2024-03-04T12:45:42.000Z","dependencies_parsed_at":"2022-08-18T19:11:15.240Z","dependency_job_id":null,"html_url":"https://github.com/iujakchu/cxx-xmake-example","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/iujakchu%2Fcxx-xmake-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iujakchu%2Fcxx-xmake-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iujakchu%2Fcxx-xmake-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iujakchu%2Fcxx-xmake-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iujakchu","download_url":"https://codeload.github.com/iujakchu/cxx-xmake-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243150682,"owners_count":20244442,"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":["cpp","cxx","ffi","lto","mold","rust","xmake"],"created_at":"2024-07-29T19:30:08.404Z","updated_at":"2025-03-12T03:30:41.809Z","avatar_url":"https://github.com/iujakchu.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# modern cpp with rust\n## Try to find a way to call rust from within cpp side.\nThere are some tools I have used.\n* linker: [mold](https://github.com/rui314/mold)\n* build system: [xmake](https://github.com/xmake-io/xmake)\n* compile toolchain: clang-13\n* rustc: 1.59.0(you have to use specific version for [compatibility](https://doc.rust-lang.org/rustc/linker-plugin-lto.html#toolchain-compatibility) with clang)\n* interoperation: [cxx](https://cxx.rs/)\n\n# Run\n```shell\nxmake \nxmake run\n```\n# TODO\n- [x] LTO/IPO support\n- [x] CI/CD\n- [x] Dockerfile\n# Credits\n* This project is almost a fork of [cxx-cmake-example](https://github.com/XiangpengHao/cxx-cmake-example) .\n* explain the steps of [lto](https://blog.llvm.org/2019/09/closing-gap-cross-language-lto-between.html) \n* [rustc lto plugin](https://doc.rust-lang.org/rustc/linker-plugin-lto.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiujakchu%2Fcxx-xmake-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiujakchu%2Fcxx-xmake-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiujakchu%2Fcxx-xmake-example/lists"}