interoptopus icon indicating copy to clipboard operation
interoptopus copied to clipboard

The polyglot bindings generator for your library (C#, C, Python, …) 🐙

Results 54 interoptopus issues
Sort by recently updated
recently updated
newest added

This change writes the two current C# overload writers into documentation, and also fixes their function and delegate signatures.

To my pleasant surprise, I discovered that the AsciiPointer pattern plainly uses Rust CString, which is UTF-8 instead of ASCII. This is not an issue when transferring strings _into_ Rust,...

bug
c-core
c-backend-c#
c-backend-cpython
enhancement

If you look at the generated [IEnumerable](https://github.com/ralfbiedert/interoptopus/blob/8d88f379b7a94716e353601c14f0bd99f4881c16/backends/csharp/tests/output_safe/Interop.cs#L924) code, it generates a plain yield return enumerator. That means there's an allocation on every GetEnumerator call - which is normally avoided by...

c-backend-c#
enhancement

Dataful enums are a powerful feature of rust's type system, and unfortunately this means they are difficult to represent elegantly in many other languages. However, at minimum dataful enums in...

c-core
c-proc
needs-discussion
enhancement

I had a branch with some progress on this before a small "SSD upgrade accident", basic idea was struct methods needed to be defined as traits, with annotations on traits...

needs-discussion
enhancement

c-core
c-proc
needs-discussion
enhancement

Single field `#[repr(C)]` structs containing integer fields should generate these helpers: ```csharp public partial struct InstanceID : IComparable, IEquatable { public static InstanceID From(int id) { return new InstanceID {...

c-backend-c#
enhancement

Previously, the C# doc writer didn't rename fields based on the `rename_symbols` in the C# config. This change fixes that and creates a utility function to get the correct field...

In C all strings are terminated by a null byte (0x0), which means that strings using the idiomatic C representation cannot contain null. However, many languages, including Python and C#...

c-core
needs-discussion
enhancement

I wanted to bump my api version after some internal bugfixes (without changing the API surface), and was confused when changing the APIVersion returned by my api_guard function did not...

c-core
c-proc