apecs icon indicating copy to clipboard operation
apecs copied to clipboard

Using moongraph and apecs both in a crate causes compile error.

Open navneetankur opened this issue 1 year ago • 4 comments

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

navneetankur avatar Jun 06 '24 07:06 navneetankur

Mmmm, I see. 🤔 .

schell avatar Jun 06 '24 22:06 schell

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.

schell avatar Jun 06 '24 22:06 schell

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. :)

navneetankur avatar Jun 08 '24 05:06 navneetankur

I'll keep this open then, and get to it when I can :)

schell avatar Jun 09 '24 02:06 schell