mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-14 16:50:55 +03:00
The gtk frontend can now be built in windows! The github workflow is updated to build GTK and add it to the releases section.
60 lines
2.3 KiB
TOML
60 lines
2.3 KiB
TOML
[package]
|
|
name = "lan-mouse"
|
|
description = "Software KVM Switch / mouse & keyboard sharing software for Local Area Networks"
|
|
version = "0.4.0"
|
|
edition = "2021"
|
|
license = "GPL-3.0-or-later"
|
|
repository = "https://github.com/ferdinandschober/lan-mouse"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[profile.release]
|
|
strip = true
|
|
lto = "fat"
|
|
|
|
[dependencies]
|
|
tempfile = "3.8"
|
|
trust-dns-resolver = "0.23"
|
|
memmap = "0.7"
|
|
toml = "0.8"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
anyhow = "1.0.71"
|
|
log = "0.4.20"
|
|
env_logger = "0.10.0"
|
|
serde_json = "1.0.107"
|
|
tokio = {version = "1.32.0", features = ["io-util", "macros", "net", "rt", "sync", "signal"] }
|
|
async-trait = "0.1.73"
|
|
futures-core = "0.3.28"
|
|
futures = "0.3.28"
|
|
clap = { version="4.4.11", features = ["derive"] }
|
|
gtk = { package = "gtk4", version = "0.7.2", features = ["v4_2"], optional = true }
|
|
adw = { package = "libadwaita", version = "0.5.2", features = ["v1_1"], optional = true }
|
|
async-channel = { version = "2.1.1", optional = true }
|
|
|
|
[target.'cfg(all(unix, not(target_os="macos")))'.dependencies]
|
|
wayland-client = { version="0.31.1", optional = true }
|
|
wayland-protocols = { version="0.31.0", features=["client", "staging", "unstable"], optional = true }
|
|
wayland-protocols-wlr = { version="0.2.0", features=["client"], optional = true }
|
|
wayland-protocols-misc = { version="0.2.0", features=["client"], optional = true }
|
|
x11 = { version = "2.21.0", features = ["xlib", "xtest"], optional = true }
|
|
ashpd = { version = "0.6.2", default-features = false, features = ["tokio"], optional = true }
|
|
reis = { git = "https://github.com/ids1024/reis", features = [ "tokio" ], optional = true }
|
|
libc = { version="0.2.148", optional = true }
|
|
|
|
[target.'cfg(target_os="macos")'.dependencies]
|
|
core-graphics = { version = "0.23", features = ["highsierra"] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winapi = { version = "0.3.9", features = ["winuser"] }
|
|
|
|
[build-dependencies]
|
|
glib-build-tools = "0.18.0"
|
|
|
|
[features]
|
|
default = ["wayland", "x11", "xdg_desktop_portal", "libei", "gtk"]
|
|
wayland = ["dep:wayland-client", "dep:wayland-protocols", "dep:wayland-protocols-wlr", "dep:wayland-protocols-misc" ]
|
|
x11 = ["dep:x11"]
|
|
xdg_desktop_portal = ["dep:ashpd"]
|
|
libei = ["dep:reis", "dep:ashpd", "dep:libc" ]
|
|
gtk = ["dep:gtk", "dep:adw", "dep:async-channel"]
|