[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:
@@ -27,7 +27,6 @@ cpal = "0.15"
|
||||
opus = "0.3"
|
||||
trx-app = { path = "../trx-app" }
|
||||
trx-backend = { path = "trx-backend", features = ["soapysdr"] }
|
||||
trx-backend-soapysdr = { path = "trx-backend/trx-backend-soapysdr" }
|
||||
trx-core = { path = "../trx-core" }
|
||||
trx-aprs = { path = "../decoders/trx-aprs" }
|
||||
trx-cw = { path = "../decoders/trx-cw" }
|
||||
|
||||
@@ -278,7 +278,7 @@ fn build_sdr_rig_from_instance(
|
||||
})
|
||||
.collect();
|
||||
|
||||
let sdr_rig = trx_backend_soapysdr::SoapySdrRig::new_with_config(
|
||||
let sdr_rig = trx_backend::SoapySdrRig::new_with_config(
|
||||
args,
|
||||
&channels,
|
||||
&rig_cfg.sdr.gain.mode,
|
||||
|
||||
@@ -13,6 +13,8 @@ mod dummy;
|
||||
use trx_backend_ft450d::Ft450d;
|
||||
#[cfg(feature = "ft817")]
|
||||
use trx_backend_ft817::Ft817;
|
||||
#[cfg(feature = "soapysdr")]
|
||||
pub use trx_backend_soapysdr::SoapySdrRig;
|
||||
|
||||
/// Connection details for instantiating a rig backend.
|
||||
#[derive(Debug, Clone)]
|
||||
|
||||
Reference in New Issue
Block a user