[refactor](trx-server): access soapysdr through trx-backend facade
Remove direct dependency on trx-backend-soapysdr from server Cargo.toml. Re-export SoapySdrRig from trx-backend instead so server accesses it through the proper facade. This keeps sub-backends internal to trx-backend and maintains proper module organization. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Generated
-1
@@ -2525,7 +2525,6 @@ dependencies = [
|
|||||||
"trx-app",
|
"trx-app",
|
||||||
"trx-aprs",
|
"trx-aprs",
|
||||||
"trx-backend",
|
"trx-backend",
|
||||||
"trx-backend-soapysdr",
|
|
||||||
"trx-core",
|
"trx-core",
|
||||||
"trx-cw",
|
"trx-cw",
|
||||||
"trx-decode-log",
|
"trx-decode-log",
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ cpal = "0.15"
|
|||||||
opus = "0.3"
|
opus = "0.3"
|
||||||
trx-app = { path = "../trx-app" }
|
trx-app = { path = "../trx-app" }
|
||||||
trx-backend = { path = "trx-backend", features = ["soapysdr"] }
|
trx-backend = { path = "trx-backend", features = ["soapysdr"] }
|
||||||
trx-backend-soapysdr = { path = "trx-backend/trx-backend-soapysdr" }
|
|
||||||
trx-core = { path = "../trx-core" }
|
trx-core = { path = "../trx-core" }
|
||||||
trx-aprs = { path = "../decoders/trx-aprs" }
|
trx-aprs = { path = "../decoders/trx-aprs" }
|
||||||
trx-cw = { path = "../decoders/trx-cw" }
|
trx-cw = { path = "../decoders/trx-cw" }
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ fn build_sdr_rig_from_instance(
|
|||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
let sdr_rig = trx_backend_soapysdr::SoapySdrRig::new_with_config(
|
let sdr_rig = trx_backend::SoapySdrRig::new_with_config(
|
||||||
args,
|
args,
|
||||||
&channels,
|
&channels,
|
||||||
&rig_cfg.sdr.gain.mode,
|
&rig_cfg.sdr.gain.mode,
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ mod dummy;
|
|||||||
use trx_backend_ft450d::Ft450d;
|
use trx_backend_ft450d::Ft450d;
|
||||||
#[cfg(feature = "ft817")]
|
#[cfg(feature = "ft817")]
|
||||||
use trx_backend_ft817::Ft817;
|
use trx_backend_ft817::Ft817;
|
||||||
|
#[cfg(feature = "soapysdr")]
|
||||||
|
pub use trx_backend_soapysdr::SoapySdrRig;
|
||||||
|
|
||||||
/// Connection details for instantiating a rig backend.
|
/// Connection details for instantiating a rig backend.
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
|||||||
Reference in New Issue
Block a user