Skip to content

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 sdk-rust Rust logging API labels May 9, 2023

[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) sdk-rust 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

3 participants