corpus-fs 0.1.0-alpha.1

XBRL parsing, validation, and analysis toolkit
Documentation
1
2
3
4
5
6
7
8
//! Local corpus adapter.

use anyhow::Context;
use std::path::Path;

pub fn read_to_string(path: &Path) -> anyhow::Result<String> {
    std::fs::read_to_string(path).with_context(|| format!("reading {}", path.display()))
}