libpna/
lib.rs

1//! A library for reading and writing PNA archives
2//!
3//! This library provides utilities necessary to manage PNA archives
4//! abstracted over a reader or writer. Great strides are taken to ensure that
5//! an archive is never required to be fully resident in memory, and all objects
6//! provide largely a streaming interface to read bytes from.
7
8#![doc(html_root_url = "https://docs.rs/libpna/0.24.0")]
9#![deny(
10    missing_docs,
11    clippy::missing_inline_in_public_items,
12    clippy::missing_panics_doc,
13    clippy::missing_safety_doc
14)]
15pub(crate) mod archive;
16pub(crate) mod chunk;
17pub(crate) mod cipher;
18pub(crate) mod compress;
19pub(crate) mod entry;
20pub(crate) mod hash;
21pub(crate) mod io;
22pub mod prelude;
23pub(crate) mod random;
24pub(crate) mod util;
25
26pub use archive::*;
27pub use chunk::*;
28pub use entry::*;
29
30#[cfg(test)]
31mod tests {
32    #[test]
33    fn test_readme_deps() {
34        version_sync::assert_markdown_deps_updated!(&format!(
35            "{}/README.md",
36            env!("CARGO_MANIFEST_DIR")
37        ));
38    }
39
40    #[test]
41    fn test_html_root_url() {
42        version_sync::assert_html_root_url_updated!(&format!(
43            "{}/src/lib.rs",
44            env!("CARGO_MANIFEST_DIR")
45        ));
46    }
47}