Skip to content

Commit 0b12403

Browse files
committed
Upgrade bindings to v2025.2.0
This is the result of running: ``` cargo xtask update 2025.2.0 cargo xtask codegen ``` This also updates CI to use v2025.2.0 during testing.
1 parent f0e5a71 commit 0b12403

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jobs:
2424
# found ("dyld: Library not loaded; '@rpath/libopenvino.2310.dylib'"). See
2525
# https://github.com/abrown/openvino-rs/actions/runs/6423141936/job/17441022932#step:7:154
2626
os: [ubuntu-22.04, ubuntu-24.04, windows-latest]
27-
version: [2025.1.0]
27+
version: [2025.1.0, 2025.2.0]
2828
apt: [false]
2929
# We also spot-check that things work when installing from APT by adding to the matrix: see
3030
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
3131
# APT install and check latest supported version.
3232
include:
3333
- os: ubuntu-24.04
34-
version: 2025.1.0
34+
version: 2025.2.0
3535
apt: true
3636
env:
3737
RUST_LOG: debug

crates/openvino-sys/src/generated/functions.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,15 @@ unsafe extern "C" {
164164
#[doc = " @brief Set new shape for tensor, deallocate/allocate if new total size is bigger than previous one.\n @ingroup ov_tensor_c_api\n @param shape Tensor shape\n @param tensor A point to ov_tensor_t\n @return Status code of the operation: OK(0) for success."]
165165
pub fn ov_tensor_set_shape(tensor: *mut ov_tensor_t, shape: ov_shape_t) -> ov_status_e;
166166
}
167+
unsafe extern "C" {
168+
#[doc = " @brief Constructs a new tensor using a string array.\n @ingroup ov_tensor_c_api\n @param string_array An array of strings\n @param array_size The size of the string array\n @param shape Tensor shape\n @param tensor A point to ov_tensor_t\n @return Status code of the operation: OK(0) for success."]
169+
pub fn ov_tensor_create_from_string_array(
170+
string_array: *mut *const ::std::os::raw::c_char,
171+
array_size: usize,
172+
shape: ov_shape_t,
173+
tensor: *mut *mut ov_tensor_t,
174+
) -> ov_status_e;
175+
}
167176
unsafe extern "C" {
168177
#[doc = " @brief Get shape for tensor.\n @ingroup ov_tensor_c_api\n @param shape Tensor shape\n @param tensor A point to ov_tensor_t\n @return Status code of the operation: OK(0) for success."]
169178
pub fn ov_tensor_get_shape(tensor: *const ov_tensor_t, shape: *mut ov_shape_t) -> ov_status_e;
@@ -175,6 +184,14 @@ unsafe extern "C" {
175184
type_: *mut ov_element_type_e,
176185
) -> ov_status_e;
177186
}
187+
unsafe extern "C" {
188+
#[doc = " @brief Set string data for tensor\n @ingroup ov_tensor_c_api\n @param string_array Array of strings\n @param array_size Size of the array\n @param tensor A point to ov_tensor_t"]
189+
pub fn ov_tensor_set_string_data(
190+
tensor: *mut ov_tensor_t,
191+
string_array: *mut *const ::std::os::raw::c_char,
192+
array_size: usize,
193+
) -> ov_status_e;
194+
}
178195
unsafe extern "C" {
179196
#[doc = " @brief the total number of elements (a product of all the dims or 1 for scalar).\n @ingroup ov_tensor_c_api\n @param elements_size number of elements\n @param tensor A point to ov_tensor_t\n @return Status code of the operation: OK(0) for success."]
180197
pub fn ov_tensor_get_size(tensor: *const ov_tensor_t, elements_size: *mut usize)
@@ -750,6 +767,13 @@ unsafe extern "C" {
750767
...
751768
) -> ov_status_e;
752769
}
770+
unsafe extern "C" {
771+
#[doc = " @brief Adds an extension to the core.\n @ingroup ov_core_c_api\n @param core A pointer to the ov_core_t instance.\n @param path Path to the extension.\n @return Status code of the operation: OK(0) for success."]
772+
pub fn ov_core_add_extension(
773+
core: *const ov_core_t,
774+
path: *const ::std::os::raw::c_char,
775+
) -> ov_status_e;
776+
}
753777
unsafe extern "C" {
754778
#[doc = " @brief Reads a model and creates a compiled model from the IR/ONNX/PDPD file.\n This can be more efficient than using the ov_core_read_model_from_XXX + ov_core_compile_model flow,\n especially for cases when caching is enabled and a cached model is available.\n @ingroup ov_core_c_api\n @param core A pointer to the ov_core_t instance.\n @param model_path Path to a model.\n @param device_name Name of a device to load a model to.\n @param property_args_size How many properties args will be passed, each property contains 2 args: key and value.\n @param compiled_model A pointer to the newly created compiled_model.\n @param ... Optional pack of pairs: <char* property_key, char* property_value> relevant only\n for this load operation operation. Supported property key please see ov_property.h.\n @return Status code of the operation: OK(0) for success."]
755779
pub fn ov_core_compile_model_from_file_unicode(

crates/openvino-sys/upstream

Submodule upstream updated 3710 files

0 commit comments

Comments
 (0)