tokio_fs_ext/fs/wasm/
read_to_string.rs

1use std::{io, path::Path};
2
3use super::read;
4
5pub async fn read_to_string(path: impl AsRef<Path>) -> io::Result<String> {
6    Ok(unsafe { String::from_utf8_unchecked(read(path).await?) })
7}