[package]
edition = "2021"
rust-version = "1.85"
name = "rar-stream"
version = "5.3.2"
build = "build.rs"
exclude = [
"__fixtures__/",
"benches/",
"examples/",
"fuzz/",
"scripts/",
"test-browser/",
".github/",
"*.node",
"pkg/",
"target/",
"node_modules/",
"npm/",
"test-results/",
"pgo-data/",
"*.mjs",
"*.ts",
"*.js",
"lib/",
"pw",
"cliff.toml",
"release-plz.toml",
"package.json",
"package-lock.json",
"eslint.config.mjs",
"playwright.config.ts",
"tsconfig.json",
"vitest.config.ts",
".npmignore",
".gitignore",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance RAR streaming library with optional async, crypto, NAPI, and WASM support"
documentation = "https://docs.rs/rar-stream"
readme = "README.md"
keywords = [
"rar",
"archive",
"streaming",
"compression",
"encryption",
]
categories = [
"compression",
"encoding",
"parser-implementations",
]
license = "MIT"
repository = "https://github.com/doom-fish/rar-stream"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[package.metadata.docs.rs]
features = [
"crypto",
"async",
]
all-features = false
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
async = ["dep:tokio"]
crypto = [
"dep:aes",
"dep:cbc",
"dep:pbkdf2",
"dep:sha2",
"dep:sha1",
]
default = []
napi = [
"dep:napi",
"dep:napi-derive",
"dep:napi-build",
"async",
"parallel",
]
parallel = [
"dep:rayon",
"dep:crossbeam-channel",
]
wasm = [
"dep:wasm-bindgen",
"dep:js-sys",
]
[lib]
name = "rar_stream"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[dependencies.aes]
version = "0.8.4"
optional = true
[dependencies.cbc]
version = "0.1.2"
optional = true
[dependencies.crossbeam-channel]
version = "0.5"
optional = true
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.napi]
version = "2"
features = [
"async",
"napi6",
"serde-json",
]
optional = true
[dependencies.napi-derive]
version = "2"
optional = true
[dependencies.pbkdf2]
version = "0.12.2"
optional = true
[dependencies.rayon]
version = "1.10"
optional = true
[dependencies.sha1]
version = "0.10.6"
optional = true
[dependencies.sha2]
version = "0.10.9"
optional = true
[dependencies.tokio]
version = "1"
features = [
"fs",
"io-util",
"sync",
]
optional = true
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.tokio]
version = "1"
features = [
"fs",
"io-util",
"sync",
"rt",
"macros",
]
[dev-dependencies.unrar]
version = "0.5"
[build-dependencies.napi-build]
version = "2"
optional = true
[lints.clippy]
bool_to_int_with_if = "allow"
branches_sharing_code = "allow"
case_sensitive_file_extension_comparisons = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
doc_markdown = "allow"
fn_params_excessive_bools = "allow"
if_not_else = "allow"
inline_always = "allow"
io_other_error = "allow"
items_after_statements = "allow"
manual_let_else = "allow"
manual_swap = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_late_init = "allow"
needless_pass_by_ref_mut = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
new_without_default = "allow"
no_effect_underscore_binding = "allow"
not_unsafe_ptr_arg_deref = "allow"
option_if_let_else = "allow"
ptr_as_ptr = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_long_first_doc_paragraph = "allow"
too_many_lines = "allow"
type_complexity = "allow"
uninit_vec = "allow"
uninlined_format_args = "allow"
unnecessary_cast = "allow"
unnecessary_wraps = "allow"
unreadable_literal = "allow"
unused_self = "allow"
use_self = "allow"
useless_let_if_seq = "allow"
verbose_bit_mask = "allow"
while_let_loop = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "allow"
unsafe_code = "allow"
[profile.bench]
lto = "fat"
codegen-units = 1
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"