rumqtt icon indicating copy to clipboard operation
rumqtt copied to clipboard

`websocket` feature unconditionally depends on `tokio-rustls`

Open Ddystopia opened this issue 5 months ago • 4 comments

[dependencies.async-tungstenite]
default-features = false
features = ["tokio-rustls-native-certs"]
optional = true
version = "0.25.0"

This is a snippet from Cargo.toml of rumqttc. We don't need tls and don't want to compile ring (it doesn't cross compile properly), but it is still included.

Ddystopia avatar Jul 31 '25 11:07 Ddystopia

I have the same problem, I don't need TLS and need to cross compile which fails currently.

Is there a way to overwrite this in a parent projects Cargo.toml, maybe?

ventosus avatar Aug 07 '25 10:08 ventosus

One possible solution can be , we can introduce a new feature ; [features] websocket = ["dep:async-tungstenite", "async-tungstenite/tokio-runtime","dep:ws_stream_tungstenite", "dep:http"] websocket-tls = ["websocket ","async-tungstenite/tokio-rustls-native-certs"] [dependencies] async-tungstenite = { version = "0.28.0", default-features = false, optional = true } @ventosus @Ddystopia

kR1s0147 avatar Aug 14 '25 13:08 kR1s0147

That should do the trick, indeed.

ventosus avatar Aug 18 '25 07:08 ventosus

@ventosus @Ddystopia we are currently working on new architecture, we will publish the new architecture soon.

giridher-art avatar Sep 15 '25 09:09 giridher-art