[package]
edition = "2021"
rust-version = "1.85"
name = "lzo"
version = "0.1.3"
authors = ["Albert Hui"]
build = false
exclude = ["validation/lzodiff"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe, dependency-free, no_std pure-Rust LZO1X decompressor — bounds-checked and fuzz-hardened for reading untrusted lzo1x_1 / lzo1x_999 streams."
homepage = "https://github.com/SecurityRonin/lzo"
documentation = "https://docs.rs/lzo"
readme = "README.md"
keywords = [
"lzo",
"lzo1x",
"decompression",
"no-std",
"forensics",
]
categories = [
"compression",
"no-std",
]
license = "Apache-2.0"
repository = "https://github.com/SecurityRonin/lzo"
[features]
alloc = []
default = ["alloc"]
[lib]
name = "lzo"
path = "src/lib.rs"
[[test]]
name = "errors"
path = "tests/errors.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[lints.clippy]
correctness = "deny"
expect_used = "deny"
suspicious = "deny"
unwrap_used = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.cast_possible_truncation]
level = "allow"
priority = 1
[lints.clippy.cast_possible_wrap]
level = "allow"
priority = 1
[lints.clippy.cast_precision_loss]
level = "allow"
priority = 1
[lints.clippy.cast_sign_loss]
level = "allow"
priority = 1
[lints.clippy.missing_errors_doc]
level = "allow"
priority = 1
[lints.clippy.missing_panics_doc]
level = "allow"
priority = 1
[lints.clippy.module_name_repetitions]
level = "allow"
priority = 1
[lints.clippy.must_use_candidate]
level = "allow"
priority = 1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.verbose_bit_mask]
level = "allow"
priority = 1
[lints.rust]
unsafe_code = "forbid"