1#![doc = include_str!("../README.md")]
2#![forbid(unsafe_code)]
3#![cfg_attr(docsrs, feature(doc_cfg))]
4
5mod deadline;
6mod diagnostics;
7mod fasthash;
8mod hex;
9mod limits;
10mod page_index;
11mod version;
12
13pub use deadline::{Deadline, Operation};
14pub use diagnostics::{DiagKind, Diagnostic, Diagnostics, Severity};
15pub use fasthash::{FxBuildHasher, FxHasher};
16pub use hex::hex_digit;
17pub use kurbo;
18pub use limits::{LimitExceeded, Limits};
19pub use page_index::PageIndex;
20pub use version::PdfVersion;
21
22#[cfg(test)]
23mod tests {
24 #[test]
25 fn kurbo_reexport_is_wired() {
26 let r = crate::kurbo::Rect::new(0.0, 0.0, 2.0, 3.0);
27 assert!((r.area() - 6.0).abs() < f64::EPSILON);
28 }
29}