webpkit 0.1.0

A pure-Rust WebP codec: lossless (VP8L) and lossy (VP8) behind one decode/encode API.
Documentation
# 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 = "2024"
rust-version = "1.96"
name = "webpkit"
version = "0.1.0"
authors = ["Yasunobu Sakashita <crates.tank733@slmails.com>"]
build = false
exclude = ["tests/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pure-Rust WebP codec: lossless (VP8L) and lossy (VP8) behind one decode/encode API."
homepage = "https://github.com/P4suta/webpkit"
documentation = "https://docs.rs/webpkit"
readme = "README.md"
keywords = [
    "webp",
    "image",
    "codec",
    "lossless",
    "lossy",
]
categories = [
    "multimedia::images",
    "encoding",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/P4suta/webpkit"

[package.metadata.docs.rs]
all-features = true

[features]
alloc = []
bench = []
default = ["std"]
image = [
    "dep:image",
    "alloc",
]
oracle = ["dep:libwebp-sys"]
rayon = [
    "dep:rayon",
    "std",
]
std = ["alloc"]
work-count = []

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

[[example]]
name = "roundtrip"
path = "examples/roundtrip.rs"

[[example]]
name = "vs_libwebp"
path = "examples/vs_libwebp.rs"
required-features = ["oracle"]

[dependencies.image]
version = "0.25"
optional = true
default-features = false

[dependencies.libwebp-sys]
version = "0.14"
optional = true

[dependencies.rayon]
version = "1"
optional = true

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

[lints.clippy]
allow_attributes_without_reason = "deny"
cargo_common_metadata = "allow"
dbg_macro = "deny"
disallowed_macros = "deny"
disallowed_methods = "deny"
disallowed_types = "deny"
expect_used = "warn"
mod_module_files = "deny"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
or_fun_call = "deny"
panic = "warn"
print_stderr = "warn"
print_stdout = "warn"
todo = "warn"
unimplemented = "warn"
unwrap_used = "deny"
wildcard_imports = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.cargo]
level = "deny"
priority = -1

[lints.clippy.nursery]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
elided_lifetimes_in_paths = "deny"
missing_docs = "deny"
single_use_lifetimes = "deny"
static_mut_refs = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unreachable_pub = "deny"
unsafe_op_in_unsafe_fn = "deny"