# 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.85"
name = "lamco-video"
version = "0.1.7"
authors = ["Greg Lamberson <greg@lamco.io>"]
build = false
exclude = [
    "/.github/",
    "/tests/",
    "*.orig",
    "*.original",
    "*.bak",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Video frame processing and bitmap conversion for Wayland screen capture, by Lamco Development"
homepage = "https://lamco.ai"
documentation = "https://docs.rs/lamco-video"
readme = "README.md"
keywords = [
    "video",
    "bitmap",
    "wayland",
    "screen-capture",
    "frame",
]
categories = [
    "multimedia::video",
    "graphics",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/lamco-admin/lamco-wayland"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[badges.maintenance]
status = "actively-developed"

[features]
damage = []
default = []
full = ["damage"]

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

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

[dependencies.lamco-pipewire]
version = "0.4.0"

[dependencies.parking_lot]
version = "0.12"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "rt",
    "time",
]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.tokio]
version = "1"
features = [
    "sync",
    "rt",
    "time",
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"

[lints.clippy]
as_conversions = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
large_futures = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_range_loop = "allow"
or_fun_call = "warn"
panic = "warn"
rc_buffer = "warn"
similar_names = "warn"
unwrap_used = "warn"
wildcard_imports = "warn"

[lints.rust]
elided_lifetimes_in_paths = "warn"
single_use_lifetimes = "warn"
unreachable_pub = "warn"
unsafe_code = "warn"
