File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,9 +4,28 @@ members = [
44]
55resolver = " 3"
66
7- [profile .dev ]
8- # We have to compile for opt-level = 2 due to optimization passes
7+ [workspace .package ]
8+ license = " Apache-2.0"
9+ version = " 0.0.17"
10+ homepage = " https://sprout.edera.dev"
11+ repository = " https://github.com/edera-dev/sprout"
12+ edition = " 2024"
13+
14+ [workspace .dependencies ]
15+ anyhow = " 1.0.100"
16+ bitflags = " 2.10.0"
17+ hex = " 0.4.3"
18+ log = " 0.4.28"
19+ serde = " 1.0.228"
20+ sha2 = " 0.10.9"
21+ toml = " 0.9.8"
22+ uefi = " 0.36.0"
23+ uefi-raw = " 0.12.0"
24+
25+ # Common build profiles
26+ # NOTE: We have to compile everything for opt-level = 2 due to optimization passes
927# which don't handle the UEFI target properly.
28+ [profile .dev ]
1029opt-level = 2
1130
1231[profile .release ]
Original file line number Diff line number Diff line change 11[package ]
22name = " edera-sprout"
33description = " Modern UEFI bootloader"
4- license = " Apache-2.0 "
5- version = " 0.0.17 "
6- homepage = " https://sprout.edera.dev "
7- repository = " https://github.com/edera-dev/sprout "
8- edition = " 2024 "
4+ license.workspace = true
5+ version.workspace = true
6+ homepage.workspace = true
7+ repository.workspace = true
8+ edition.workspace = true
99
1010[dependencies ]
11- anyhow = " 1.0.100"
12- bitflags = " 2.10.0"
13- toml = " 0.9.8"
14- log = " 0.4.28"
11+ anyhow.workspace = true
12+ bitflags.workspace = true
13+ hex.workspace = true
14+ sha2.workspace = true
15+ toml.workspace = true
16+ log.workspace = true
1517
1618[dependencies .serde ]
17- version = " 1.0.228 "
19+ workspace = true
1820features = [" derive" ]
1921
20- [dependencies .sha256 ]
21- version = " 1.6.0"
22- default-features = false
23-
2422[dependencies .uefi ]
25- version = " 0.36.0 "
23+ workspace = true
2624features = [" alloc" , " logger" ]
2725
2826[dependencies .uefi-raw ]
29- version = " 0.12.0 "
27+ workspace = true
3028
3129[[bin ]]
3230name = " sprout"
Original file line number Diff line number Diff line change 11use anyhow:: { Context , Result , bail} ;
2+ use sha2:: { Digest , Sha256 } ;
23use std:: ops:: Deref ;
34use uefi:: boot:: SearchType ;
45use uefi:: fs:: { FileSystem , Path } ;
@@ -201,7 +202,7 @@ pub fn combine_options<T: AsRef<str>>(options: impl Iterator<Item = T>) -> Strin
201202/// Produce a unique hash for the input.
202203/// This uses SHA-256, which is unique enough but relatively short.
203204pub fn unique_hash ( input : & str ) -> String {
204- sha256 :: digest ( input. as_bytes ( ) )
205+ hex :: encode ( Sha256 :: digest ( input. as_bytes ( ) ) )
205206}
206207
207208/// Represents the type of partition GUID that can be retrieved.
You can’t perform that action at this time.
0 commit comments