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

[skdb] Support FFI interface. #284

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

[skdb] Support FFI interface. #284

wants to merge 4 commits into from

Conversation

beauby
Copy link
Contributor

@beauby beauby commented Aug 20, 2024

A few changes to allow using SKDB from rust via FFI (basically enabling the rust and python clients available at skiplabs/skdb-rs).

module FFI;

// TODO: This should probably return a Result<> in case invalid utf8 is provided.
@cpp_extern
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not @cpp_extern("sk_string_create") here and then no need to define SKIP_FFI_utf8_bytes_to_string in string.c?

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

Successfully merging this pull request may close these issues.

2 participants