Open Vrtgs opened 3 weeks ago
How so? The crate's API did not change (only the internal structure of i48
), I don't see how that would break semver.
pub struct i48 {
/// The raw byte representation of the 48-bit integer.
pub data: [u16; 3],
}
pub struct i48 {
/// The raw byte representation of the 48-bit integer.
pub data: [u8; 6],
}
see how data is marked pub 🙃 the structure is not so internal anymore
this may compile
let x = i48 { data: [0; 3] }
this also may misscompile
let x = i48 { data: [0; 6] }
a crate depending on
i48 = "1"
can arbitrarily fail to compile