A vision for portability in Rust

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

  1. mixing different cfg’s between different dependencies.
  2. 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

  1. yes,
  2. not within a compilation at least.

here was the repository i attempted this in…