[package]
name = "psarc2"
version = "0.1.0"
edition = "2024"
rust-version = "1.87.0"
description = "PlayStation archive reader"
authors = ["Thomas Versteeg <t@versteeg.email>"]
repository = "https://codeberg.com/tversteeg/psarc2"
documentation = "https://docs.rs/psarc2"
readme = "README.md"
license = "AGPL-3.0-or-later"
categories = [
"compression",
"filesystem",
"parser-implementations",
"game-development",
]
keywords = ["archive", "compression"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["zlib"]
lzma = []
zlib = ["dep:flate2"]
[dependencies]
aes = "0.9.1"
cfb-mode = "0.9.1"
thiserror = "2.0.18"
flate2 = { default-features = false, features = ["zlib-rs"], optional = true, version = "1.1.9" }
[dev-dependencies]
anyhow = "1.0.102"
clap = { features = ["derive"], version = "4.6.1" }
hex = "0.4.3"
[lints.clippy]
nursery = { level = "warn", priority = -1 }
iter_with_drain = "allow"
dbg_macro = "warn"
decimal_literal_representation = "warn"
deref_by_slicing = "warn"
doc_paragraphs_missing_punctuation = "warn"
float_cmp_const = "warn"
format_push_string = "warn"
get_unwrap = "warn"
if_then_some_else_none = "warn"
lossy_float_literal = "warn"
min_ident_chars = "warn"
missing_assert_message = "warn"
missing_asserts_for_indexing = "warn"
missing_docs_in_private_items = "warn"
mutex_atomic = "warn"
non_zero_suggestions = "warn"
panic_in_result_fn = "warn"
partial_pub_fields = "warn"
pub_without_shorthand = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
renamed_function_params = "warn"
self_named_module_files = "warn"
semicolon_outside_block = "warn"
str_to_string = "warn"
string_lit_chars_any = "warn"
tests_outside_test_module = "warn"
try_err = "warn"
unseparated_literal_suffix = "warn"
unused_trait_names = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"
verbose_file_reads = "warn"
negative_feature_names = "warn"
redundant_feature_names = "warn"
wildcard_dependencies = "deny"
pedantic = { level = "warn", priority = -1 }
cast_precision_loss = "allow"
module_name_repetitions = "allow"
needless_pass_by_value = "allow"
unsafe_derive_deserialize = "allow"
redundant_pub_crate = "allow"