Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Transitive Dependency: failure crate pulled in by prisma-client-rust 0.6.11 #473

@saisab29

Description

@saisab29

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:

├── dml v0.1.0 (git+https://github.com/Brendonovich/prisma-engines?tag=pcr-0.6.10#c4aeef82dbae310e974d6122160c7e3b5fb6df53)
│   ├── cuid v0.5.1
│   │   ├── base36 v0.0.1
│   │   │   ├── failure v0.1.8


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

  • 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.

Environment

Rust version: [rustc 1.83.0]
prisma-client-rust tag: 0.6.11
OS: [Windows 11]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions