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

feat(introspect): implement annotations #359

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

black-desk
Copy link
Contributor

@black-desk black-desk commented Jan 10, 2025

D-Bus allow annotations in introspection data:

...

Method, interface, property, signal, and argument elements may have
"annotations", which are generic key/value pairs of metadata. They
are similar conceptually to Java's annotations and C# attributes.

...

https://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format

This commit add new attribute "annotations" to:

  • dbus_fast.introspection.Arg
  • dbus_fast.introspection.Signal
  • dbus_fast.introspection.Method
  • dbus_fast.introspection.Property
  • dbus_fast.introspection.Interface

Copy link

codspeed-hq bot commented Jan 10, 2025

CodSpeed Performance Report

Merging #359 will not alter performance

Comparing black-desk:implement-annotations (215ff19) with main (f58f1a6)

Summary

✅ 3 untouched benchmarks

@black-desk black-desk force-pushed the implement-annotations branch from 81d25c8 to c946b0c Compare January 10, 2025 04:20
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.70%. Comparing base (f58f1a6) to head (215ff19).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #359      +/-   ##
==========================================
+ Coverage   83.56%   83.70%   +0.13%     
==========================================
  Files          28       28              
  Lines        3353     3381      +28     
  Branches      604      607       +3     
==========================================
+ Hits         2802     2830      +28     
  Misses        344      344              
  Partials      207      207              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco
Copy link
Member

bdraco commented Jan 10, 2025

Would you please add a description on what this PR implements to the opening text?

@black-desk black-desk force-pushed the implement-annotations branch from c946b0c to c49eac6 Compare January 11, 2025 06:17
@black-desk
Copy link
Contributor Author

Would you please add a description on what this PR implements to the opening text?

commit message has been updated

@bdraco
Copy link
Member

bdraco commented Jan 13, 2025

Thanks @black-desk

D-Bus allow annotations in introspection data:

> ...
>
> Method, interface, property, signal, and argument elements may have
> "annotations", which are generic key/value pairs of metadata. They
> are similar conceptually to Java's annotations and C# attributes.
>
> ...

https://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format

This commit add new attribute "annotations" to:

- dbus_fast.introspection.Arg
- dbus_fast.introspection.Signal
- dbus_fast.introspection.Method
- dbus_fast.introspection.Property
- dbus_fast.introspection.Interface
@black-desk black-desk force-pushed the implement-annotations branch from b53b99e to fabdbdf Compare January 14, 2025 05:32
@bdraco bdraco merged commit 5b61869 into Bluetooth-Devices:main Jan 15, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants