Commit 1cc6244
Allow logging individual components directly (Impl
<!--
Open the PR up as a draft until you feel it is ready for a proper
review.
Do not make PR:s from your own `main` branch, as that makes it difficult
for reviewers to add their own fixes.
Add any improvements to the branch as new commits to make it easier for
reviewers to follow the progress. All commits will be squashed to a
single commit once the PR is merged into `main`.
Make sure you mention any issues that this PR closes in the description,
as well as any other related issues.
To get an auto-generated PR description you can put "copilot:summary" or
"copilot:walkthrough" anywhere.
-->
### What
This implements `AsComponents` for all `Component`s, which makes the
rust api slightly more ergonomic and makes this possible:
```rs
rec.log_static("my_points", &rerun::Color::from_rgb(128, 128, 128))?;
```
### Checklist
* [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/7756?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/7756?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/7756)
- [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`.
---------
Co-authored-by: Andreas Reich <[email protected]>AsComponents for all ObjectKind::Component) (#7756)1 parent 9773d8a commit 1cc6244
File tree
2 files changed
+34
-18
lines changed- crates
- store/re_types_core/src
- top/re_sdk/src
2 files changed
+34
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
856 | 856 | | |
857 | 857 | | |
858 | 858 | | |
859 | | - | |
| 859 | + | |
| 860 | + | |
860 | 861 | | |
861 | 862 | | |
862 | 863 | | |
| |||
889 | 890 | | |
890 | 891 | | |
891 | 892 | | |
892 | | - | |
| 893 | + | |
893 | 894 | | |
894 | | - | |
| 895 | + | |
895 | 896 | | |
896 | 897 | | |
897 | 898 | | |
| |||
951 | 952 | | |
952 | 953 | | |
953 | 954 | | |
954 | | - | |
| 955 | + | |
| 956 | + | |
955 | 957 | | |
956 | 958 | | |
957 | 959 | | |
| |||
972 | 974 | | |
973 | 975 | | |
974 | 976 | | |
975 | | - | |
| 977 | + | |
976 | 978 | | |
977 | | - | |
| 979 | + | |
978 | 980 | | |
979 | 981 | | |
980 | 982 | | |
| |||
1016 | 1018 | | |
1017 | 1019 | | |
1018 | 1020 | | |
1019 | | - | |
| 1021 | + | |
1020 | 1022 | | |
1021 | 1023 | | |
1022 | 1024 | | |
1023 | 1025 | | |
1024 | 1026 | | |
1025 | 1027 | | |
1026 | | - | |
| 1028 | + | |
| 1029 | + | |
1027 | 1030 | | |
1028 | 1031 | | |
1029 | 1032 | | |
| |||
2448 | 2451 | | |
2449 | 2452 | | |
2450 | 2453 | | |
2451 | | - | |
2452 | | - | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
2453 | 2459 | | |
2454 | 2460 | | |
2455 | 2461 | | |
2456 | | - | |
| 2462 | + | |
| 2463 | + | |
2457 | 2464 | | |
2458 | 2465 | | |
2459 | 2466 | | |
2460 | | - | |
| 2467 | + | |
2461 | 2468 | | |
2462 | 2469 | | |
2463 | 2470 | | |
| |||
2472 | 2479 | | |
2473 | 2480 | | |
2474 | 2481 | | |
2475 | | - | |
| 2482 | + | |
2476 | 2483 | | |
2477 | 2484 | | |
2478 | 2485 | | |
2479 | | - | |
| 2486 | + | |
2480 | 2487 | | |
2481 | 2488 | | |
2482 | 2489 | | |
2483 | | - | |
| 2490 | + | |
2484 | 2491 | | |
2485 | 2492 | | |
2486 | 2493 | | |
| |||
2495 | 2502 | | |
2496 | 2503 | | |
2497 | 2504 | | |
2498 | | - | |
| 2505 | + | |
2499 | 2506 | | |
2500 | 2507 | | |
2501 | 2508 | | |
2502 | | - | |
| 2509 | + | |
| 2510 | + | |
2503 | 2511 | | |
2504 | 2512 | | |
2505 | 2513 | | |
2506 | | - | |
| 2514 | + | |
| 2515 | + | |
2507 | 2516 | | |
2508 | 2517 | | |
2509 | 2518 | | |
| |||
0 commit comments