Files
craft-libs/crates/wayland/Cargo.toml
T

30 lines
1.1 KiB
TOML

[package]
name = "craft-wayland"
description = "The Wayland surface call that needs `unsafe`, behind a safe API, so no other crate allows `unsafe`."
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
repository.workspace = true
[target.'cfg(target_os = "linux")'.dependencies]
raw-window-handle = "0.6"
wayland-client = "0.31"
# The window's own `wl_display` and `wl_surface` as a connection and a proxy, from their raw handles.
wayland-backend = { version = "0.3", features = ["client_system"] }
# The workspace table with `unsafe_code` at `deny`: `lib.rs` allows it for this crate's FFI calls, and design-lint's
# `contract/unsafe-allow` rule names this crate's source as one of the places that may. Cargo cannot override one
# workspace lint.
[lints.rust]
unsafe_code = "deny"
missing_docs = "warn"
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(craft_pdf_unicode_fixtures)"] }
[lints.clippy]
cognitive_complexity = "deny"
too_many_arguments = "deny"
wildcard_imports = "deny"
dbg_macro = "warn"
todo = "warn"