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

Show list of enabled feature with rerun --version #7744

Merged
merged 3 commits into from
Oct 15, 2024
Merged

Conversation

emilk
Copy link
Member

@emilk emilk commented Oct 15, 2024

What

This automatically includes the list of enabled features for the top-level crate in rerun --version as well as the Rerun menu.

Native

image

Web

image

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!
  • If have noted any breaking changes to the log API in CHANGELOG.md and the migration guide

To run all checks from main, comment on the PR with @rerun-bot full-check.

@emilk emilk added 🧑‍💻 dev experience developer experience (excluding CI) include in changelog CLI Related to the Rerun CLI labels Oct 15, 2024
@emilk
Copy link
Member Author

emilk commented Oct 15, 2024

@rerun-bot full-check

Copy link

@jleibs
Copy link
Member

jleibs commented Oct 15, 2024

Don't love that the default behavior of this in the viewer is to show a single feature called analytics:
image

@emilk
Copy link
Member Author

emilk commented Oct 15, 2024

Users that start the viewer after pip install rerun-sdk will see

image

These are the features of rerun-cli, which are the interesting ones.

For the web-viewer we show the enabled features of re_viewer… which is very much less interesting. I'll do a fix.

@emilk
Copy link
Member Author

emilk commented Oct 15, 2024

Fixed!

Native:
image

Web:
image

@Wumpf Wumpf merged commit 5325fd8 into main Oct 15, 2024
35 checks passed
@Wumpf Wumpf deleted the emilk/auto-feature-flags branch October 15, 2024 17:00
emilk added a commit that referenced this pull request Oct 16, 2024
emilk added a commit that referenced this pull request Oct 16, 2024
@emilk emilk added exclude from changelog PRs with this won't show up in CHANGELOG.md and removed include in changelog labels Oct 16, 2024
emilk added a commit that referenced this pull request Oct 16, 2024
* Reverts #7744

The PR caused the crate publishing step to fail with this message:

```
Failed to publish re_sdk:
error: failed to verify package tarball

Caused by:
  Source directory was modified by build.rs during cargo publish. Build scripts should not modify anything outside of OUT_DIR.
  Added: /home/runner/work/rerun/rerun/target/package/re_sdk-0.19.0-alpha.9/Cargo.lock
```


(https://github.com/rerun-io/rerun/actions/runs/11350925172/job/31573371223)

I don't know why, and this close to release I don't have time to figure
out why.
Wumpf pushed a commit that referenced this pull request Oct 25, 2024
* Reverts #7770
* Re-applies #7744

The revert was because during `cargo publish`, a `Cargo.lock` file
materialized, and that made cargo angry:

```
Failed to publish re_sdk:
error: failed to verify package tarball

Caused by:
  Source directory was modified by build.rs during cargo publish. Build scripts should not modify anything outside of OUT_DIR.
  Added: /home/runner/work/rerun/rerun/target/package/re_sdk-0.19.0-alpha.9/Cargo.lock
```

So in this PR we only query about which cargo features if we're NOT in a
`cargo publish` build. That should work! We'll know when we next publish
some crates :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Related to the Rerun CLI 🧑‍💻 dev experience developer experience (excluding CI) exclude from changelog PRs with this won't show up in CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants