You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the prisma-client-rust crate with the 0.6.11 tag, it appears that the deprecated failure crate (version 0.1.8) is being pulled in as a transitive dependency. Since failure is no longer maintained and is known to have vulnerabilities, it would be beneficial to remove or replace it.
Observed Behavior:
The failure crate and its dependencies are downloaded and added to the project. This can be seen in the cargo tree output:
The failure crate should not be included, as it is deprecated and introduces potential security risks. If the crate is still being used, it should be replaced with modern alternatives like thiserror or anyhow.
Steps to Reproduce
Add the following to Cargo.toml (mentioned in the docs for prisma client rust)
)
prisma-client-rust = { git = "https://github.com/Brendonovich/prisma-client-rust", tag = "0.6.11" }
prisma-client-rust-cli = { git = "https://github.com/Brendonovich/prisma-client-rust", tag = "0.6.11" }
Run cargo build or cargo tree to inspect dependencies.
Observe that the failure crate (v0.1.8) and its companion failure_derive are pulled in as transitive dependencies.
When using the prisma-client-rust crate with the 0.6.11 tag, it appears that the deprecated failure crate (version 0.1.8) is being pulled in as a transitive dependency. Since failure is no longer maintained and is known to have vulnerabilities, it would be beneficial to remove or replace it.
Observed Behavior:
The failure crate and its dependencies are downloaded and added to the project. This can be seen in the cargo tree output:
Expected Behavior
The failure crate should not be included, as it is deprecated and introduces potential security risks. If the crate is still being used, it should be replaced with modern alternatives like thiserror or anyhow.
Steps to Reproduce
)
Environment
Rust version: [rustc 1.83.0]
prisma-client-rust tag: 0.6.11
OS: [Windows 11]
The text was updated successfully, but these errors were encountered: