Skip to content

Commit

Permalink
sys: Depend on dlib and log only with client/system
Browse files Browse the repository at this point in the history
`wayland-sys` is still a hard dependency of `wayland-backend` for
`wl_interface`, but can at least pull in no dependencies if the rs
backend is used.
  • Loading branch information
ids1024 committed Dec 24, 2024
1 parent 15c261c commit 5964357
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wayland-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ rust-version = "1.65"
readme = "README.md"

[dependencies]
dlib = { version = "0.5.1" }
dlib = { version = "0.5.1", optional = true }
libc = { version = "0.2", optional = true }
once_cell = { version = "1.0", optional = true }
memoffset = { version = "0.9", optional = true }
log = "0.4"
log = { version = "0.4", optional = true }

[build-dependencies]
pkg-config = "0.3.7"

[features]
dlopen = ["once_cell"]
client = []
client = ["dep:dlib", "dep:log"]
cursor = ["client"]
egl = ["client"]
server = ["libc", "memoffset"]
server = ["libc", "memoffset", "dep:dlib", "dep:log"]

[package.metadata.docs.rs]
all-features = true
Expand Down

0 comments on commit 5964357

Please sign in to comment.