libwayshot 0.8.0

Screenshot crate for wlroots based compositors implementing the zwlr_screencopy_v1 protocol.
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"
name = "libwayshot"
version = "0.8.0"
authors = ["Shinyzenith <https://aakash.is-a.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Screenshot crate for wlroots based compositors implementing the zwlr_screencopy_v1 protocol."
readme = "README.md"
keywords = [
    "screenshot",
    "wayland",
    "wlroots",
    "wayshot",
]
license = "BSD-2-Clause"
repository = "https://github.com/waycrate/wayshot"

[features]
avif = ["image/avif"]
default = [
    "png",
    "egl",
]
egl = [
    "dep:gl",
    "dep:r-egl-wayland",
]
jpeg = ["image/jpeg"]
png = ["image/png"]
qoi = ["image/qoi"]
webp = ["image/webp"]

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

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

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

[dependencies.drm]
version = "0.15"

[dependencies.gbm]
version = "0.18"

[dependencies.gl]
version = "0.14"
optional = true

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

[dependencies.memmap2]
version = "0.9"

[dependencies.r-egl-wayland]
version = "0.7"
optional = true

[dependencies.rustix]
version = "1.1"
features = [
    "fs",
    "shm",
]

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dependencies.wayland-backend]
version = "0.3"
features = ["client_system"]

[dependencies.wayland-client]
version = "0.31"

[dependencies.wayland-protocols]
version = "0.32"
features = [
    "client",
    "staging",
    "unstable",
]

[dependencies.wayland-protocols-wlr]
version = "0.3"
features = ["client"]