feat: Move yarr-cli into the workspace package
Some checks failed
build / checks-matrix (push) Has been cancelled
build / checks-build (push) Has been cancelled
build / codecov (push) Has been cancelled
docs / docs (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-10-08 17:14:51 +05:30
parent b876626d3e
commit f039977e94
9 changed files with 52 additions and 85 deletions

32
Cargo.lock generated
View File

@@ -82,12 +82,6 @@ dependencies = [
"windows-sys 0.60.2",
]
[[package]]
name = "anyhow"
version = "1.0.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
[[package]]
name = "arraydeque"
version = "0.5.1"
@@ -588,16 +582,6 @@ dependencies = [
"windows-sys 0.61.2",
]
[[package]]
name = "error-stack"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b878b3fac9613c3c7f22eb70bc8a3c6ebdc03cc11479ee60fde1692d747fd45f"
dependencies = [
"anyhow",
"rustc_version",
]
[[package]]
name = "fastrand"
version = "2.3.0"
@@ -1663,15 +1647,6 @@ version = "0.1.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace"
[[package]]
name = "rustc_version"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
dependencies = [
"semver",
]
[[package]]
name = "rustix"
version = "0.38.44"
@@ -1781,12 +1756,6 @@ dependencies = [
"libc",
]
[[package]]
name = "semver"
version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
[[package]]
name = "serde"
version = "1.0.228"
@@ -2856,7 +2825,6 @@ dependencies = [
"config",
"crossterm 0.29.0",
"dirs",
"error-stack",
"futures",
"ratatui",
"serde",

View File

@@ -1,6 +1,5 @@
[workspace]
members = [
"yarr-cli",
"yarr-api"
]
resolver = "2"
@@ -8,11 +7,61 @@ resolver = "2"
[workspace.dependencies]
# Common dependencies that can be shared across workspace members
tokio = { version = "1.43.1", features = ["full"] }
yarr-api = { path = "yarr-api" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
reqwest = { version = "0.12", features = ["json"] }
chrono = { version = "0.4", features = ["serde"] }
thiserror = "2.0"
error-stack = "0.6"
tracing = "0.1"
tracing-subscriber = "0.3"
[package]
name = "yarr"
version = "0.1.0"
edition = "2021"
license = "MIT"
description = "A TUI client for Sonarr"
authors = ["yarr contributors"]
repository = "https://github.com/user/yarr"
[[bin]]
name = "yarr"
path = "src/main.rs"
[dependencies]
# API client library
yarr-api = { workspace = true }
# CLI dependencies
clap = { version = "4.5", features = ["derive", "env"] }
clap_complete = "4.5"
# Error handling
thiserror = { workspace = true }
# Async runtime
tokio = { workspace = true }
# Logging
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
# TUI dependencies
ratatui = { version = "0.29", features = ["crossterm"] }
crossterm = "0.29"
# Serialization
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
# Date/time handling
chrono = { workspace = true, features = ["serde"] }
# Async utilities
futures = "0.3"
# Configuration
config = "0.15"
toml = "0.9"
dirs = "6.0"

View File

@@ -144,6 +144,7 @@
stableToolchainWithRustAnalyzer
cargo-nextest
cargo-deny
cargo-udeps
]
++ (lib.optionals pkgs.stdenv.isDarwin [
apple-sdk_13

View File

@@ -1,50 +0,0 @@
[package]
name = "yarr"
version = "0.1.0"
edition = "2021"
license = "MIT"
description = "A TUI client for Sonarr"
authors = ["yarr contributors"]
repository = "https://github.com/user/yarr"
[[bin]]
name = "yarr"
path = "src/main.rs"
[dependencies]
# API client library
yarr-api = { path = "../yarr-api" }
# CLI dependencies
clap = { version = "4.5", features = ["derive", "env"] }
clap_complete = "4.5"
# Error handling
error-stack = { workspace = true }
thiserror = { workspace = true }
# Async runtime
tokio = { workspace = true }
# Logging
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
# TUI dependencies
ratatui = { version = "0.29", features = ["crossterm"] }
crossterm = "0.29"
# Serialization
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
# Date/time handling
chrono = { workspace = true, features = ["serde"] }
# Async utilities
futures = "0.3"
# Configuration
config = "0.15"
toml = "0.9"
dirs = "6.0"

File diff suppressed because one or more lines are too long