Skip to content

feat: Add sys-crate for the Device Data Hub API - #241

Draft
apljungquist wants to merge 8 commits into
mainfrom
acap-rs-datahub-sys
Draft

apljungquist wants to merge 8 commits into
mainfrom
acap-rs-datahub-sys

Conversation

@apljungquist

@apljungquist apljungquist commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

Device Data Hub is the designated replacement for the Message Broker API, which is deprecated and will be removed in AXIS OS 13.0.

The bindings are generated from the C headers the same way as for mdb-sys. Constants that the C headers define as object-like macros with casts are transcribed manually because bindgen cannot evaluate them; we may be able to remove those if we upgrade to bindgen >= 0.70.0

Details

.devcontainer/Dockerfile:

  • Set AXIS_OS_VERSION or the new example won't build.

apps/object_consumer:

  • Port an example to trigger the sys-crate build script or the crates/%-sys/src/bindings.rs make target fails 1. It will be updated to use the safe bindings when they are added.

Footers

Depends-on: #240

Footnotes

  1. https://github.com/AxisCommunications/acap-rs/actions/runs/30839862786/job/91773991360#step:5:381

Device Data Hub is the designated replacement for the Message Broker
API, which is deprecated and will be removed in AXIS OS 13.0.

The bindings are generated from the C headers the same way as for
`mdb-sys`. Constants that the C headers define as object-like macros
with casts are transcribed manually because bindgen cannot evaluate
them.
@apljungquist
apljungquist force-pushed the acap-rs-datahub-sys branch from 5778722 to d0cf4d1 Compare July 11, 2026 06:46
@apljungquist
apljungquist requested a review from guoxe August 4, 2026 06:08
@apljungquist
apljungquist marked this pull request as ready for review August 4, 2026 06:08
@apljungquist
apljungquist requested a review from a team as a code owner August 4, 2026 06:08
@apljungquist apljungquist changed the title feat: Add unsafe bindings for the Device Data Hub API feat: Add sys-crate for the Device Data Hub API Aug 4, 2026
@apljungquist
apljungquist removed the request for review from guoxe August 4, 2026 06:34
@apljungquist
apljungquist marked this pull request as draft August 4, 2026 06:34
@apljungquist

Copy link
Copy Markdown
Collaborator Author

Looks like this is failing because the two acap-build implementations have diverged. Parking this until #239 is done.

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.

1 participant