Skip to content

Conversation

@abrown
Copy link
Contributor

@abrown abrown commented Jun 10, 2025

This takes some of the work by @Rickvanderveen in #159 (thanks!) and makes the crate compatible with OpenVINO v2025.1.0 and above. I've documented the breaking ABI change from upstream in #167 and will follow this up with a fix to only allow this code to work with versions 2025.1.0 and above.

@abrown abrown requested a review from rahulchaphalkar June 10, 2025 22:46
abrown and others added 5 commits June 10, 2025 16:00
This captures (minus some cleanup of now-untracked files):

```
cd crates/openvino-sys/upstream
git checkout 2025.1.0
git submodule update --init --recursive
```

This brings the upstream submodule in line with release [2025.1.0].

[2025.1.0]: https://github.com/openvinotoolkit/openvino/releases/tag/2025.1.0
This captures:

```
cargo xtask codegen
```

The key change introduced here--a breaking one--is the rearranging of
all of the enum values for `ov_element_type_e`. Like intel#143, this creates
an incompatibility when running a pre-2025.1 OpenVINO with this version
of the bindings.
This pulls in work from intel#159 to remove a now-unknown property.

Co-authored-by: Rickvanderveen <[email protected]>
OpenVINO 2025.1.0 deprecates `ov_element_type_e::UNDEFINED` ([#28766]),
so this change removes it in the Rust bindings. This does create a
breaking API change across minor versions of upstream OpenVINO (v2025.0
to v2025.1); we should assume from here on out that the C API is
unstable.

[#28766]: openvinotoolkit/openvino#28766
Copy link
Contributor

@rahulchaphalkar rahulchaphalkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@rahulchaphalkar rahulchaphalkar merged commit e7f5cdc into intel:main Jun 10, 2025
11 checks passed
@abrown abrown deleted the v2025.1 branch June 10, 2025 23:09
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