Skip to content

Conversation

@abrown
Copy link
Contributor

@abrown abrown commented Feb 5, 2024

The openvino-tensor-converter crate is a helpful extension to this project but not crucial, thus it does not receive as much attention as other parts. It is useful for generating tensor files of various shapes from images (e.g., for test fixtures), so I haven't felt the need to remove it yet. Its dependencies had fallen far out of date and included a very old version of shlex that has security vulnerabilities. By updating to the latest opencv crate version, this dependency is also updated. This change also updates the converter code to fit the latest opencv API shape and cargo-clippy guidance.

The `openvino-tensor-converter` crate is a helpful extension to this
project but not crucial, thus it does not receive as much attention as
other parts. It is useful for generating tensor files of various shapes
from images (e.g., for test fixtures), so I haven't felt the need to
remove it yet. Its dependencies had fallen far out of date and included
a very old version of `shlex` that has security vulnerabilities. By
updating to the latest `opencv` crate version, this dependency is also
updated. This change also updates the converter code to fit the latest
`opencv` API shape and `cargo-clippy` guidance.
@abrown abrown merged commit 7599a31 into intel:main Feb 6, 2024
@abrown abrown deleted the update-opencv branch February 6, 2024 15:48
abrown added a commit to abrown/openvino-rs that referenced this pull request Jun 10, 2025
As pointed out by code scan [intel#88], `std::sync::LazyLock` is the standard
way to initialize static values. `LazyLock` has been available since
Rust [v1.80.0]. This change switches to `LazyLock` and removes the
now-unnecessary `once_cell` crate. It also throws a few `rust-version`
annotations in to remind users what version of Rust to use.

[intel#88]: https://github.com/intel/openvino-rs/security/code-scanning/88
[v1.80.0]: https://releases.rs/docs/1.80.0
abrown added a commit to abrown/openvino-rs that referenced this pull request Jun 10, 2025
As pointed out by code scan [intel#88], `std::sync::LazyLock` is the standard
way to initialize static values. `LazyLock` has been available since
Rust [v1.80.0]. This change switches to `LazyLock` and removes the
now-unnecessary `once_cell` crate. It also throws a few `rust-version`
annotations in to remind users what version of Rust to use.

[intel#88]: https://github.com/intel/openvino-rs/security/code-scanning/88
[v1.80.0]: https://releases.rs/docs/1.80.0
rahulchaphalkar pushed a commit that referenced this pull request Jun 10, 2025
As pointed out by code scan [#88], `std::sync::LazyLock` is the standard
way to initialize static values. `LazyLock` has been available since
Rust [v1.80.0]. This change switches to `LazyLock` and removes the
now-unnecessary `once_cell` crate. It also throws a few `rust-version`
annotations in to remind users what version of Rust to use.

[#88]: https://github.com/intel/openvino-rs/security/code-scanning/88
[v1.80.0]: https://releases.rs/docs/1.80.0
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.

1 participant