Disable rust feature option by default
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 2 Mar 2020 05:35:41 +0000 (11:05 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Mon, 2 Mar 2020 05:35:41 +0000 (11:05 +0530)
commit7f231c2d8a8d7f8cae4225e12baf9c33f07a3af9
tree5772457ac0742450bb78f6d7bca02683ff8b5024
parentc67034c5291bf43112d1764cc7c43f6e0ded07d6
Disable rust feature option by default

The only requirement for the rust plugins is that a rust toolchain be
present on the system. This is problematic:

1. This means gst-build on Windows is broken by default if you have
   a Rust toolchain, since glib can't be used uninstalled
2. No output is printed on Windows at all while the rust plugins are
   being built. `custom_target()`'s `console:` keyword argument seems
   to be broken on some Windows shells.
3. Even on Linux/macOS having this enabled by default is problematic
   since it more than doubles the total build time.
4. The biggest issue with having it enabled by default is that it does
   not dependency tracking, so we always run `cargo`, which might
   update crates. This increases friction when you're working on
   unrelated code.
meson_options.txt