Skip to content

Commit 5a28147

Browse files
committed
book: Include ashpd only on linux so that listings run on macos
1 parent 4fe608d commit 5a28147

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

book/listings/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ edition = "2021"
77
[dependencies]
88
adw = { version = "0.7", package = "libadwaita", features = ["v1_5"] }
99
anyhow = "1.0"
10-
ashpd = { version = "0.9", features = ["gtk4"] }
1110
async-channel = "2.0"
1211
dirs = "5.0"
1312
gtk = { version = "0.9", package = "gtk4", features = ["v4_12"] }
@@ -20,6 +19,9 @@ tokio = { version = "1.33.0", features = ["rt-multi-thread"] }
2019
walkdir = "2.3"
2120
xshell = "0.2"
2221

22+
[target.'cfg(target_os = "linux")'.dependencies]
23+
ashpd = { version = "0.9", features = ["gtk4"] }
24+
2325
[build-dependencies]
2426
glib-build-tools = "0.20"
2527

0 commit comments

Comments
 (0)