[package]
edition = "2024"
rust-version = "1.94.1"
name = "drmkit-planes"
version = "0.1.2"
authors = ["Joel Winarske <joel.winarske@linux.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Display-plane registry, layer model, and the bipartite plane allocator for drmkit."
homepage = "https://github.com/jwinarske/drmkit"
readme = "README.md"
keywords = [
"drm",
"kms",
"plane",
"allocator",
"compositor",
]
categories = [
"graphics",
"os::linux-apis",
]
license = "MIT"
repository = "https://github.com/jwinarske/drmkit"
[features]
default = ["device"]
device = [
"dep:drm",
"dep:drmkit-core",
"dep:rustix",
]
[lib]
name = "drmkit_planes"
path = "src/lib.rs"
[[test]]
name = "allocator"
path = "tests/allocator.rs"
[[test]]
name = "matching_properties"
path = "tests/matching_properties.rs"
[[test]]
name = "probe_device"
path = "tests/probe_device.rs"
required-features = ["device"]
[dependencies.drm]
version = "0.15"
optional = true
[dependencies.drmkit-core]
version = "0.1.2"
optional = true
[dependencies.drmkit-fmt]
version = "0.1.2"
[dependencies.rustix]
version = "1"
features = ["std"]
optional = true
default-features = false
[dependencies.thiserror]
version = "2"
default-features = false
[dev-dependencies.drm-ffi]
version = "0.9"
[dev-dependencies.proptest]
version = "1"
[lints.clippy]
exhaustive_enums = "warn"
exhaustive_structs = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "deny"
module_name_repetitions = "allow"
undocumented_unsafe_blocks = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1