diff --git a/Cargo.toml b/Cargo.toml index ed2051e..2413038 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,11 @@ [package] -name = "un-pak" +name = "unpak" authors = ["spuds"] -repository = "https://github.com/bananaturtlesandwich/un-pak" +repository = "https://github.com/bananaturtlesandwich/unpak" description = "a no-nonsense unreal pak parsing crate" +license = "MIT OR Apache-2.0" +keywords = ["modding", "parsing", "compression"] +categories = ["filesystem", "parser-implementations"] version = "0.1.0" edition = "2021" diff --git a/examples/list.rs b/examples/list.rs index 360e5fd..e5f0423 100644 --- a/examples/list.rs +++ b/examples/list.rs @@ -1,7 +1,7 @@ -fn main() -> Result<(), un_pak::Error> { - let pak = un_pak::Pak::new( +fn main() -> Result<(), unpak::Error> { + let pak = unpak::Pak::new( std::io::BufReader::new(std::io::Cursor::new(include_bytes!("rando_p.pak"))), - un_pak::Version::CompressionEncryption, + unpak::Version::CompressionEncryption, None, )?; for file in pak.files() { diff --git a/examples/unpack.rs b/examples/unpack.rs index 2a7d87b..8c5a74a 100644 --- a/examples/unpack.rs +++ b/examples/unpack.rs @@ -1,7 +1,7 @@ -fn main() -> Result<(), un_pak::Error> { - let mut pak = un_pak::Pak::new( +fn main() -> Result<(), unpak::Error> { + let mut pak = unpak::Pak::new( std::io::BufReader::new(std::io::Cursor::new(include_bytes!("rando_p.pak"))), - un_pak::Version::CompressionEncryption, + unpak::Version::CompressionEncryption, None, )?; for file in pak.files() { diff --git a/examples/version.rs b/examples/version.rs index 985dfb8..b1ba3db 100644 --- a/examples/version.rs +++ b/examples/version.rs @@ -1,8 +1,8 @@ -fn main() -> Result<(), un_pak::Error> { +fn main() -> Result<(), unpak::Error> { // drag onto or open any pak with the example let path = std::env::args().nth(1).unwrap_or_default(); - for ver in un_pak::Version::iter() { - match un_pak::Pak::new( + for ver in unpak::Version::iter() { + match unpak::Pak::new( std::io::BufReader::new(std::fs::OpenOptions::new().read(true).open(&path)?), ver, None, @@ -11,7 +11,7 @@ fn main() -> Result<(), un_pak::Error> { println!("{}", pak.version()); break; } - Err(un_pak::Error::Version { version, .. }) => { + Err(unpak::Error::Version { version, .. }) => { println!("{version}"); break; }