# HG changeset patch # User Emmanuel Gil Peyrot # Date 1630014592 -7200 # Node ID f81d56c5da761e3f3076467029a13f33aea75358 # Parent ba09079686a0b470d2bf51f95b72e27483189833 Use features to condition building binaries. diff --git a/Cargo.toml b/Cargo.toml --- a/Cargo.toml +++ b/Cargo.toml @@ -9,9 +9,10 @@ description = "Tablet emulator, for people who don’t own one" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] -default = ["gui"] +default = ["gui", "network"] gui = ["cairo-rs", "gdk", "gio", "glib", "gtk"] +network = [] [dependencies] input-linux = "0.3.0" @@ -30,11 +31,14 @@ lto = true [[bin]] name = "tablet-emu" path = "src/bin/standalone.rs" +required-features = ["gui"] [[bin]] name = "tablet-emud" path = "src/bin/server.rs" +required-features = ["network"] [[bin]] name = "tablet-emu-remote" path = "src/bin/client.rs" +required-features = ["gui", "network"]