Skip to content

Commit f3ecb35

Browse files
committed
feat(init): rework init crate for memfd handoff
This commit takes care of the actual passing of a memfd from dataplane init down into dataplane after a hardware scan and argument parsing. It basically takes care of the TODO from last time. Signed-off-by: Daniel Noland <daniel@githedgehog.com>
1 parent c15ae57 commit f3ecb35

File tree

3 files changed

+478
-21
lines changed

3 files changed

+478
-21
lines changed

Cargo.lock

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

init/Cargo.toml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,32 @@
22
name = "dataplane-init"
33
version = "0.1.0"
44
edition = "2024"
5-
publish = false
65
license = "Apache-2.0"
6+
publish = false
77

88
[dependencies]
9+
910
# internal
10-
hardware = { workspace = true, features = ["serde", "scan"] }
11-
id = { workspace = true }
12-
sysfs = { workspace = true }
11+
args = { workspace = true, features = [] }
12+
hardware = { workspace = true, features = ["scan", "serde"] }
13+
id = { workspace = true, features = [] }
1314

1415
# external
15-
nix = { workspace = true, features = ["mount", "fs"] }
16+
color-eyre = { workspace = true, features = ["capture-spantrace"] }
17+
command-fds = { workspace = true, features = [] }
18+
miette = { workspace = true, features = ["derive", "fancy"] }
19+
nix = { workspace = true, features = ["fs", "mount"] }
1620
procfs = { workspace = true, features = [] }
21+
rkyv = { workspace = true, features = ["alloc", "bytecheck", "std"] }
22+
serde = { workspace = true, features = ["derive", "std"] }
23+
serde_yaml_ng = { workspace = true, default-features = false, features = [] }
1724
strum = { workspace = true, features = ["derive"] }
1825
strum_macros = { workspace = true, features = [] }
19-
thiserror = { workspace = true }
26+
sysfs = { workspace = true, features = [] }
27+
thiserror = { workspace = true, features = ["std"] }
2028
tracing = { workspace = true, features = ["attributes"] }
21-
tracing-subscriber = { workspace = true, features = ["fmt"] }
29+
tracing-error = { workspace = true, features = ["traced-error"]}
30+
tracing-subscriber = { workspace = true, features = ["ansi", "fmt"] }
2231

2332
[dev-dependencies]
2433
# internal

0 commit comments

Comments
 (0)