Skip to content

feat(units): expose unit wrappers as reflect structs with value field#893

Merged
gbin merged 12 commits into
masterfrom
gbin/cu29_units_reflect
Mar 6, 2026
Merged

feat(units): expose unit wrappers as reflect structs with value field#893
gbin merged 12 commits into
masterfrom
gbin/cu29_units_reflect

Conversation

@gbin

@gbin gbin commented Mar 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

cu-units were reflect but reflect opaque.

Now we expose a field "value" and the natural unit it is in.

This is useful for introspection of log extraction in python etc...

Related issues

  • Closes #

Changes

Testing

  • just fmt
  • just lint
  • just test
  • optional full just std-ci (if std/runtime paths are impacted)
  • optional full just nostd-ci (if embedded/no_std paths are impacted)
  • Other (please specify):

pro-tip: just with no parameters in the root defaults to just fmt, just lint, and just test.

Checklist

  • I have updated docs or examples where needed
  • I have added or updated tests where needed
  • I have considered platform impact (Linux/macOS/Windows/embedded)
  • I have considered config/logging changes (if applicable)
  • This change is not a breaking change (or I documented it below)

Breaking changes (if any)

Additional context

@gbin gbin added enhancement New feature or request include in changelog labels Mar 5, 2026
@gbin gbin merged commit 8114ad2 into master Mar 6, 2026
23 checks passed
@gbin gbin deleted the gbin/cu29_units_reflect branch March 6, 2026 02:45
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.

1 participant