]> git.r.bdr.sh - rbdr/lyricli/blob - Cargo.toml
Include dbus to use vendored
[rbdr/lyricli] / Cargo.toml
1 [package]
2 name = "lyricli"
3 version = "3.0.0"
4 edition = "2021"
5 license = "AGPL-3.0-or-later"
6 description = "Lyricli (lrc), is a command line tool to print lyrics in your terminal."
7 homepage = "https://r.bdr.sh/lyricli.html"
8 authors = ["Rubén Beltrán del Río <lyricli@r.bdr.sh>"]
9
10 [[bin]]
11 name = "lrc"
12 path = "src/main.rs"
13
14 [dependencies]
15 clap = { version = "4.5.27", features = ["derive"] }
16 percent-encoding = "2.3.1"
17 reqwest = { version = "0.12.12", features = ["json", "native-tls-vendored"] }
18 scraper = "0.22.0"
19 serde = { version = "1.0.217", features = ["derive"] }
20 serde_json = "1.0.137"
21 tokio = { version = "1.43.0", features = ["full"] }
22
23 [target.'cfg(target_os = "macos")'.dependencies]
24 libc = "0.2.169"
25 objc = "0.2.7"
26 cocoa = "0.26.0"
27 objc_id = "0.1.1"
28
29 [target.'cfg(target_os = "linux")'.dependencies]
30 dbus = { version = "0.9.6", features = ["vendored"] }
31 mpris = { version = "2.0.1"}
32
33 [profile.release]
34 strip = true
35 lto = true
36 panic = "abort"
37
38 [package.metadata.generate-rpm]
39 assets = [
40 { source = "target/release/lrc", dest = "/usr/bin/lrc", mode = "755" },
41 { source = "man/lrc.1", dest = "/usr/share/man/man1/lrc.1", mode = "644" },
42 ]
43
44 [package.metadata.deb]
45 assets = [
46 ["target/release/lrc", "/usr/bin/lrc", "755" ],
47 ["man/lrc.1", "/usr/share/man/man1/lrc.1", "644" ],
48 ]