Remove native_viewer
from the default features of rerun
crate
#2177
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #1997
What
Most of our users only use the
rerun
library as a logging library but are still paying the cost of compiling the native viewer.With this PR, the
rerun
crate will not have thenative_viewer
(norweb_viewer
) feature on by default. This halves the compilation time on my computer. It also reduces the chance of crate mismatch (we've had users complaining about us using an olderwgpu
than they, even though they only usererun
for logging).The
native_viewer
feature is only for users using theshow
orspawn
features, which will hopefully be removed soon anyway:spawn
in favor of fork-exec + binary artifacts #2109To install the
rerun
binary withnative_viewer
andweb_viewer
, you now have to runcargo install rerun --features binary
. This will be improved by:rerun
binaries on popular package managers #2108To make things nicer for us developers, I've added
cargo rerun
as a shorthand for compiling and runningrerun
with thenative_viewer
feature, but NOT theweb_viewer
feature.Checklist
PR Build Summary: https://build.rerun.io/pr/2177