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
// s2mod-packer – pack/unpack .s2mod Content Pack archives for OpenStranded
// Copyright (C) 2025 s2mod-packer contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//! .s2mod archive packing / unpacking.
//!
//! .s2mod is a zip archive (or plain directory) containing converted
//! assets and a manifest.toml.
//!
//! # Example (compile-only, requires real paths at runtime)
//!
//! ```rust,ignore
//! use s2mod_packer::{S2ModPackage, ContentPackManifest};
//!
//! // Pack a directory into a .s2mod zip archive
//! S2ModPackage::pack_to_zip("my_mod_dir", "output.s2mod").unwrap();
//!
//! // Open an existing archive
//! let pack = S2ModPackage::open("pack.s2mod").unwrap();
//! println!("Pack: {}", pack.manifest().pack.name);
//!
//! // Unpack an archive
//! S2ModPackage::unpack_to_dir("pack.s2mod", "output_dir").unwrap();
//! ```
pub use *;
pub use *;