Skip to content

Commit f7af84d

Browse files
committed
provisioning: Start the new KDL driven provisioning crate
This crate is mostly about loading a command queue from a KDL configuration in order to dynamically produce strategies that can be verified against disk planning APIs in the partitioning crate(s). For now our main focus is on building the command pieces, which we've opted to bake in using `phf`, and leveraged `miette` to ensure a Serpent OS project actually has decent error handling from the start, for once. :P Signed-off-by: Ikey Doherty <[email protected]>
1 parent c0c29ef commit f7af84d

File tree

9 files changed

+678
-3
lines changed

9 files changed

+678
-3
lines changed

Cargo.lock

Lines changed: 226 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ members = [
1212
[workspace.dependencies]
1313
gpt = "4.0.0"
1414
linux-raw-sys = "0.7.0"
15+
itertools = "0.14.0"
16+
kdl = "6.3.3"
1517
log = "0.4.21"
18+
miette = "7.5.0"
1619
nix = { version = "0.29.0", features = ["fs", "mount"] }
20+
phf = "0.11"
1721
serde = { version = "1.0" }
1822
serde_json = "1.0"
1923
serde_with = "3.0"

crates/provisioning/Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[package]
2+
name = "provisioning"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dev-dependencies]
7+
8+
[dependencies]
9+
kdl = { workspace = true, features = ["span"] }
10+
miette.workspace = true
11+
itertools = { workspace = true }
12+
phf = { workspace = true, features = ["macros"] }
13+
thiserror.workspace = true

0 commit comments

Comments
 (0)