Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't handle Enum containing any variable with field #98

Open
NoahHahm opened this issue Oct 30, 2024 · 0 comments
Open

can't handle Enum containing any variable with field #98

NoahHahm opened this issue Oct 30, 2024 · 0 comments

Comments

@NoahHahm
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant