{"id":13430426,"url":"https://github.com/mono/CppSharp","last_synced_at":"2025-03-16T05:30:54.757Z","repository":{"id":8405526,"uuid":"9988318","full_name":"mono/CppSharp","owner":"mono","description":"Tools and libraries to glue C/C++ APIs to high-level languages","archived":false,"fork":false,"pushed_at":"2025-03-11T12:39:03.000Z","size":38994,"stargazers_count":3192,"open_issues_count":339,"forks_count":524,"subscribers_count":152,"default_branch":"main","last_synced_at":"2025-03-12T04:11:12.640Z","etag":null,"topics":["bindings","bridge","c","c-sharp","clang","cplusplus","cppsharp","dotnet","glue","interop","mono","parser","parsing","pinvoke","swig","syntax-tree","visitors","xamarin","xamarin-bindings"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mono.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2013-05-10T19:00:56.000Z","updated_at":"2025-03-11T12:39:07.000Z","dependencies_parsed_at":"2023-01-13T15:00:58.792Z","dependency_job_id":"fce0d91b-a0dc-4488-8c3d-71b7b53c5aba","html_url":"https://github.com/mono/CppSharp","commit_stats":{"total_commits":5145,"total_committers":97,"mean_commits":53.04123711340206,"dds":0.7331389698736637,"last_synced_commit":"166e45e9af4c0d40e17ac80a021197bb44a14751"},"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mono%2FCppSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mono%2FCppSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mono%2FCppSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mono%2FCppSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mono","download_url":"https://codeload.github.com/mono/CppSharp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354848,"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":["bindings","bridge","c","c-sharp","clang","cplusplus","cppsharp","dotnet","glue","interop","mono","parser","parsing","pinvoke","swig","syntax-tree","visitors","xamarin","xamarin-bindings"],"created_at":"2024-07-31T02:00:53.419Z","updated_at":"2025-03-16T05:30:51.809Z","avatar_url":"https://github.com/mono.png","language":"C#","readme":"\u003cimg src=\"docs/logo.svg\" width=\"128\"\u003e\n\nCppSharp is a tool and set of libraries which facilitates the usage of native C/C++ code\nwith the .NET ecosystem.\n\nIt consumes C/C++ header and library files and generates the \nnecessary glue code to surface the native API as a managed API. Such an API can be\nused to consume an existing native library in your managed code or add\nmanaged scripting support to a native codebase.\n\nThe supported target languages at present are C# and C++/CLI.\n\nIt can also be used as a library to parse native code into a syntax tree with a\nrich declaration and type information model.\n\n## Releases/Build Status\n\n| NuGet Packages            | Continuous Integration    |\n|---------------------------|---------------------------|\n| [![NuGet](https://img.shields.io/nuget/v/CppSharp.svg)](https://www.nuget.org/packages/CppSharp/) | [![GitHub-actions](https://github.com/mono/CppSharp/workflows/CI/badge.svg)](https://github.com/mono/CppSharp/actions?query=workflow%3ACI) \n\n1. [Libraries](#libraries)\n2. [Documentation](#documentation)\n3. [Community](#community)\n4. [Support](#support)\n5. [Users](#users)\n\n## Libraries\n\n### AST \n\nMirrors the Clang's C/C++ AST and type system classes in C# APIs.\n\nCheck out [_Clang's AST introduction docs_](http://clang.llvm.org/docs/IntroductionToTheClangAST.html) for more details about its architecture.\n \n * C++ declarations\n * C++ statements / expressions\n * C++ types\n * Class object layout\n * Declaration visitors\n * Type visitors\n\n### Parser\n\nProvides APIs for parsing of C/C++ source code into a syntax tree.\n\n* Parsing of C/C++ source code\n* Parsing of libraries archives symbols\n* Parsing of shared libraries symbols \n* Based on the very accurate Clang C++ parser.\n\n### Generator\n\nGenerates the glue binding code from a syntax tree of the native code.\n \n * Multiple backends: C++/CLI and C# (P/Invoke)\n * Multiple ABIs: Itanium, MS, ARM, iOS\n * Multiple platforms: Windows, OS X and Linux\n * Multiple runtimes: .NET and Mono\n * C++ virtual methods overriding from managed code\n * C++ multiple inheritance by translating to C# interfaces\n * C++ std::string\n * C++ default parameter values\n * C/C++ semantic comments (Doxygen) to C# comments\n * Extensible bindings semantics via user passes and type mapping \n\n## Documentation\n\nPlease see the following resources for more information:\n\n[Getting Started](docs/GettingStarted.md)\n\n[User's Manual](docs/UsersManual.md)\n\n[Developer's Manual](docs/DevManual.md)\n\n## Community\n\nFeel free to open up issues on GitHub for any problems you find.\n\n## Support\n\nIf you need commercial support feel free to open a discussion or issue for discussion.\n\n## Users\n\nCppSharp is used by the following projects:\n\n[Kythera AI](https://kythera.ai)\n\n[QtSharp](https://gitlab.com/ddobrev/QtSharp)\n\n[MonoGame](https://github.com/mono/MonoGame)\n\n[LLDBSharp](https://github.com/tritao/LLDBSharp)\n\n[Xamarin](http://xamarin.com/)\n\n[FFMPEG.net](https://github.com/crazyender/FFMPEG.net)\n\n[FFmpeg bindings](https://github.com/InitialForce/FFmpeg_bindings)\n\n[Tizen bindings](https://github.com/kitsilanosoftware/CppSharpTizen)\n\n[libgd bindings](https://github.com/imazen/deprecated-gd-bindings-generator-old)\n\n[ChakraSharp](https://github.com/baristalabs/ChakraSharp)\n\n[FFmpeg.AutoGen](https://github.com/Ruslan-B/FFmpeg.AutoGen)\n\n[GLFW3.NET](https://github.com/realvictorprm/GLFW3.NET)\n\n[DearImguiSharp](https://github.com/Sewer56/DearImguiSharp)\n\nPlease feel free to send us a pull request adding your own projects to the list above.\n","funding_links":[],"categories":["C# #","Scripting","C/C++ Tools and Frameworks","C/C++ Tools","Uncategorized","C#","C/C++ Tools, Libraries and Frameworks","Interoperability","正则表达式","C/C++ Tools, Libraries, and Frameworks","互操作"],"sub_categories":["In-memory data grids","Uncategorized","Interfaces","脚本","viii. Linear Regression","E-Books","VS Code Extensions for Developer Productivity","Objective-C Tools, Libraries, and Frameworks","JavaScript Libraries for Machine Learning","GUI - other"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmono%2FCppSharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmono%2FCppSharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmono%2FCppSharp/lists"}