{"id":13434877,"url":"https://github.com/google/autocxx","last_synced_at":"2025-05-14T09:02:35.150Z","repository":{"id":37254572,"uuid":"287187657","full_name":"google/autocxx","owner":"google","description":"Tool for safe ergonomic Rust/C++ interop driven from existing C++ headers","archived":false,"fork":false,"pushed_at":"2025-03-05T08:17:58.000Z","size":8149,"stargazers_count":2420,"open_issues_count":115,"forks_count":159,"subscribers_count":37,"default_branch":"main","last_synced_at":"2025-05-07T08:02:30.985Z","etag":null,"topics":["bindgen","cxx","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/autocxx","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-13T05:16:10.000Z","updated_at":"2025-05-06T09:10:26.000Z","dependencies_parsed_at":"2022-07-11T03:00:48.553Z","dependency_job_id":"c8f944b5-36df-4a65-89b1-405edb5a1810","html_url":"https://github.com/google/autocxx","commit_stats":{"total_commits":2015,"total_committers":38,"mean_commits":"53.026315789473685","dds":"0.11017369727047144","last_synced_commit":"ae4a4eeeb7b8a9df93fe6e059ce9f7baeadfbe0c"},"previous_names":[],"tags_count":54,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fautocxx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fautocxx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fautocxx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fautocxx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","download_url":"https://codeload.github.com/google/autocxx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110363,"owners_count":22016391,"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":["bindgen","cxx","rust"],"created_at":"2024-07-31T03:00:25.660Z","updated_at":"2025-05-14T09:02:35.071Z","avatar_url":"https://github.com/google.png","language":"Rust","funding_links":[],"categories":["HarmonyOS","Rust","FFI Bindings"],"sub_categories":["Windows Manager"],"readme":"# Autocxx\n\n[![GitHub](https://img.shields.io/crates/l/autocxx)](https://github.com/google/autocxx)\n[![crates.io](https://img.shields.io/crates/d/autocxx)](https://crates.io/crates/autocxx)\n[![docs.rs](https://docs.rs/autocxx/badge.svg)](https://docs.rs/autocxx)\n\nThis project is a tool for calling C++ from Rust in a heavily automated, but safe, fashion.\n\nThe intention is that it has all the fluent safety from [cxx](https://cxx.rs) whilst generating interfaces automatically from existing C++ headers using a variant of [bindgen](https://docs.rs/bindgen/latest/bindgen/). Think of autocxx as glue which plugs bindgen into cxx.\n\nFor full documentation, see [the manual](https://google.github.io/autocxx/).\n\n# Overview\n\n```rust,ignore\nautocxx::include_cpp! {\n    #include \"url/origin.h\"\n    generate!(\"url::Origin\")\n    safety!(unsafe_ffi)\n}\n\nfn main() {\n    let o = ffi::url::Origin::CreateFromNormalizedTuple(\"https\",\n        \"google.com\", 443);\n    let uri = o.Serialize();\n    println!(\"URI is {}\", uri.to_str().unwrap());\n}\n```\n\n#### License and usage notes\n\nThis is not an officially supported Google product.\n\n\u003csup\u003e\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fautocxx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle%2Fautocxx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fautocxx/lists"}