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

API doesn't permit specifying transient destructors without potentially unsound coercions #9

Open
udoprog opened this issue Jun 14, 2024 · 1 comment

Comments

@udoprog
Copy link

udoprog commented Jun 14, 2024

See for example: sqlite3_result_blob.

In sqlite3 these supports special sentinel values which marks the value as transient, see: https://sqlite.org/c3ref/c_static.html.

This can only be done by coercing the sentinel value -1 into the Option<T> directly, which to my knowledge is not guaranteed to be correct.

@IvanUkhov
Copy link
Member

Thank you for the note. I guess one has to look into how to customize bindgen to accommodate this.

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

No branches or pull requests

2 participants