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:
+7
-7
@@ -5,15 +5,15 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
"src/trx-server",
|
"src/trx-server",
|
||||||
|
"src/trx-server/trx-backend",
|
||||||
|
"src/trx-server/trx-backend/trx-backend-ft817",
|
||||||
"src/trx-client",
|
"src/trx-client",
|
||||||
"src/trx-backend",
|
"src/trx-client/trx-frontend",
|
||||||
"src/trx-backend/src/trx-backend-ft817",
|
"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-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"
|
resolver = "2"
|
||||||
|
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ clap = { workspace = true, features = ["derive"] }
|
|||||||
dirs = "6"
|
dirs = "6"
|
||||||
libloading = "0.8"
|
libloading = "0.8"
|
||||||
trx-core = { path = "../trx-core" }
|
trx-core = { path = "../trx-core" }
|
||||||
trx-frontend = { path = "../trx-frontend" }
|
trx-frontend = { path = "trx-frontend" }
|
||||||
trx-frontend-http = { path = "../trx-frontend/src/trx-frontend-http" }
|
trx-frontend-http = { path = "trx-frontend/trx-frontend-http" }
|
||||||
trx-frontend-http-json = { path = "../trx-frontend/src/trx-frontend-http-json" }
|
trx-frontend-http-json = { path = "trx-frontend/trx-frontend-http-json" }
|
||||||
trx-frontend-rigctl = { path = "../trx-frontend/src/trx-frontend-rigctl" }
|
trx-frontend-rigctl = { path = "trx-frontend/trx-frontend-rigctl" }
|
||||||
trx-frontend-qt = { path = "../trx-frontend/src/trx-frontend-qt", optional = true }
|
trx-frontend-qt = { path = "trx-frontend/trx-frontend-qt", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ version = "0.1.0"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
trx-core = { path = "../trx-core" }
|
trx-core = { path = "../../trx-core" }
|
||||||
tokio = { workspace = true, features = ["sync"] }
|
tokio = { workspace = true, features = ["sync"] }
|
||||||
+1
-1
@@ -9,7 +9,7 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
trx-core = { path = "../../../trx-core" }
|
trx-core = { path = "../../../trx-core" }
|
||||||
trx-frontend = { path = "../.." }
|
trx-frontend = { path = ".." }
|
||||||
tokio = { workspace = true, features = ["full"] }
|
tokio = { workspace = true, features = ["full"] }
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
tracing = { workspace = true }
|
tracing = { workspace = true }
|
||||||
+1
-1
@@ -9,7 +9,7 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
trx-core = { path = "../../../trx-core" }
|
trx-core = { path = "../../../trx-core" }
|
||||||
trx-frontend = { path = "../.." }
|
trx-frontend = { path = ".." }
|
||||||
tokio = { workspace = true, features = ["full"] }
|
tokio = { workspace = true, features = ["full"] }
|
||||||
serde = { workspace = true, features = ["derive"] }
|
serde = { workspace = true, features = ["derive"] }
|
||||||
serde_json = { workspace = true }
|
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 |
+1
-1
@@ -16,7 +16,7 @@ qt = ["dep:qmetaobject"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
trx-core = { path = "../../../trx-core" }
|
trx-core = { path = "../../../trx-core" }
|
||||||
trx-frontend = { path = "../.." }
|
trx-frontend = { path = ".." }
|
||||||
tokio = { workspace = true, features = ["full"] }
|
tokio = { workspace = true, features = ["full"] }
|
||||||
tracing = { workspace = true }
|
tracing = { workspace = true }
|
||||||
|
|
||||||
+1
-1
@@ -11,4 +11,4 @@ edition = "2021"
|
|||||||
tokio = { workspace = true, features = ["full"] }
|
tokio = { workspace = true, features = ["full"] }
|
||||||
tracing = { workspace = true }
|
tracing = { workspace = true }
|
||||||
trx-core = { path = "../../../trx-core" }
|
trx-core = { path = "../../../trx-core" }
|
||||||
trx-frontend = { path = "../.." }
|
trx-frontend = { path = ".." }
|
||||||
@@ -17,5 +17,5 @@ tracing-subscriber = { workspace = true }
|
|||||||
clap = { workspace = true, features = ["derive"] }
|
clap = { workspace = true, features = ["derive"] }
|
||||||
dirs = "6"
|
dirs = "6"
|
||||||
libloading = "0.8"
|
libloading = "0.8"
|
||||||
trx-backend = { path = "../trx-backend" }
|
trx-backend = { path = "trx-backend" }
|
||||||
trx-core = { path = "../trx-core" }
|
trx-core = { path = "../trx-core" }
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ default = ["ft817"]
|
|||||||
ft817 = ["dep:trx-backend-ft817"]
|
ft817 = ["dep:trx-backend-ft817"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
trx-core = { path = "../trx-core" }
|
trx-core = { path = "../../trx-core" }
|
||||||
trx-backend-ft817 = { path = "src/trx-backend-ft817", optional = true }
|
trx-backend-ft817 = { path = "trx-backend-ft817", optional = true }
|
||||||
tokio = { workspace = true, features = ["full"] }
|
tokio = { workspace = true, features = ["full"] }
|
||||||
tokio-serial = { workspace = true }
|
tokio-serial = { workspace = true }
|
||||||
serde = { workspace = true, features = ["derive"] }
|
serde = { workspace = true, features = ["derive"] }
|
||||||
Reference in New Issue
Block a user