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
The rustworkx depends on petgraph version 0.6.5, but the release of petgraph0.7.0 causes a version mismatch in the dependency graph. This leads to compilation errors like:
error[E0277]: the trait bound `petgraph::Graph<graph::GraphNode, graph::GraphEdge>: rustworkx_core::petgraph::visit::GraphBase` is not satisfied
--> cascade-core/src/streets.rs:60:29
|
60 | let largest_component = connected_components(&graph)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `rustworkx_core::petgraph::visit::GraphBase` is not implemented for `petgraph::Graph<graph::GraphNode, graph::GraphEdge>`, which is required by `&petgraph::Graph<graph::GraphNode, graph::GraphEdge>: rustworkx_core::petgraph::visit::GraphBase`
|
help: there are multiple different versions of crate `petgraph` in the dependency graph
--> cascade-core/src/algo/dijkstra.rs:12:5
|
12 | use petgraph::graph::NodeIndex;
| ^^^^^^^^ one version of crate `petgraph` is used here, as a direct dependency of the current crate
|
::: cascade-core/src/streets.rs:6:5
|
6 | use rustworkx_core::connectivity::connected_components;
| ^^^^^^^^^^^^^^ one version of crate `petgraph` is used here, as a dependency of crate `rustworkx_core`
note: two types coming from two different versions of the same crate are different types even if they look the same
What is the expected enhancement?
Bump petgraph to 0.7.0
The text was updated successfully, but these errors were encountered:
Description
The
rustworkx
depends onpetgraph
version0.6.5
, but the release ofpetgraph
0.7.0
causes a version mismatch in the dependency graph. This leads to compilation errors like:What is the expected enhancement?
Bump
petgraph
to 0.7.0The text was updated successfully, but these errors were encountered: