lithiumtoast/c2cs

Generate C# bindings from a C header.

306

stars

660

commits

C#

primary language

Apr 27, 2026

updated

bindgen
c
clang
codegen
csharp
ffi

README

C2CS

C to C# library bindings code generator. In go .h file, out come .cs file. 100% deterministic; no AI.

Documentation

For documentation on supported platforms, limitations, how to install C2CS, how to use C2CS, how to build C2CS, etc, see the docs/README.md.

License

C2CS is licensed under the MIT License (MIT).

There are a few exceptions to this detailed below. See the LICENSE file for more details on this main product's license.

Contributors

lithiumtoast

647 commits

anggape

2 commits

joelmartinez

2 commits

lithiumtoast/c2cs

Generate C# bindings from a C header.

306

stars

660

commits

C#

primary language

Apr 27, 2026

updated

bindgen
c
clang
codegen
csharp
ffi

README

C2CS

C to C# library bindings code generator. In go .h file, out come .cs file. 100% deterministic; no AI.

Documentation

For documentation on supported platforms, limitations, how to install C2CS, how to use C2CS, how to build C2CS, etc, see the docs/README.md.

License

C2CS is licensed under the MIT License (MIT).

There are a few exceptions to this detailed below. See the LICENSE file for more details on this main product's license.

Contributors

lithiumtoast

647 commits

anggape

2 commits

joelmartinez

2 commits

Languages

C#

94.0%

C

5.7%