mdbook/crates
Eric Huss 797112ef36 Clean up some fs-related utilities
This does a little cleanup around the usage of filesystem functions:

- Add `mdbook_core::utils::fs::read_to_string` as a wrapper around
  `std::fs::read_to_string` to provide better error messages. Use
  this wherever a file is read.
- Add `mdbook_core::utils::fs::create_dir_all` as a wrapper around
  `std::fs::create_dir_all` to provide better error messages. Use
  this wherever a file is read.
- Replace `mdbook_core::utils::fs::write_file` with `write` to mirror
  the `std::fs::write` API.
- Remove `mdbook_core::utils::fs::create_file`. It was generally not
  used anymore.
- Scrub the usage of `std::fs` to use the new wrappers. This doesn't
  remove it 100%, but it is now significantly reduced.
2025-09-20 17:13:31 -07:00
..
mdbook-compare Add a basic utility to compare different versions of mdbook 2025-09-16 13:58:20 -07:00
mdbook-core Clean up some fs-related utilities 2025-09-20 17:13:31 -07:00
mdbook-driver Clean up some fs-related utilities 2025-09-20 17:13:31 -07:00
mdbook-html Clean up some fs-related utilities 2025-09-20 17:13:31 -07:00
mdbook-markdown Remove outdated comment in mdbook-markdown 2025-09-19 17:46:08 -07:00
mdbook-preprocessor Change PreProcessor::supports_renderer to return a Result 2025-08-16 13:26:01 -07:00
mdbook-renderer Switch all public types to non_exhaustive 2025-08-09 17:02:01 -07:00
mdbook-summary Switch from log to tracing 2025-09-12 06:13:45 -07:00