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
//! Package format handling for the soar package manager.
//!
//! This crate provides functionality for detecting package formats and
//! handling format-specific operations like desktop integration.
//!
//! # Supported Formats
//!
//! - **AppImage**: Self-contained Linux applications with embedded resources
//! - **FlatImage**: Similar to AppImage with different internal structure
//! - **RunImage**: Another AppImage-like format
//! - **Wrappe**: Windows PE wrapper format
//! - **ELF**: Standard Linux executables
//!
//! # Example
//!
//! ```no_run
//! use std::fs::File;
//! use std::io::BufReader;
//! use soar_package::{get_file_type, PackageFormat, PackageError};
//!
//! fn detect_format(path: &str) -> Result<PackageFormat, PackageError> {
//! let file = File::open(path).map_err(|e| PackageError::IoError {
//! action: "opening file".to_string(),
//! source: e,
//! })?;
//! let mut reader = BufReader::new(file);
//! get_file_type(&mut reader)
//! }
//! ```
pub use ;
pub use ;
pub use PackageExt;