mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 06:15:45 +01:00
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:
parent
fdba26525c
commit
2f89688ca9
5 changed files with 66 additions and 38 deletions
|
|
@ -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>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue