forked from ShadowBlip/InputPlumber
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
149 lines (142 loc) · 4.89 KB
/
Cargo.toml
File metadata and controls
149 lines (142 loc) · 4.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[package]
name = "inputplumber"
version = "0.66.0"
edition = "2021"
license = "GPL-3.0-or-later"
description = "Open source input manager for Linux"
repository = "https://github.com/ShadowBlip/InputPlumber.git"
authors = [
"William Edwards <shadowapex@gmail.com>",
"Derek J. Clark <derekjohn.clark@gmail.com>",
]
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/inputplumber", dest = "/usr/bin/inputplumber", mode = "755" },
{ source = "rootfs/usr/share/dbus-1/system.d/org.shadowblip.InputPlumber.conf", dest = "/usr/share/dbus-1/system.d/org.shadowblip.InputPlumber.conf", mode = "644" },
{ source = "rootfs/usr/share/polkit-1/actions/org.shadowblip.InputPlumber.policy", dest = "/usr/share/polkit-1/actions/org.shadowblip.InputPlumber.policy", mode = "644" },
{ source = "rootfs/usr/lib/systemd/system/inputplumber.service", dest = "/usr/lib/systemd/system/inputplumber.service", mode = "644" },
{ source = "rootfs/usr/lib/systemd/system/inputplumber-suspend.service", dest = "/usr/lib/systemd/system/inputplumber-suspend.service", mode = "644" },
{ source = "rootfs/usr/share/inputplumber/devices/*.yaml", dest = "/usr/share/inputplumber/devices/", mode = "644" },
{ source = "rootfs/usr/share/inputplumber/schema/*.json", dest = "/usr/share/inputplumber/schema/", mode = "644" },
{ source = "rootfs/usr/share/inputplumber/capability_maps/*.yaml", dest = "/usr/share/inputplumber/capability_maps/", mode = "644" },
{ source = "rootfs/usr/share/inputplumber/profiles/*.yaml", dest = "/usr/share/inputplumber/profiles/", mode = "644" },
{ source = "rootfs/usr/lib/udev/hwdb.d/*.hwdb", dest = "/usr/lib/udev/hwdb.d/", mode = "644" },
{ source = "rootfs/usr/lib/udev/rules.d/*.rules", dest = "/usr/lib/udev/rules.d/", mode = "644" },
]
auto-req = "no"
[package.metadata.generate-rpm.requires]
libiio = "*"
libevdev = "*"
# debian package needs pkg-config, libclang-dev, libiio-dev and libudev-dev to build
# while runtime dependencies are libiio0 and libudev1
# libevdev2 and libevdev-dev are listed but not needed
[package.metadata.deb]
license-file = ["LICENSE", "4"]
extended-description = """\
Input routing and control daemon for Linux.
It can be used to combine any number of input devices
(like gamepads, mice, and keyboards) and translate
their input to a variety of virtual device formats."""
depends = "$auto"
section = "utility"
priority = "optional"
assets = [
[
"target/release/inputplumber",
"usr/bin/inputplumber",
"755",
],
[
"rootfs/usr/share/dbus-1/system.d/org.shadowblip.InputPlumber.conf",
"usr/share/dbus-1/system.d/org.shadowblip.InputPlumber.conf",
"644",
],
[
"rootfs/usr/share/polkit-1/actions/org.shadowblip.InputPlumber.policy",
"usr/share/polkit-1/actions/org.shadowblip.InputPlumber.policy",
"644",
],
[
"rootfs/usr/lib/systemd/system/*",
"usr/lib/systemd/system/",
"644",
],
[
"rootfs/usr/lib/udev/hwdb.d/*",
"usr/lib/udev/hwdb.d/",
"644",
],
[
"rootfs/usr/lib/udev/rules.d/*",
"usr/lib/udev/rules.d/",
"644",
],
[
"rootfs/usr/share/inputplumber/devices/*",
"usr/share/inputplumber/devices/",
"644",
],
[
"rootfs/usr/share/inputplumber/schema/*",
"usr/share/inputplumber/schema/",
"644",
],
[
"rootfs/usr/share/inputplumber/capability_maps/*",
"usr/share/inputplumber/capability_maps/",
"644",
],
[
"rootfs/usr/share/inputplumber/profiles/*",
"usr/share/inputplumber/profiles/",
"644",
],
]
[features]
polkit = []
[[bin]]
name = "generate"
path = "./src/generate.rs"
[dependencies]
clap = { version = "4.5.29", features = ["derive", "string"] }
clap_complete = "4.5.44"
env_logger = "0.11.6"
evdev = { git = "https://github.com/emberian/evdev.git", features = [
"tokio",
], rev = "42b58ee08508b7799322a13bf89121a1d29cf0a2" }
futures = "0.3.31"
glob-match = "0.2.1"
hidapi = "2.6.3"
industrial-io = "0.6.0"
#evdev = { version = "0.12.1", features = ["tokio"] }
inotify = "0.11.0"
# Omit trace logging for release builds
log = { version = "0.4.25", features = [
"max_level_trace",
"release_max_level_debug",
] }
mio = { version = "1.0.3", features = ["os-poll", "os-ext", "net"] }
nix = { version = "0.29.0", features = ["fs"] }
packed_struct = "0.10.1"
procfs = "0.17.0"
rand = "0.9.0"
ratatui = "0.29.0"
schemars = "0.8.22"
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.140"
serde_yaml = "0.9.34"
tabled = { version = "0.18.0", features = ["ansi"] }
thiserror = "1.0.69"
tokio = { version = "1.43.0", features = ["full"] }
udev = { version = "0.9.3", features = ["mio"] }
uhid-virt = "0.0.8"
version-compare = "0.2.0"
virtual-usb = { git = "https://github.com/ShadowBlip/virtual-usb-rs.git", rev = "5c4c551a23b56f627a36d6775a5876c174be9eb3" }
xdg = "2.5.2"
zbus = { version = "5.5.0", default-features = false, features = ["tokio"] }
zbus_macros = "5.5.0"
[profile.release]
debug = false
strip = true
lto = true
codegen-units = 1