forked from emrebicer/mouce
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
42 lines (35 loc) · 1.42 KB
/
Cargo.toml
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
[package]
name = "mouce"
version = "0.2.1"
edition = "2021"
authors = ["Emre Bicer <[email protected]>"]
license = "MIT"
description = "A library that aims to help simulating and listening mouse actions across different platforms."
homepage = "https://github.com/emrebicer/mouce"
repository = "https://github.com/emrebicer/mouce"
readme = "README.md"
keywords = ["mouse", "events", "listen", "simulate", "click"]
categories = ["accessibility", "command-line-utilities"]
[profile.release]
# Keep the opt-level at 0 for release mode, otherwise uinput module
# does not work as expected. Currently there is no way to target only
# unix-like systems, so this profle change applies to all systems.
#
# This change does not seem to affect the running speed (ran tests with different
# opt-levels and benchmarked them with hyperfine, they all ran at very similar speeds).
# But changing the opt-level results in a small increase on the executable size.
opt-level = 0
[features]
cli = ["clap"]
[lib]
name = "mouce"
path = "src/lib.rs"
[[bin]]
name = "mouce"
path = "src/bin/main.rs"
required-features = ["cli"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
glob = "0.3.0"
[dependencies]
clap = { version = "3.1.8", features = ["derive"], optional = true }