mirror of
https://github.com/xavo95/repak.git
synced 2025-01-31 06:59:35 +00:00
rebrand before crates.io publish
This commit is contained in:
parent
600bbd21a1
commit
d0f9767444
4 changed files with 15 additions and 12 deletions
|
@ -1,8 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "un-pak"
|
name = "unpak"
|
||||||
authors = ["spuds"]
|
authors = ["spuds"]
|
||||||
repository = "https://github.com/bananaturtlesandwich/un-pak"
|
repository = "https://github.com/bananaturtlesandwich/unpak"
|
||||||
description = "a no-nonsense unreal pak parsing crate"
|
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"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
fn main() -> Result<(), un_pak::Error> {
|
fn main() -> Result<(), unpak::Error> {
|
||||||
let pak = un_pak::Pak::new(
|
let pak = unpak::Pak::new(
|
||||||
std::io::BufReader::new(std::io::Cursor::new(include_bytes!("rando_p.pak"))),
|
std::io::BufReader::new(std::io::Cursor::new(include_bytes!("rando_p.pak"))),
|
||||||
un_pak::Version::CompressionEncryption,
|
unpak::Version::CompressionEncryption,
|
||||||
None,
|
None,
|
||||||
)?;
|
)?;
|
||||||
for file in pak.files() {
|
for file in pak.files() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
fn main() -> Result<(), un_pak::Error> {
|
fn main() -> Result<(), unpak::Error> {
|
||||||
let mut pak = un_pak::Pak::new(
|
let mut pak = unpak::Pak::new(
|
||||||
std::io::BufReader::new(std::io::Cursor::new(include_bytes!("rando_p.pak"))),
|
std::io::BufReader::new(std::io::Cursor::new(include_bytes!("rando_p.pak"))),
|
||||||
un_pak::Version::CompressionEncryption,
|
unpak::Version::CompressionEncryption,
|
||||||
None,
|
None,
|
||||||
)?;
|
)?;
|
||||||
for file in pak.files() {
|
for file in pak.files() {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
fn main() -> Result<(), un_pak::Error> {
|
fn main() -> Result<(), unpak::Error> {
|
||||||
// drag onto or open any pak with the example
|
// drag onto or open any pak with the example
|
||||||
let path = std::env::args().nth(1).unwrap_or_default();
|
let path = std::env::args().nth(1).unwrap_or_default();
|
||||||
for ver in un_pak::Version::iter() {
|
for ver in unpak::Version::iter() {
|
||||||
match un_pak::Pak::new(
|
match unpak::Pak::new(
|
||||||
std::io::BufReader::new(std::fs::OpenOptions::new().read(true).open(&path)?),
|
std::io::BufReader::new(std::fs::OpenOptions::new().read(true).open(&path)?),
|
||||||
ver,
|
ver,
|
||||||
None,
|
None,
|
||||||
|
@ -11,7 +11,7 @@ fn main() -> Result<(), un_pak::Error> {
|
||||||
println!("{}", pak.version());
|
println!("{}", pak.version());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Err(un_pak::Error::Version { version, .. }) => {
|
Err(unpak::Error::Version { version, .. }) => {
|
||||||
println!("{version}");
|
println!("{version}");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue