sqlite3-sys
sqlite3-sys copied to clipboard
API doesn't permit specifying transient destructors without potentially unsound coercions
See for example: sqlite3_result_blob.
In sqlite3 these support 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.
Thank you for the note. I guess one has to look into how to customize bindgen to accommodate this.