feat: Move yarr-cli into the workspace package
This commit is contained in:
32
Cargo.lock
generated
32
Cargo.lock
generated
@@ -82,12 +82,6 @@ dependencies = [
|
|||||||
"windows-sys 0.60.2",
|
"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]]
|
[[package]]
|
||||||
name = "arraydeque"
|
name = "arraydeque"
|
||||||
version = "0.5.1"
|
version = "0.5.1"
|
||||||
@@ -588,16 +582,6 @@ dependencies = [
|
|||||||
"windows-sys 0.61.2",
|
"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]]
|
[[package]]
|
||||||
name = "fastrand"
|
name = "fastrand"
|
||||||
version = "2.3.0"
|
version = "2.3.0"
|
||||||
@@ -1663,15 +1647,6 @@ version = "0.1.26"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace"
|
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]]
|
[[package]]
|
||||||
name = "rustix"
|
name = "rustix"
|
||||||
version = "0.38.44"
|
version = "0.38.44"
|
||||||
@@ -1781,12 +1756,6 @@ dependencies = [
|
|||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "semver"
|
|
||||||
version = "1.0.27"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde"
|
name = "serde"
|
||||||
version = "1.0.228"
|
version = "1.0.228"
|
||||||
@@ -2856,7 +2825,6 @@ dependencies = [
|
|||||||
"config",
|
"config",
|
||||||
"crossterm 0.29.0",
|
"crossterm 0.29.0",
|
||||||
"dirs",
|
"dirs",
|
||||||
"error-stack",
|
|
||||||
"futures",
|
"futures",
|
||||||
"ratatui",
|
"ratatui",
|
||||||
"serde",
|
"serde",
|
||||||
|
|||||||
53
Cargo.toml
53
Cargo.toml
@@ -1,6 +1,5 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
"yarr-cli",
|
|
||||||
"yarr-api"
|
"yarr-api"
|
||||||
]
|
]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
@@ -8,11 +7,61 @@ resolver = "2"
|
|||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
# Common dependencies that can be shared across workspace members
|
# Common dependencies that can be shared across workspace members
|
||||||
tokio = { version = "1.43.1", features = ["full"] }
|
tokio = { version = "1.43.1", features = ["full"] }
|
||||||
|
yarr-api = { path = "yarr-api" }
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
reqwest = { version = "0.12", features = ["json"] }
|
reqwest = { version = "0.12", features = ["json"] }
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
chrono = { version = "0.4", features = ["serde"] }
|
||||||
thiserror = "2.0"
|
thiserror = "2.0"
|
||||||
error-stack = "0.6"
|
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
tracing-subscriber = "0.3"
|
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"
|
||||||
|
|||||||
@@ -144,6 +144,7 @@
|
|||||||
stableToolchainWithRustAnalyzer
|
stableToolchainWithRustAnalyzer
|
||||||
cargo-nextest
|
cargo-nextest
|
||||||
cargo-deny
|
cargo-deny
|
||||||
|
cargo-udeps
|
||||||
]
|
]
|
||||||
++ (lib.optionals pkgs.stdenv.isDarwin [
|
++ (lib.optionals pkgs.stdenv.isDarwin [
|
||||||
apple-sdk_13
|
apple-sdk_13
|
||||||
|
|||||||
@@ -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
Reference in New Issue
Block a user