I am a little lost. Trying to add rumqttc with cargo add rumqttc --all-features
and get error: unexpected argument '--all-features' found
I can't find any information about '--all-features' being removed from cargo, but cargo add --help doesn't mention it either.. Any ideas what i am missing?
I don't think this was ever supported. Other commands like cargo build and cargo run support --all-features, but adding a dependency with all features enabled in your manifest is something I haven't seen yet. Also, I don't believe you want to do that, because from a quick glance at rumqttc, it looks like it has features that are incompatible with each other, namely use-rustls and use-native-tls. You can explicitly define which features Cargo should add with the --features flag, like: