Function cargo_util::paths::read

source ยท
pub fn read(path: &Path) -> Result<String>
Expand description

Reads a file to a string.

Equivalent to std::fs::read_to_string with better error messages.