apecs
apecs copied to clipboard
Using moongraph and apecs both in a crate causes compile error.
|
14 | pub use apecs_derive::Edges;
| ------------------- previous import of the macro `Edges` here
...
18 | end, err, graph, ok, Edges, Graph, GraphError, Move, NodeResults, TypeKey, TypeMap, View,
| ^^^^^ `Edges` reimported here
|
= note: `Edges` must be defined only once in the macro namespace of this module
help: you can use `as` to change the binding name of the import
|
18 | end, err, graph, ok, Edges as OtherEdges, Graph, GraphError, Move, NodeResults, TypeKey, TypeMap, View,
| ~~~~~~~~~~~~~~~~~~~
For more information about this error, try `rustc --explain E0252`.
Mmmm, I see. 🤔 .
Each of the two libraries have a derive feature flag that you could try turning off by doing (for example):
apecs = { version = "0.8.1", default-features = false }
And that might fix it.
apecs = { version = "0.8.1" ,default-features = false }
moongraph = { version = "0.4" }
Didn't work. Still same error. Although with NoDefault reexported I no longer need to use moongraph anyway. But someday I or someone Might. :)
I'll keep this open then, and get to it when I can :)