tokio-uring 0.5.0

io-uring support for the Tokio asynchronous runtime.
Documentation
1
2
3
4
5
6
7
8
use std::ffi::CString;
use std::io;
use std::path::Path;

pub(crate) fn cstr(p: &Path) -> io::Result<CString> {
    use std::os::unix::ffi::OsStrExt;
    Ok(CString::new(p.as_os_str().as_bytes())?)
}