# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.81"
name = "lz4_flex"
version = "0.12.2"
authors = [
    "Pascal Seitz <pascal.seitz@gmail.com>",
    "Arthur Silva <arthurprs@gmail.com>",
    "ticki <Ticki@users.noreply.github.com>",
]
build = false
include = [
    "src/*.rs",
    "src/frame/**/*",
    "src/block/**/*",
    "README.md",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fastest LZ4 implementation in Rust, no unsafe by default."
homepage = "https://github.com/pseitz/lz4_flex"
readme = "README.md"
keywords = [
    "compression",
    "lz4",
    "compress",
    "decompression",
    "decompress",
]
license = "MIT"
repository = "https://github.com/pseitz/lz4_flex"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
checked-decode = []
default = [
    "std",
    "safe-encode",
    "safe-decode",
    "frame",
    "checked-decode",
]
frame = [
    "std",
    "dep:twox-hash",
]
nightly = []
safe-decode = []
safe-encode = []
std = []

[lib]
name = "lz4_flex"
path = "src/lib.rs"

[dependencies.twox-hash]
version = "2.0.0"
features = ["xxhash32"]
optional = true
default-features = false

[dev-dependencies.binggan]
version = "0.14.0"

[dev-dependencies.jemallocator]
version = "0.5.4"

[dev-dependencies.lz4-compress]
version = "0.1.1"

[dev-dependencies.lzzzz]
version = "2.0.0"

[dev-dependencies.more-asserts]
version = "0.3.1"

[dev-dependencies.proptest]
version = "1.0.0"

[dev-dependencies.serde_json]
version = "1.0.91"

[dev-dependencies.snap]
version = "1.1.0"

[profile.bench]
opt-level = 3
lto = true
codegen-units = 1

[profile.release]
opt-level = 3
codegen-units = 1
panic = "unwind"
