Skip to content

Commit 7eb1d50

Browse files
authored
doc: update prior to release (#145)
* doc: point links to 2024 version * doc: make version docs consistent * doc: hide internal macros * doc: tweak order of external links for consistency * doc: use actual OpenVINO names * doc: tweak version doc string
1 parent 2981c7b commit 7eb1d50

18 files changed

+47
-28
lines changed

crates/openvino/src/core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Define the core interface between Rust and OpenVINO's C
2-
//! [API](https://docs.openvino.ai/2023.3/api/c_cpp_api/group__ov__core__c__api.html).
2+
//! [API](https://docs.openvino.ai/2024/api/c_cpp_api/group__ov__core__c__api.html).
33
44
use crate::error::LoadingError;
55
use crate::{cstr, drop_using_function, try_unsafe, util::Result};
@@ -16,7 +16,7 @@ use std::os::raw::c_char;
1616
use std::slice;
1717
use std::str::FromStr;
1818

19-
/// See [`Core`](https://docs.openvino.ai/2024/api/c_cpp_api/group__ov__core__c__api.html).
19+
/// See [`ov_core_t`](https://docs.openvino.ai/2024/api/c_cpp_api/group__ov__core__c__api.html).
2020
pub struct Core {
2121
ptr: *mut ov_core_t,
2222
}

crates/openvino/src/device_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub enum DeviceType<'a> {
1313
GPU,
1414
/// [NPU Device](https://docs.openvino.ai/2024/openvino-workflow/running-inference/inference-devices-and-modes/npu-device.html)
1515
NPU,
16-
/// [GNA Device](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_GNA.html)
16+
/// [GNA Device](https://docs.openvino.ai/2024/openvino_docs_OV_UG_supported_plugins_GNA.html)
1717
#[deprecated = "Deprecated since OpenVINO 2024.0; use NPU device instead"]
1818
GNA,
1919
/// Arbitrary device.

crates/openvino/src/dimension.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use openvino_sys::{ov_dimension_is_dynamic, ov_dimension_t};
22

3-
/// See [`Dimension`](https://docs.openvino.ai/2023.3/api/c_cpp_api/group__ov__dimension__c__api.html).
3+
/// See
4+
/// [`ov_dimension_t`](https://docs.openvino.ai/2024/api/c_cpp_api/group__ov__dimension__c__api.html).
45
#[derive(Copy, Clone, Debug)]
56
#[repr(transparent)]
67
pub struct Dimension {

crates/openvino/src/element_type.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ use std::convert::TryFrom;
1212
use std::error::Error;
1313
use std::fmt;
1414

15-
/// `ElementType` represents the type of elements that a tensor can hold. See [`ElementType`](https://docs.openvino.ai/2023.3/api/c_cpp_api/group__ov__base__c__api.html#_CPPv417ov_element_type_e).
15+
/// See
16+
/// [`ov_element_type_e`](https://docs.openvino.ai/2024/api/c_cpp_api/group__ov__base__c__api.html#_CPPv417ov_element_type_e).
1617
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1718
#[repr(u32)]
1819
pub enum ElementType {

crates/openvino/src/error.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
use std::error::Error;
22
use std::fmt;
33

4-
/// Enumerate errors returned by the OpenVINO implementation. See
5-
/// [`OvStatusCode`](https://docs.openvino.ai/2023.3/api/c_cpp_api/group__ov__base__c__api.html#_CPPv411ov_status_e).
4+
/// See
5+
/// [`ov_status_e`](https://docs.openvino.ai/2024/api/c_cpp_api/group__ov__base__c__api.html#_CPPv411ov_status_e);
6+
/// enumerates errors returned by the OpenVINO implementation.
67
#[allow(missing_docs)]
78
#[derive(Debug, PartialEq, Eq)]
89
pub enum InferenceError {

crates/openvino/src/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::{cstr, drop_using_function, try_unsafe, util::Result};
22
use openvino_sys::{ov_layout_create, ov_layout_free, ov_layout_t};
33

4-
/// See [`Layout`](https://docs.openvino.ai/2023.3/api/c_cpp_api/group__ov__layout__c__api.html).
4+
/// See [`ov_layout_t`](https://docs.openvino.ai/2024/api/c_cpp_api/group__ov__layout__c__api.html).
55
pub struct Layout {
66
ptr: *mut ov_layout_t,
77
}

crates/openvino/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub use shape::Shape;
6161
pub use tensor::Tensor;
6262
pub use version::Version;
6363

64-
/// Emit the version string of the OpenVINO C API backing this implementation.
64+
/// Emit the version of the OpenVINO C library backing this implementation.
6565
///
6666
/// # Panics
6767
///

crates/openvino/src/model.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use openvino_sys::{
1717
use std::borrow::Cow;
1818
use std::ffi::CStr;
1919

20-
/// See [`Model`](https://docs.openvino.ai/2024/api/c_cpp_api/group__ov__model__c__api.html).
20+
/// See [`ov_model_t`](https://docs.openvino.ai/2024/api/c_cpp_api/group__ov__model__c__api.html).
2121
pub struct Model {
2222
ptr: *mut ov_model_t,
2323
}
@@ -92,7 +92,8 @@ impl Model {
9292
}
9393
}
9494

95-
/// See [`CompiledModel`](https://docs.openvino.ai/2023.3/api/c_cpp_api/group__ov__compiled__model__c__api.html).
95+
/// See
96+
/// [`ov_compiled_model_t`](https://docs.openvino.ai/2024/api/c_cpp_api/group__ov__compiled__model__c__api.html).
9697
pub struct CompiledModel {
9798
ptr: *mut ov_compiled_model_t,
9899
}

crates/openvino/src/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use openvino_sys::{
66

77
use std::{convert::TryInto as _, ffi::CStr};
88

9-
/// See [`Node`](https://docs.openvino.ai/2023.3/api/c_cpp_api/group__ov__node__c__api.html).
9+
/// See [`ov_node_c_api`](https://docs.openvino.ai/2024/api/c_cpp_api/group__ov__node__c__api.html).
1010
pub struct Node {
1111
ptr: *mut ov_output_const_port_t,
1212
}

crates/openvino/src/partial_shape.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ use openvino_sys::{
77

88
use std::convert::TryInto;
99

10-
/// See [`PartialShape`](https://docs.openvino.ai/2023.3/api/c_cpp_api/group__ov__partial__shape__c__api.html).
10+
/// See
11+
/// [`ov_partial_shape_t`](https://docs.openvino.ai/2024/api/c_cpp_api/group__ov__partial__shape__c__api.html).
1112
pub struct PartialShape {
1213
c_struct: ov_partial_shape_t,
1314
}

0 commit comments

Comments
 (0)