Skip to content

Commit 022c9c6

Browse files
Johan-Liebert1cgwalters
authored andcommitted
cfsctl: Create lib target
Create a lib target for cfsctl and export some useful functions so we can use this as a proxy from bootc Add `run_from_iter` function that accepts the same args as `cfsctl` and runs the cli logic programmatically Ref: bootc-dev/bootc#2017 Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
1 parent 63db5a6 commit 022c9c6

4 files changed

Lines changed: 680 additions & 643 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ unsafe_code = "deny" # https://github.com/containers/composefs-rs/issues/123
1717

1818
[workspace.dependencies]
1919
composefs = { version = "0.3.0", path = "crates/composefs", default-features = false }
20+
cfsctl = { version = "0.3.0", path = "crates/cfsctl", default-features = false }
2021
composefs-ioctls = { version = "0.3.0", path = "crates/composefs-ioctls", default-features = false }
2122
composefs-oci = { version = "0.3.0", path = "crates/composefs-oci", default-features = false }
2223
composefs-boot = { version = "0.3.0", path = "crates/composefs-boot", default-features = false }

crates/cfsctl/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ repository.workspace = true
1010
rust-version.workspace = true
1111
version.workspace = true
1212

13+
[lib]
14+
path = "src/lib.rs"
15+
1316
[features]
1417
default = ['pre-6.15', 'oci']
1518
http = ['composefs-http']

0 commit comments

Comments
 (0)