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

Improve usability of rerun::Collection by providing free functions for borrow & take_ownership #7055

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Aug 5, 2024

What

Came up during image refactor: I needed an easy & expressive way to create rerun collections.

Making this part of:

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.

@Wumpf Wumpf merged commit 08a1f74 into main Aug 6, 2024
35 checks passed
@Wumpf Wumpf deleted the andreas/cpp/collection-utils branch August 6, 2024 08:11
Wumpf added a commit that referenced this pull request Aug 6, 2024
…/Rust) (#7043)

### What

Follow-up to image refactors.

* Fixes #7040
* `rerun::Collection` more thoroughly and don't want to do that
currently
* Based on #7055
---

* Rust & C++ image apis now take elements first
* Add some constructors to Image in favor of from_ methods
* Remove direct construction from std::vector - before this caused
issues and now this caused expensive copies (see also #7040)
* Improve overall method documentation
   * special care of pointing out borrow vs ownership 
* Add more tests

### Checklist
* [x] address remaining todos
* [x] `main` ci
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested the web demo (if applicable):
* Using examples from latest `main` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/7043?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/7043?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json)
* [x] The PR title and labels are set such as to maximize their
usefulness for the next release's CHANGELOG
* [x] If applicable, add a new check to the [release
checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)!
* [x] If have noted any breaking changes to the log API in
`CHANGELOG.md` and the migration guide

- [PR Build Summary](https://build.rerun.io/pr/7043)
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)

To run all checks from `main`, comment on the PR with `@rerun-bot
full-check`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants