`websocket` feature unconditionally depends on `tokio-rustls`
[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.
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?
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
That should do the trick, indeed.
@ventosus @Ddystopia we are currently working on new architecture, we will publish the new architecture soon.