mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Remove the dependency on the `webgpu` crate if the feature is disabled. Note: This doesn't seem to improve the binary size in production mode, so presumably dead code elimination is already working well. Nevertheless, it's preferable to correctly feature guard and it should save a bit of compile-time (when not building with the webgpu feature). Testing: `webgpu` feature is enabled by default in CI, and we test `--no-default-features` too in the HOS build in CI. `cargo tree -p servo --no-default-features` does not show webgpu anymore after this change. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>