Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop unused and vulnerable dependency on the windows crate #21

Merged
merged 1 commit into from
Jul 9, 2022
Merged

Drop unused and vulnerable dependency on the windows crate #21

merged 1 commit into from
Jul 9, 2022

Conversation

AlexTMjugador
Copy link
Contributor

As highlighted in #19, this crate does not support Windows platforms properly yet. There is a conditional dependency on the windows crate declared on the Cargo.toml manifest for Windows platforms, but as far as I can see that dependency is unused by the source code, so it's unnecessary.

Normally, this unused dependency would only make Cargo download more crates than really needed when building, but otherwise be unnoticed by most people. However, the version of the windows crate declared as a dependency, 0.29.0, is affected by the RUSTSEC-2022-0008 advisory, which makes automated analysis tools such as GitHub security vulnerability scanning complain:

GitHub complaining about the advisory

Link to the relevant security advisory: https://rustsec.org/advisories/RUSTSEC-2022-0008.html

Address the situation by commenting out the troublesome dependency on the Cargo.toml file. In the future, it can be uncommented by anyone interested in implementing Windows support. I have tested the change by running cargo test on a Linux box.

As highlighted in #19, this crate does not support Windows platforms
properly yet. There is a conditional dependency on the `windows` crate
declared on the Cargo.toml manifest for Windows platforms, but as far as
I can see that dependency is unused by the source code, so it's
unnecessary.

Normally, this unused dependency would only make Cargo download more
crates than really needed when building, but otherwise be unnoticed
by most people. However, the version of the `windows` crate declared as
a dependency, 0.29.0, is affected by the RUSTSEC-2022-0008 advisory,
which makes automated analysis tools such as GitHub security
vulnerability scanning complain.

Link to the relevant security advisory: https://rustsec.org/advisories/RUSTSEC-2022-0008.html

Address the situation by commenting out the troublesome dependency on
the Cargo.toml file. In the future, it can be uncommented by anyone
interested in implementing Windows support. I have tested the change by
running `cargo test` on a Linux box.
Copy link
Owner

@dataphract dataphract left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for bringing this to my attention!

@dataphract dataphract merged commit f4e7190 into dataphract:main Jul 9, 2022
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.

None yet

2 participants