schell / apecs

An asyncronous and pleasant entity-component system for Rust
46 stars 3 forks source link

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

Open navneetankur opened 2 months ago

navneetankur commented 2 months ago
   |
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`.
schell commented 2 months ago

Mmmm, I see. 🤔 .

schell commented 2 months ago

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.

navneetankur commented 2 months ago
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. :)

schell commented 2 months ago

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