Change the API to use String instead of ffi::CString
Closed this issue · 2 comments
kenba commented
It is easier for users to handle standard Rust String
s than Rust ffi::CString
s.
Therefore, the API should use standard Rust String
s or str
s instead of ffi::CString
s or ffi::CStr
wherever possible.
Note: this change depends on c3 issue #4.
kenba commented
Re-open to change API to replace use of CStr
with str
and CString
with String
wherever possible.