Create a GPT disk image

This commit is contained in:
Philipp Oppermann
2021-02-24 11:18:54 +01:00
parent 89a89f785a
commit 443dff9558
3 changed files with 102 additions and 1 deletions

48
Cargo.lock generated
View File

@@ -14,6 +14,12 @@ version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
[[package]]
name = "build_const"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39092a32794787acd8525ee150305ff051b0aa6cc2abaf193924f5ab05425f39"
[[package]]
name = "byteorder"
version = "1.4.2"
@@ -39,11 +45,21 @@ dependencies = [
"winapi",
]
[[package]]
name = "crc"
version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d663548de7f5cca343f1e0a48d14dcfb0e9eb4e079ec58883b7251539fa10aeb"
dependencies = [
"build_const",
]
[[package]]
name = "disk_image"
version = "0.1.0"
dependencies = [
"fatfs",
"gpt",
]
[[package]]
@@ -58,6 +74,29 @@ dependencies = [
"log",
]
[[package]]
name = "getrandom"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8"
dependencies = [
"cfg-if",
"libc",
"wasi",
]
[[package]]
name = "gpt"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a30b0e3659ffee31427c4aaa68c1e5115c8c86ba71ff11da5a16e5b70f3471d"
dependencies = [
"bitflags",
"crc",
"log",
"uuid",
]
[[package]]
name = "libc"
version = "0.2.86"
@@ -107,6 +146,15 @@ dependencies = [
name = "uefi_app"
version = "0.1.0"
[[package]]
name = "uuid"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7"
dependencies = [
"getrandom",
]
[[package]]
name = "wasi"
version = "0.10.0+wasi-snapshot-preview1"