← Back to context

Comment by JoshTriplett

9 months ago

Yes, that's the downside of relaxing the orphan rule. That doesn't mean there has to be a way for the top-level crate to work around that, other than avoiding having both of those in its dependency tree.

Ideally, people would tend to put trait implementations for a given pair of crates in a unique library crate, implement them in the obvious way, and provide that as a library for people to use.

You are being modest in explanation.

That's not a downside, that's dependency hell with Trait coherency landmines.