FWIW, I was a bit skeptical of the notion of using Traits with #[cfg(…)]'d out members, in the sense that i wasn’t sure it would allow
- mixing different cfg’s between different dependencies.
- if so would that allow one to violate object safety in some fashion when coercing to a trait object.
which seems to resolve (pleasantly) to
- yes,
- not within a compilation at least.
here was the repository i attempted this in…