s2mod-packer 0.1.1

Pack/unpack .s2mod Content Pack archives for OpenStranded
Documentation
// 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 mod cli;
pub mod manifest;
pub mod package;

pub use manifest::*;
pub use package::*;