Skip to content
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

Merged
merged 1 commit into from
May 9, 2023

Conversation

emilk
Copy link
Member

@emilk emilk commented May 9, 2023

What

This improves compile-times for users that use an external rerun binary. If you want to use spawn or show you now have to add the native_viewer feature:

rerun = { version = "0.6.0", features = ["native_viewer"] }

The rerun binary, on the other hand, now has native_viewer as a required feature.

In is an unhappy compromise.

Closes #1997

Checklist

PR Build Summary: https://build.rerun.io/pr/2064

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
@emilk emilk added 🧑‍💻 dev experience developer experience (excluding CI) dependencies concerning crates, pip packages etc ⏱ build-times compilation times 🦀 Rust API Rust logging API labels May 9, 2023
@@ -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"] }
Copy link
Member

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?

Copy link
Member Author

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"]
Copy link
Member

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...

Copy link
Member Author

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 😭

@emilk emilk merged commit 697af91 into main May 9, 2023
@emilk emilk deleted the emilk/native-viewer-opt-in branch May 9, 2023 13:14
emilk added a commit that referenced this pull request May 9, 2023
emilk added a commit that referenced this pull request May 9, 2023
jprochazk pushed a commit that referenced this pull request May 11, 2023
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
jprochazk pushed a commit that referenced this pull request May 11, 2023
@emilk emilk mentioned this pull request May 25, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⏱ build-times compilation times dependencies concerning crates, pip packages etc 🧑‍💻 dev experience developer experience (excluding CI) 🦀 Rust API Rust logging API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rerun library has native_viewer feature on by default
2 participants