@@ -54,15 +54,15 @@ pub mod library {
54
54
/// When compiled with the `runtime-linking` feature, this may fail if the `openvino-finder`
55
55
/// cannot discover the library on the current system. This may also fail if we link to a
56
56
/// version of OpenVINO that is too old for these Rust bindings: the upstream library changed
57
- /// the `ov_element_type_e` enum in a backwards-incompatible way in v2024.2 , meaning users would
58
- /// unintentionally use the wrong type when creating tensors (see [#143 ]).
57
+ /// the `ov_element_type_e` enum in a backwards-incompatible way in v2025.1 , meaning users would
58
+ /// unintentionally use the wrong type when creating tensors (see [#167 ]).
59
59
///
60
- /// [#143 ]: https://github.com/intel/openvino-rs/issues/143
60
+ /// [#167 ]: https://github.com/intel/openvino-rs/issues/167
61
61
pub fn load ( ) -> Result < ( ) , String > {
62
62
super :: generated:: load ( ) ?;
63
63
let version = get_version ( ) ?;
64
- if is_pre_2024_2_version ( & version) {
65
- return Err ( format ! ( "OpenVINO version is too old (see https://github.com/intel/openvino-rs/issues/143 ): {version}" ) ) ;
64
+ if is_pre_2025_1_version ( & version) {
65
+ return Err ( format ! ( "OpenVINO version is too old (see https://github.com/intel/openvino-rs/issues/167 ): {version}" ) ) ;
66
66
}
67
67
Ok ( ( ) )
68
68
}
@@ -86,12 +86,12 @@ pub mod library {
86
86
Ok ( version)
87
87
}
88
88
89
- /// Parse the version string and return true if it is older than 2024.2 .
90
- fn is_pre_2024_2_version ( version : & str ) -> bool {
89
+ /// Parse the version string and return true if it is older than 2025.1 .
90
+ fn is_pre_2025_1_version ( version : & str ) -> bool {
91
91
let mut parts = version. split ( [ '.' , '-' ] ) ;
92
92
let year: usize = parts. next ( ) . unwrap ( ) . parse ( ) . unwrap ( ) ;
93
93
let minor: usize = parts. next ( ) . unwrap ( ) . parse ( ) . unwrap ( ) ;
94
- year < 2024 || ( year == 2024 && minor < 2 )
94
+ year < 2025 || ( year == 2025 && minor < 1 )
95
95
}
96
96
97
97
/// Return the location of the shared library `openvino-sys` will link to. If compiled with
0 commit comments