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.