Skip to content

Conversation

@teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented Jun 26, 2023

@teh-cmc teh-cmc added sdk-rust Rust logging API codegen/idl labels Jun 26, 2023
@teh-cmc teh-cmc force-pushed the cmc/hope_rust_serde_3/semantic_fixes branch from 49ae282 to 6687f15 Compare June 26, 2023 15:21
@teh-cmc teh-cmc force-pushed the cmc/hope_rust_serde_4/serialization branch 21 times, most recently from d8065fa to 3fa6b0d Compare June 27, 2023 16:00
@teh-cmc teh-cmc force-pushed the cmc/hope_rust_serde_3/semantic_fixes branch from 8261732 to 84c5bfe Compare June 27, 2023 16:16
@teh-cmc teh-cmc force-pushed the cmc/hope_rust_serde_4/serialization branch 2 times, most recently from 177ab42 to 1b92d57 Compare June 27, 2023 16:36
@teh-cmc teh-cmc force-pushed the cmc/hope_rust_serde_4/serialization branch 3 times, most recently from 4c68bbd to 730ef29 Compare June 28, 2023 09:15
@teh-cmc teh-cmc changed the title Codegen'd Rust/Arrow (de)ser 4: autogenerated serialization routines Codegen'd Rust/Arrow: wip buffer Jun 28, 2023
@teh-cmc teh-cmc force-pushed the cmc/hope_rust_serde_4/serialization branch from 730ef29 to c727698 Compare June 28, 2023 12:34
@teh-cmc teh-cmc force-pushed the cmc/hope_rust_serde_4/serialization branch from c727698 to 0421e0d Compare June 28, 2023 16:47
@teh-cmc teh-cmc closed this Jun 28, 2023
emilk pushed a commit that referenced this pull request Jun 29, 2023
…2484)

**Best reviewed on a commit-by-commit basis; in particular the `rerun
codegen` commit is nothing but generated code.**

This PR upgrades the Rust code generator to make use of actual
`TokenStream`s (i.e. `syn` & `quote`) rather than manipulating raw
strings; because what's coming in the following PRs puts us way past the
complexity threshold for using simple strings.

Interestingly, while `syn` & `quote` were obviously designed with Rust
in mind, they aren't specific to Rust so much as they are made to work
with bracket-base languages.
I.e. the Rust code generator becomes a nice starting point for a C or
C++ one.

---

- #2484
- #2485 
- #2487 
- #2520 

---

<!-- This line will get updated when the PR build summary job finishes.
-->
PR Build Summary: https://build.rerun.io/pr/2484

<!-- pr-link-docs:start -->
Docs preview: https://rerun.io/preview/cf52fbc/docs
Examples preview: https://rerun.io/preview/cf52fbc/examples
<!-- pr-link-docs:end -->
emilk pushed a commit that referenced this pull request Jun 29, 2023
**Best reviewed on a commit-by-commit basis; in particular the `rerun
codegen` commit is nothing but generated code.**

This PR updates (or rather, downdates?) the IDL definitions of
`Points2D` and its components to make sure they match the legacy ones
(e.g. `Point2D` is back to being a `struct { x, y }` rather than a
`[f32; 2]`).

We'll revert that once we're done with the backporting/migration and get
rid of the legacy stuff.

UPDATE: This now also includes the `attr.rerun.legacy_fqname` attribute,
which does what you think it does.

---

- #2484
- #2485 
- #2487 
- #2520 

---

<!-- This line will get updated when the PR build summary job finishes.
-->
PR Build Summary: https://build.rerun.io/pr/2485

<!-- pr-link-docs:start -->
Docs preview: https://rerun.io/preview/41e265f/docs
Examples preview: https://rerun.io/preview/41e265f/examples
<!-- pr-link-docs:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codegen/idl sdk-rust Rust logging API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants