kenba/opencl3

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 Strings than Rust ffi::CStrings.
Therefore, the API should use standard Rust Strings or strs instead of ffi::CStrings 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.

kenba commented

Now uses new cl3 0.2.0 API.
All functions now accept str with the exception of Program::compile which takes: header_include_names: &[&CStr].