lpk 0.0.0

Decrypt the `.lkp` file from `Live2dViewerEx`
Documentation
use lpk::LpkLoader;
use std::path::Path;
use tracing::metadata::LevelFilter;

#[test]
fn ready() {
    println!("it works!")
}

#[test]
#[ignore]
fn test_lpk_loader() {
    tracing_subscriber::fmt().with_max_level(LevelFilter::TRACE).pretty().init();

    // 测试文件路径
    let lpk_path = Path::new("tests/3453065926/3453065926.lpk");
    // 创建LPK加载器
    let mut loader = LpkLoader::open(lpk_path).expect("Failed to create LPK loader");

    // 创建临时目录用于解压
    let output_dir = tempfile::tempdir().expect("Failed to create temp directory");

    // 解压LPK文件
    loader.extract(output_dir.path()).expect("Failed to extract LPK file");

    println!("Successfully extracted LPK file to: {}", output_dir.path().display());
}