https://doc.rust-lang.org/reference/attributes/type_system.html#the-non_exhaustive-attribute
That's a cool backward compat tool, but it also prevent users from using struct expressions
https://internals.rust-lang.org/t/pre-rfc-relaxed-non-exhaustive-structs/11977/16
Yeah we rely pretty heavily on ..Default::default() to make the entity building api nice, so we can't lose that. Definitely worth looking into though.
wgpu-rs was running into the same issue. I did a little bit of investigative work to see how difficult it would be to add support for #[non_exhaustive(pub)] to rustc. It didn't seem too hard, but the timeline involved was unfortunate.
Most helpful comment
wgpu-rs was running into the same issue. I did a little bit of investigative work to see how difficult it would be to add support for
#[non_exhaustive(pub)]to rustc. It didn't seem too hard, but the timeline involved was unfortunate.