refactor: nest trx-frontend under trx-client, trx-backend under trx-server

Move the frontend and backend crate trees to live physically under their
respective binary crate directories, grouping related code together
without merging crate boundaries. Also flatten sub-crate nesting by
moving them out of src/ subdirectories into direct children.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-06 22:47:58 +01:00
parent 4e9f1d2be6
commit 5f91287369
27 changed files with 20 additions and 20 deletions
+7 -7
View File
@@ -5,15 +5,15 @@
[workspace]
members = [
"src/trx-server",
"src/trx-server/trx-backend",
"src/trx-server/trx-backend/trx-backend-ft817",
"src/trx-client",
"src/trx-backend",
"src/trx-backend/src/trx-backend-ft817",
"src/trx-client/trx-frontend",
"src/trx-client/trx-frontend/trx-frontend-http",
"src/trx-client/trx-frontend/trx-frontend-http-json",
"src/trx-client/trx-frontend/trx-frontend-qt",
"src/trx-client/trx-frontend/trx-frontend-rigctl",
"src/trx-core",
"src/trx-frontend",
"src/trx-frontend/src/trx-frontend-http",
"src/trx-frontend/src/trx-frontend-http-json",
"src/trx-frontend/src/trx-frontend-qt",
"src/trx-frontend/src/trx-frontend-rigctl",
]
resolver = "2"
+5 -5
View File
@@ -18,11 +18,11 @@ clap = { workspace = true, features = ["derive"] }
dirs = "6"
libloading = "0.8"
trx-core = { path = "../trx-core" }
trx-frontend = { path = "../trx-frontend" }
trx-frontend-http = { path = "../trx-frontend/src/trx-frontend-http" }
trx-frontend-http-json = { path = "../trx-frontend/src/trx-frontend-http-json" }
trx-frontend-rigctl = { path = "../trx-frontend/src/trx-frontend-rigctl" }
trx-frontend-qt = { path = "../trx-frontend/src/trx-frontend-qt", optional = true }
trx-frontend = { path = "trx-frontend" }
trx-frontend-http = { path = "trx-frontend/trx-frontend-http" }
trx-frontend-http-json = { path = "trx-frontend/trx-frontend-http-json" }
trx-frontend-rigctl = { path = "trx-frontend/trx-frontend-rigctl" }
trx-frontend-qt = { path = "trx-frontend/trx-frontend-qt", optional = true }
[features]
default = []
@@ -8,5 +8,5 @@ version = "0.1.0"
edition = "2021"
[dependencies]
trx-core = { path = "../trx-core" }
trx-core = { path = "../../trx-core" }
tokio = { workspace = true, features = ["sync"] }
@@ -9,7 +9,7 @@ edition = "2021"
[dependencies]
trx-core = { path = "../../../trx-core" }
trx-frontend = { path = "../.." }
trx-frontend = { path = ".." }
tokio = { workspace = true, features = ["full"] }
serde_json = { workspace = true }
tracing = { workspace = true }
@@ -9,7 +9,7 @@ edition = "2021"
[dependencies]
trx-core = { path = "../../../trx-core" }
trx-frontend = { path = "../.." }
trx-frontend = { path = ".." }
tokio = { workspace = true, features = ["full"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

@@ -16,7 +16,7 @@ qt = ["dep:qmetaobject"]
[dependencies]
trx-core = { path = "../../../trx-core" }
trx-frontend = { path = "../.." }
trx-frontend = { path = ".." }
tokio = { workspace = true, features = ["full"] }
tracing = { workspace = true }
@@ -11,4 +11,4 @@ edition = "2021"
tokio = { workspace = true, features = ["full"] }
tracing = { workspace = true }
trx-core = { path = "../../../trx-core" }
trx-frontend = { path = "../.." }
trx-frontend = { path = ".." }
+1 -1
View File
@@ -17,5 +17,5 @@ tracing-subscriber = { workspace = true }
clap = { workspace = true, features = ["derive"] }
dirs = "6"
libloading = "0.8"
trx-backend = { path = "../trx-backend" }
trx-backend = { path = "trx-backend" }
trx-core = { path = "../trx-core" }
@@ -12,8 +12,8 @@ default = ["ft817"]
ft817 = ["dep:trx-backend-ft817"]
[dependencies]
trx-core = { path = "../trx-core" }
trx-backend-ft817 = { path = "src/trx-backend-ft817", optional = true }
trx-core = { path = "../../trx-core" }
trx-backend-ft817 = { path = "trx-backend-ft817", optional = true }
tokio = { workspace = true, features = ["full"] }
tokio-serial = { workspace = true }
serde = { workspace = true, features = ["derive"] }