Repository navigation
feat: Add sys-crate for the Device Data Hub API - #241
apljungquist wants to merge 12 commits into
Conversation
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.
5778722 to
d0cf4d1
Compare
|
Looks like this is failing because the two |
I forgot about this |
in an attempt to work around the equivalent implementation not setting this
I'm struggling to set aside time for the |
Did you explore this option? |
| SYSROOT_ARMV7HF=/opt/axis/acapsdk/sysroots/armv7hf | ||
| # The above makes the below easier to read | ||
| ENV \ | ||
| AXIS_OS_VERSION=12.11 \ |
There was a problem hiding this comment.
Can this be coupled to the new axis-os-x cargo features? I am a bit concerned that updating this will be forgotten and/or it complicating builds for axis os versions that are not 12.11
There was a problem hiding this comment.
IIRC this is needed for acap-build, so moving it from the environment into the build tools would require us to update them and I'm struggling to make time for that. Are you using the cargo-acap-* tools still?
I'm considering moving away from them, for vaious reasons and I ended up using plain GNU make to build cargo examples 1 instead of adding that functionality to cargo-acap-build.
Footnotes
Now I have and it appears to check out. Should we land the dependency update first? |
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 becausebindgencannot evaluate them; we may be able to remove those if we upgrade tobindgen >= 0.70.0Details
.devcontainer/Dockerfile:AXIS_OS_VERSIONor the new example won't build.apps/object_consumer:crates/%-sys/src/bindings.rsmake target fails 1. It will be updated to use the safe bindings when they are added.apps/object_consumer/manifest.json:/acapPackageConf/setup/compatibleOsVersions/0/minto work around the equivalent implementation not setting this automatically while I work on patching the equivalent implementation.apps/object_consumer/src/main.rs:object_detectorexamples.Footnotes
https://github.com/AxisCommunications/acap-rs/actions/runs/30839862786/job/91773991360#step:5:381 ↩