Make builds reproducible

This is done by using `BTreeMap`s and `BTreeSet`s to get deterministic
ordering.

Also updated the CI job to check reproducibility of all examples.
This commit is contained in:
Hugo van der Wijst 2019-01-15 22:42:50 -08:00 committed by Jorge Aparicio
parent fdba26525c
commit 2f89688ca9
5 changed files with 66 additions and 38 deletions

View file

@ -1,6 +1,6 @@
use std::{
cmp,
collections::{HashMap, HashSet},
collections::{BTreeMap, HashMap, HashSet},
};
use syn::{Attribute, Ident, Type};
@ -65,7 +65,7 @@ pub struct Dispatcher {
}
/// Priority -> Dispatcher
pub type Dispatchers = HashMap<u8, Dispatcher>;
pub type Dispatchers = BTreeMap<u8, Dispatcher>;
pub type Capacities = HashMap<Ident, u8>;