-
Notifications
You must be signed in to change notification settings - Fork 13
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
Change the API to use String instead of ffi::CString #10
Labels
enhancement
New feature or request
Comments
kenba
added a commit
that referenced
this issue
Mar 21, 2021
The first stage in migrating the API from CString to String.
kenba
added a commit
that referenced
this issue
Mar 26, 2021
Replace calls to to_str with to_string for issue #10
Re-open to change API to replace use of |
Now uses new cl3 0.2.0 API. |
kenba
added a commit
that referenced
this issue
Mar 28, 2021
By storing a `intptr_t` in `Platform` and `Device` instead of `cl_platform_id` and `cl_device_id`, the structs can derive the Copy, Clone and Debug traits and implement the Send and Sync traits.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is easier for users to handle standard Rust
String
s than Rustffi::CString
s.Therefore, the API should use standard Rust
String
s orstr
s instead offfi::CString
s orffi::CStr
wherever possible.Note: this change depends on c3 issue #4.
The text was updated successfully, but these errors were encountered: