(path: *const c_char)
| 533 | /// `path` must be a valid, non-null, NUL-terminated C string. |
| 534 | #[no_mangle] |
| 535 | pub unsafe extern "C" fn cake_set_cache_dir(path: *const c_char) { |
| 536 | let path = CStr::from_ptr(path).to_string_lossy().into_owned(); |
| 537 | set_cache_dir(path); |
| 538 | } |
| 539 | |
| 540 | /// # Safety |
| 541 | /// `s` must be either null or a pointer previously returned by `cake_start_worker` / `cake_get_worker_status`. |
no test coverage detected