]> git.r.bdr.sh - rbdr/lyricli/blobdiff - Cargo.toml
Add rust implementation test
[rbdr/lyricli] / Cargo.toml
diff --git a/Cargo.toml b/Cargo.toml
new file mode 100644 (file)
index 0000000..89aacad
--- /dev/null
@@ -0,0 +1,40 @@
+[package]
+name = "lyricli"
+version = "3.0.0"
+edition = "2021"
+license = "AGPL-3.0-or-later"
+description = "Lyricli (lrc), is a command line tool to print lyrics in your terminal."
+homepage = "https://r.bdr.sh/lyricli.html"
+authors = ["Rubén Beltrán del Río <lyricli@r.bdr.sh>"]
+
+[[bin]]
+name = "lrc"
+path = "src/main.rs"
+
+[dependencies]
+clap = { version = "4.5.2", features = ["derive"] }
+libc = "0.2.153"
+objc = "0.2.7"
+percent-encoding = "2.3.1"
+reqwest = { version = "0.11", features = ["json"] }
+scraper = "0.19.0"
+serde = { version = "1.0.197", features = ["derive"] }
+serde_json = "1.0.114"
+tokio = { version = "1", features = ["full"] }
+
+[profile.release]
+strip = true
+lto = true
+panic = "abort"
+
+[package.metadata.generate-rpm]
+assets = [
+    { source = "target/release/lrc", dest = "/usr/bin/lrc", mode = "755" },
+    { source = "man/lrc.1", dest = "/usr/share/man/man1/lrc.1", mode = "644" },
+]
+
+[package.metadata.deb]
+assets = [
+    ["target/release/lrc", "/usr/bin/lrc", "755" ],
+    ["man/lrc.1", "/usr/share/man/man1/lrc.1", "644" ],
+]