meson: Only enable cargo features when options are enabled
The following discussions from !1043 (merged) should be addressed:
-
@slomo started a discussion: (+3 comments) What does this have to do with
gtk4
? That should apply to all the plugins -
@slomo started a discussion: (+2 comments) And also what does this one have to do with the GStreamer version?
-
@slomo started a discussion: (+2 comments) E.g. RTP is only needed when building the RTP plugin, SDP/WebRTC only if one of the WebRTC plugins is enabled, etc.
Doing this correctly seems like quite a bit of work if it has to be done manually.