Skip to main content

split_bin

Function split_bin 

Source
pub fn split_bin(
    exploded: &Exploded,
    max_loc: usize,
    root_stem: &str,
) -> SplitOutput
Expand description

Plan and reassemble a binary crate-root split targeting files < max_loc. Indivisible items and conditional modules stay in their original scope; consult still_oversized and max_loc() for unmet budget constraints. The item budget reserves the full header LOC and the per-part overhead; since a part now copies only the imports it references (a subset of the header), this reservation is conservative — a packed part stays safely under budget.