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

Make Link and AtomicLink #[repr(C)] to allow usage in FFI #75

Open
benpye opened this issue Aug 23, 2022 · 0 comments
Open

Make Link and AtomicLink #[repr(C)] to allow usage in FFI #75

benpye opened this issue Aug 23, 2022 · 0 comments

Comments

@benpye
Copy link

benpye commented Aug 23, 2022

As in the title, but would it be reasonable to make Link and AtomicLink #[repr(C)]? I realise that an external library could put the links into a bad state, but this would mean that a list, for example, could be constructed in Rust and then passed to a consumer in C. My use case is actually to pass between two Rust binaries in the same address space.

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