fix(activex): drop unused iroh dependency

ActiveX never supports the iroh P2P transport, so remove the iroh
feature from its ironrdp-client dependency instead of enabling it
unconditionally, and delete the now-unreachable Transport::Iroh match
arms this leaves behind.
This commit is contained in:
Marc-André Moreau
2026-09-10 07:30:27 -04:00
parent 21c8a91680
commit 2f0a0158f4
2 changed files with 1 additions and 7 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ doctest = false
[target.'cfg(windows)'.dependencies]
anyhow = "1"
base64 = "0.22"
ironrdp-client = { path = "../ironrdp-client", version = "0.1", features = ["clipboard", "dvc-com-plugin", "gateway", "iroh", "location", "rdpdr", "rustls", "smartcard", "sound", "webauthn"] }
ironrdp-client = { path = "../ironrdp-client", version = "0.1", features = ["clipboard", "dvc-com-plugin", "gateway", "location", "rdpdr", "rustls", "smartcard", "sound", "webauthn"] }
ironrdp-cliprdr = { path = "../ironrdp-cliprdr", version = "0.7" }
ironrdp-cliprdr-format = { path = "../ironrdp-cliprdr-format", version = "0.2.0" }
ironrdp-cliprdr-native = { path = "../ironrdp-cliprdr-native", version = "0.7" }
-6
View File
@@ -3457,8 +3457,6 @@ fn active_x_transport_from_client_transport(
Transport::RDCleanPath(rdcleanpath) => Ok(ActiveXTransport::RDCleanPath(rdcleanpath.clone())),
// Named-pipe RDP (e.g. Windows Sandbox) is agent/desktop-client only.
Transport::NamedPipe { .. } => Err("Windows named-pipe transport is not supported by the ActiveX host"),
// Iroh P2P tunneling is agent/desktop-client only.
Transport::Iroh { .. } => Err("Iroh transport is not supported by the ActiveX host"),
}
}
@@ -11245,10 +11243,6 @@ impl Control {
Transport::NamedPipe { .. } => {
unreachable!("NamedPipe must fail RPC connect before compatibility settings")
}
// Rejected by `active_x_transport_from_client_transport` before settings apply.
Transport::Iroh { .. } => {
unreachable!("Iroh must fail RPC connect before compatibility settings")
}
}
}