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

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"