|
25 | 25 | //! If you do run into problems, the following chart summarizes some of the known installation |
26 | 26 | //! locations of the OpenVINO files as of version `2022.3.0`: |
27 | 27 | //! |
28 | | -//! | Installation Method | Path | Available on | Notes | |
29 | | -//! | ------------------- | -------------------------------------------------- | --------------------- | -------------------------------- | |
30 | | -//! | Archive (`.tar.gz`) | `<extracted folder>/runtime/lib/<arch>` | Linux | `<arch>`: `intel64,armv7l,arm64` | |
31 | | -//! | Archive (`.tar.gz`) | `<extracted folder>/runtime/lib/<arch>/Release` | MacOS | `<arch>`: `intel64,armv7l,arm64` | |
32 | | -//! | Archive (`.zip`) | `<unzipped folder>/runtime/bin/<arch>/Release` | Windows | `<arch>`: `intel64,armv7l,arm64` | |
33 | | -//! | PyPI | `<pip install folder>/site-packages/openvino/libs` | Linux, MacOS, Windows | Find install folder with `pip show openvino` | |
34 | | -//! | DEB | `/usr/lib/x86_64-linux-gnu/openvino-<version>/` | Linux (APT-based) | This path is for plugins; the libraries are one directory above | |
35 | | -//! | RPM | `/usr/lib64/` | Linux (YUM-based) | | |
| 28 | +//! | Installation Method | Path | Available on | Notes | |
| 29 | +//! | ------------------- | -------------------------------------------------- | ----------------------- | -------------------------------- | |
| 30 | +//! | Archive (`.tar.gz`) | `<extracted folder>/runtime/lib/<arch>` | Linux | `<arch>`: `intel64,armv7l,arm64` | |
| 31 | +//! | Archive (`.tar.gz`) | `<extracted folder>/runtime/lib/<arch>/Release` | `MacOS` | `<arch>`: `intel64,armv7l,arm64` | |
| 32 | +//! | Archive (`.zip`) | `<unzipped folder>/runtime/bin/<arch>/Release` | Windows | `<arch>`: `intel64,armv7l,arm64` | |
| 33 | +//! | `PyPI` | `<pip install folder>/site-packages/openvino/libs` | Linux, `MacOS`, Windows | Find install folder with `pip show openvino` | |
| 34 | +//! | DEB | `/usr/lib/x86_64-linux-gnu/openvino-<version>/` | Linux (APT-based) | This path is for plugins; the libraries are one directory above | |
| 35 | +//! | RPM | `/usr/lib64/` | Linux (YUM-based) | | |
36 | 36 |
|
37 | 37 | #![deny(missing_docs)] |
38 | 38 | #![deny(clippy::all)] |
@@ -83,6 +83,10 @@ macro_rules! check_and_return { |
83 | 83 | /// The locations above may change over time. As OpenVINO has released new versions, the documented |
84 | 84 | /// locations of the shared libraries has changed. New versions of this function will reflect this, |
85 | 85 | /// removing older, unused locations over time. |
| 86 | +/// |
| 87 | +/// # Panics |
| 88 | +/// |
| 89 | +/// Panics if it cannot list the contents of a search directory. |
86 | 90 | pub fn find(library_name: &str) -> Option<PathBuf> { |
87 | 91 | let file = format!( |
88 | 92 | "{}{}{}", |
@@ -295,7 +299,7 @@ fn build_latest_version(dir: &Path, prefix: &str, mut versions: Vec<String>) -> |
295 | 299 | let latest_version = versions |
296 | 300 | .first() |
297 | 301 | .expect("already checked that a version exists"); |
298 | | - let filename = format!("{}{}", prefix, latest_version); |
| 302 | + let filename = format!("{prefix}{latest_version}"); |
299 | 303 | Some(dir.join(filename)) |
300 | 304 | } |
301 | 305 |
|
|
0 commit comments