The derive macro for components seems to be assuming that the literal string "Component" in my source code is going to point to specs::Component.
|
impl #impl_generics Component for #name #ty_generics #where_clause { |
This isn't true if I have my own Component type and I have done something like use specs::Component as SComponent;. It's also not true if I'm also using another library using similar code that wants ownership of the non-namespaced name Component.
The macro should be changed to use a fully-qualified specs::Component, so it can coexist with Components from other crates.
Or am I doing something very wrong?
The derive macro for components seems to be assuming that the literal string "Component" in my source code is going to point to
specs::Component.specs/specs-derive/src/lib.rs
Line 72 in d4435bd
This isn't true if I have my own
Componenttype and I have done something likeuse specs::Component as SComponent;. It's also not true if I'm also using another library using similar code that wants ownership of the non-namespaced nameComponent.The macro should be changed to use a fully-qualified
specs::Component, so it can coexist withComponents from other crates.Or am I doing something very wrong?