-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
native_viewer
is now an opt-in feature of the rerun
library
#2064
Conversation
This improves compile-times for users that use an external rerun binary. The `rerun` binary, on the other hand, now has `native_viewer` as a _required_ feature. In is an unhappy compromise. Closes #1997
@@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0" | |||
publish = false | |||
|
|||
[dependencies] | |||
rerun = { path = "../../../crates/rerun", features = ["web_viewer"] } | |||
rerun = { path = "../../../crates/rerun", features = ["native_viewer"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did this one lose the web?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dna
always uses native_viewer::spawn
, never web
# For the `rerun` binary, always add the `native_viewer` feature. | ||
# See https://github.com/rerun-io/rerun/issues/1997 | ||
name = "rerun" | ||
required-features = ["native_viewer"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we maybe also put the web-viewer
for this one...? that would avoid the dreaded cargo install rerun -F web_viewer
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also slow down our own cargo r -p rerun
a lot 😭
This improves compile-times for users that use an external rerun binary. The `rerun` binary, on the other hand, now has `native_viewer` as a _required_ feature. In is an unhappy compromise. Closes #1997
What
This improves compile-times for users that use an external
rerun
binary. If you want to usespawn
orshow
you now have to add thenative_viewer
feature:rerun = { version = "0.6.0", features = ["native_viewer"] }
The
rerun
binary, on the other hand, now hasnative_viewer
as a required feature.In is an unhappy compromise.
Closes #1997
Checklist
PR Build Summary: https://build.rerun.io/pr/2064