1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Archive inspection without extraction.
//!
//! This module provides functions to inspect archive contents and verify
//! their security without writing files to disk.
//!
//! # Examples
//!
//! ```no_run
//! use exarch_core::SecurityConfig;
//! use exarch_core::list_archive;
//! use exarch_core::verify_archive;
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let config = SecurityConfig::default();
//!
//! // List archive contents
//! let manifest = list_archive("archive.tar.gz", &config)?;
//! println!("Archive contains {} files", manifest.total_entries);
//!
//! // Verify archive security
//! let report = verify_archive("archive.tar.gz", &config)?;
//! if report.is_safe() {
//! println!("Archive is safe to extract");
//! }
//! # Ok(())
//! # }
//! ```
pub use list_archive;
pub use ArchiveEntry;
pub use ArchiveManifest;
pub use ManifestEntryType;
pub use CheckStatus;
pub use IssueCategory;
pub use IssueSeverity;
pub use VerificationIssue;
pub use VerificationReport;
pub use VerificationStatus;
pub use verify_archive;