Skip to main content

asciidoc_parser/
lib.rs

1#![allow(clippy::module_inception)]
2#![deny(clippy::expect_used)]
3#![deny(clippy::indexing_slicing)]
4#![deny(clippy::panic)]
5#![deny(clippy::unwrap_used)]
6#![deny(missing_docs)]
7#![deny(warnings)]
8#![doc = include_str!(concat!("../", std::env!("CARGO_PKG_README")))]
9
10/// The version of (Ruby) Asciidoctor whose behavior this crate implements.
11///
12/// This is the value of the predefined `asciidoctor-version` attribute, and it
13/// is also the release that the reference test suite vendored in
14/// `ref/asciidoctor` is taken from. Update it here – and re-vendor
15/// `ref/asciidoctor` – when the crate starts tracking a newer Asciidoctor
16/// release.
17pub(crate) const ASCIIDOCTOR_VERSION: &str = "2.0.26";
18
19pub mod attributes;
20pub mod blocks;
21pub mod content;
22
23pub mod document;
24pub use document::Document;
25
26pub(crate) mod internal;
27
28pub mod parser;
29pub use parser::{Parser, ReferenceTime, SafeMode};
30
31mod span;
32pub use span::{HasSpan, Span};
33
34pub mod strings;
35
36#[cfg(test)]
37mod tests;
38
39pub mod warnings;
40
41// Use `pretty_assertion_sorted`'s version of `assert_eq` across the board.
42#[cfg(test)]
43#[macro_use]
44extern crate pretty_assertions_sorted;