3 ms·
It would recompile foo if you changed something in bar that caused a generic function in foo to monomorphize differently, AFAIK.
by eximius 9y ago
It would recompile foo if you changed something in bar that caused a generic function in foo to monomorphize differently, AFAIK.
- kibwen 9y agoI'm not sure what this is referring to. Generic types don't get monomorphized when exported in libraries, they get compiled to intermediate-language metadata that is then used by downstream consumers to monomorphize as needed. Furthermore I'm pretty sure Rust doesn't allow cyclic dependencies between crates, so if foo somehow depended on bar then bar couldn't depend on foo.