The ordering of the lines of the generated shadow.rs is irreproducible, leading to build failures with antioxidant (because dependency $foo is compiled against dependency $bar using shadow-rs, compiled on machine $X and dependency $baz is compiled against dependency $bar on another machine $Y).
The issue appears to be that hash maps are used. For now, I've worked around things by replacing
for (k, v) in self.map.clone() {
by
for (k, v) in std::collections::BTreeMap::from_iter(self.map.clone().iter()) {
and likewise for iteration over self.maps.keys().
(That was for rust-shadow-rs@0.8, but looking at the code it would seem that the same holds for the latest version.)
The ordering of the lines of the generated shadow.rs is irreproducible, leading to build failures with antioxidant (because dependency $foo is compiled against dependency $bar using shadow-rs, compiled on machine $X and dependency $baz is compiled against dependency $bar on another machine $Y).
The issue appears to be that hash maps are used. For now, I've worked around things by replacing
by
and likewise for iteration over
self.maps.keys()
.(That was for
rust-shadow-rs@0.8
, but looking at the code it would seem that the same holds for the latest version.)