crates/mdbook-core/src/lib.rs
raw| 1 | //! The base support library for mdbook, intended for internal use only. |
| 2 | |
| 3 | /// The current version of `mdbook`. |
| 4 | /// |
| 5 | /// This is provided as a way for custom preprocessors and renderers to do |
| 6 | /// compatibility checks. |
| 7 | pub const MDBOOK_VERSION: &str = env!("CARGO_PKG_VERSION"); |
| 8 | |
| 9 | pub mod book; |
| 10 | pub mod config; |
| 11 | pub mod utils; |
| 12 | |
| 13 | /// The error types used in mdbook. |
| 14 | pub mod errors { |
| 15 | pub use anyhow::{Error, Result}; |
| 16 | } |