Skip to content

Two different versions of crate tonic are being used #296

@AlbertoVPersonal

Description

@AlbertoVPersonal

Expected Behavior

The issue is not raised by the Rust compiler.

Actual Behavior

The compiler indicates the next error:

note: two different versions of crate tonic are being used; two types coming from two different versions of the same crate are different types even if they look the same

Steps to Reproduce the Problem

  1. Create a sample project.
  2. Define these packages in the Cargo.toml file.
dapr = "0.17.0"
tonic = "0.13.1"
  1. Define a Dapr client in the source code.
  2. Run cargo build.

Workaround

Change the Cargo.toml file to:

dapr = "0.17.0"
tonic = "0.12.3" # Downgrade the version

Release Note

RELEASE NOTE: UPDATE Client dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions