zqa_pdftools/
lib.rs

1//! This crate provides PDF parsing functionality, and is somewhat tailored to academic PDFs. It
2//! handles text and skips images and tables. It also handles commonly-used math expressions,
3//! though this feature is not perfect by any means. Note also that due to kerning considerations,
4//! the parsed text may contain erroneous spaces.
5
6#![deny(
7    unreachable_code,
8    unreachable_patterns,
9    unsafe_code,
10    unused_imports,
11    unused_must_use,
12    unused_variables
13)]
14#![warn(
15    clippy::all,
16    clippy::pedantic,
17    missing_docs,
18    rust_2018_idioms,
19    unreachable_pub,
20    unsafe_op_in_unsafe_fn
21)]
22// These are obnoxious and often wrong anyway
23#![allow(clippy::doc_markdown)]
24// I disagree with this rule--what would users do knowing panic situations, if it's going to panic
25// anyway?
26#![allow(clippy::missing_panics_doc)]
27// I disagree that this is not readable.
28#![allow(clippy::items_after_statements)]
29// We will not run into these situations
30#![allow(clippy::cast_precision_loss)]
31#![allow(clippy::cast_possible_wrap)]
32
33pub(crate) mod math;
34pub mod parse;