Function cargo_util::paths::read_bytes
source · pub fn read_bytes(path: &Path) -> Result<Vec<u8>>
Expand description
Reads a file into a bytes vector.
Equivalent to std::fs::read
with better error messages.
pub fn read_bytes(path: &Path) -> Result<Vec<u8>>
Reads a file into a bytes vector.
Equivalent to std::fs::read
with better error messages.