1[package]
2name = "drm-sys"
3description = "Bindings to the Direct Rendering Manager API"
4repository = "https://github.com/Smithay/drm-rs"
5version = "0.8.0"
6authors = ["Tyler Slabinski <tslabinski@slabity.net>"]
7license = "MIT"
8build = "build.rs"
9rust-version = "1.66"
10edition = "2021"
11
12[features]
13default = []
14use_bindgen = ["bindgen", "pkg-config"]
15update_bindings = ["use_bindgen"]
16
17[build-dependencies]
18bindgen = { version = "0.69.1", optional = true }
19pkg-config = { version = "0.3.19", optional = true }
20
21[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
22linux-raw-sys = { version = "0.6", default-features = false, features = ["general", "no_std"] }
23
24[target.'cfg(not(any(target_os = "android", target_os = "linux")))'.dependencies]
25libc = "0.2"
26