csbindgen icon indicating copy to clipboard operation
csbindgen copied to clipboard

can't handle Enum containing any variable with field

Open NoahHahm opened this issue 1 year ago • 1 comments

https://github.com/y-crdt/y-crdt/blob/main/yffi/src/lib.rs#L164

the build fails due to an issue on the enum side. can I get some help with this?

fn main() {
    csbindgen::Builder::default()
        .input_extern_file("src/lib.rs")
        .csharp_dll_name("example")
        .generate_csharp_file("./NativeMethods.g.cs")
        .unwrap();
}

error: failed to run custom build command for yffi v0.21.3 (/Users/user/Documents/GitHub/y-crdt/yffi)

Caused by: process didn't exit successfully: /Users/user/Documents/GitHub/y-crdt/target/debug/build/yffi-5c841eec76ea7a9c/build-script-build (signal: 6, SIGABRT: process abort signal) --- stdout csbindgen can't handle Enum containing any variable with field, so ignore generate, enum_name: TransactionInner

--- stderr

thread 'main' has overflowed its stack fatal runtime error: stack overflow warning: build failed, waiting for other jobs to finish...

NoahHahm avatar Oct 30 '24 10:10 NoahHahm

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Apr 29 '25 00:04 github-actions[bot]