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

Fix entity_path_vec! and entity_path! depending on ToString being in scope. #4766

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

kpreid
Copy link
Collaborator

@kpreid kpreid commented Jan 10, 2024

What

The macros used to work in no_std+alloc conditions, but that was broken in 0.12 by the addition of the .to_string() call. This change fixes it by making all items used by the macro use fully qualified, reexported paths; this way, the macro does not depend on the calling module and crate's imports at all.

This change would ideally be released as a 0.12.1 bugfix.

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

…ng in scope.

The macro used to work in `no_std`+`alloc` conditions, but that was
broken in 0.12 by the addition of the `.to_string()` call. This change
fixes it by making all items used by the macro use fully qualified,
reexported paths; this way, the macro does not depend on the calling
module and crate's imports at all.
@Wumpf Wumpf merged commit aaa8028 into rerun-io:main Jan 10, 2024
34 of 38 checks passed
kpreid added a commit to kpreid/all-is-cubes that referenced this pull request Jan 11, 2024
Unfortunately, `entity_path!` started needing `ToString` in scope.
Filed rerun-io/rerun#4766 to fix that.
@nikolausWest nikolausWest added this to the 0.12.1 milestone Jan 16, 2024
emilk pushed a commit that referenced this pull request Jan 17, 2024
…ng in scope. (#4766)

### What

The macros used to work in `no_std`+`alloc` conditions, but that was
broken in 0.12 by the addition of the `.to_string()` call. This change
fixes it by making all items used by the macro use fully qualified,
reexported paths; this way, the macro does not depend on the calling
module and crate's imports at all.

This change would ideally be released as a 0.12.1 bugfix.

### 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 newly built examples:
[app.rerun.io](https://app.rerun.io/pr/4766/index.html)
* Using examples from latest `main` build:
[app.rerun.io](https://app.rerun.io/pr/4766/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[app.rerun.io](https://app.rerun.io/pr/4766/index.html?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

- [PR Build Summary](https://build.rerun.io/pr/4766)
- [Docs
preview](https://rerun.io/preview/8d39d674d8a6a26a3e9586553a2eab3264152240/docs)
<!--DOCS-PREVIEW-->
- [Examples
preview](https://rerun.io/preview/8d39d674d8a6a26a3e9586553a2eab3264152240/examples)
<!--EXAMPLES-PREVIEW-->
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants