comparison Cargo.toml @ 20:f81d56c5da76 default tip

Use features to condition building binaries.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 26 Aug 2021 23:49:52 +0200
parents ba09079686a0
children
comparison
equal deleted inserted replaced
19:ba09079686a0 20:f81d56c5da76
7 description = "Tablet emulator, for people who don’t own one" 7 description = "Tablet emulator, for people who don’t own one"
8 8
9 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 9 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
10 10
11 [features] 11 [features]
12 default = ["gui"] 12 default = ["gui", "network"]
13 13
14 gui = ["cairo-rs", "gdk", "gio", "glib", "gtk"] 14 gui = ["cairo-rs", "gdk", "gio", "glib", "gtk"]
15 network = []
15 16
16 [dependencies] 17 [dependencies]
17 input-linux = "0.3.0" 18 input-linux = "0.3.0"
18 bitflags = "1.2.1" 19 bitflags = "1.2.1"
19 serde = { version = "1.0", features = ["derive"] } 20 serde = { version = "1.0", features = ["derive"] }
28 lto = true 29 lto = true
29 30
30 [[bin]] 31 [[bin]]
31 name = "tablet-emu" 32 name = "tablet-emu"
32 path = "src/bin/standalone.rs" 33 path = "src/bin/standalone.rs"
34 required-features = ["gui"]
33 35
34 [[bin]] 36 [[bin]]
35 name = "tablet-emud" 37 name = "tablet-emud"
36 path = "src/bin/server.rs" 38 path = "src/bin/server.rs"
39 required-features = ["network"]
37 40
38 [[bin]] 41 [[bin]]
39 name = "tablet-emu-remote" 42 name = "tablet-emu-remote"
40 path = "src/bin/client.rs" 43 path = "src/bin/client.rs"
44 required-features = ["gui", "network"]