Mercurial > tablet-emu
changeset 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 | |
files | Cargo.toml |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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"]