Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 70 additions & 85 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ clap = "4.5.4"
clap_mangen = { version = "0.3.0" }
# To develop against a local composefs-rs checkout, add a [patch] section at the end of this file:
# [patch."https://github.com/composefs/composefs-rs"]
# cfsctl = { path = "/path/to/composefs-rs/crates/cfsctl" }
# composefs-ctl = { path = "/path/to/composefs-rs/crates/composefs-ctl" }
# The Justfile will auto-detect these and bind-mount them into container builds.
cfsctl = { git = "https://github.com/composefs/composefs-rs", rev = "54d248f7a7", package = "cfsctl" }
composefs-ctl = { git = "https://github.com/composefs/composefs-rs", rev = "4dd43a107e" }
fn-error-context = "0.2.1"
futures-util = "0.3"
hex = "0.4.3"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ validate:
(cd crates/ostree-ext && cargo check --no-default-features)
(cd crates/lib && cargo check --no-default-features)
cargo clippy -- $(CLIPPY_CONFIG)
env RUSTDOCFLAGS='-D warnings' cargo doc --lib
env RUSTDOCFLAGS='-D warnings' cargo doc --workspace --no-deps --document-private-items
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right this basically needs to be kept in sync with the docs build right? Probably worth cross-referencing or deduplicating

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes exactly

.PHONY: validate
fix-rust:
cargo clippy --fix --allow-dirty -- $(CLIPPY_CONFIG)
Expand Down
2 changes: 1 addition & 1 deletion crates/etc-merge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rustix = { workspace = true }
openssl = { workspace = true }
hex = { workspace = true }
tracing = { workspace = true }
cfsctl = { workspace = true }
composefs-ctl = { workspace = true }
fn-error-context = { workspace = true }
owo-colors = { workspace = true }
anstream = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/etc-merge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ use anyhow::Context;
use cap_std_ext::cap_std;
use cap_std_ext::cap_std::fs::{Dir as CapStdDir, MetadataExt, Permissions, PermissionsExt};
use cap_std_ext::dirext::CapStdExtDirExt;
use cfsctl::composefs;
use composefs::fsverity::{FsVerityHashValue, Sha256HashValue, Sha512HashValue};
use composefs::generic_tree::{Directory, FileSystem, Inode, Leaf, LeafContent, LeafId, Stat};
use composefs::tree::ImageError;
use composefs_ctl::composefs;
use rustix::fs::{
AtFlags, Gid, Uid, XattrFlags, lgetxattr, llistxattr, lsetxattr, readlinkat, symlinkat,
};
Expand Down
6 changes: 3 additions & 3 deletions crates/initramfs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ clap = { workspace = true, features = ["std", "help", "usage", "derive"] }
libc.workspace = true
rustix.workspace = true
serde = { workspace = true, features = ["derive"] }
cfsctl.workspace = true
composefs-ctl.workspace = true
toml.workspace = true
fn-error-context.workspace = true
bootc-kernel-cmdline = { path = "../kernel_cmdline", version = "0.0.0" }
Expand All @@ -22,5 +22,5 @@ workspace = true

[features]
default = ['pre-6.15']
rhel9 = ['cfsctl/rhel9']
'pre-6.15' = ['cfsctl/pre-6.15']
rhel9 = ['composefs-ctl/rhel9']
'pre-6.15' = ['composefs-ctl/pre-6.15']
4 changes: 2 additions & 2 deletions crates/initramfs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ use rustix::{

use serde::Deserialize;

use cfsctl::composefs;
use cfsctl::composefs_boot;
use composefs::{
fsverity::{FsVerityHashValue, Sha512HashValue},
mount::FsHandle,
mountcompat::{overlayfs_set_fd, overlayfs_set_lower_and_data_fds, prepare_mount},
repository::Repository,
};
use composefs_boot::cmdline::get_cmdline_composefs;
use composefs_ctl::composefs;
use composefs_ctl::composefs_boot;

use fn_error_context::context;

Expand Down
2 changes: 1 addition & 1 deletion crates/lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ chrono = { workspace = true, features = ["serde"] }
clap = { workspace = true, features = ["derive","cargo"] }
clap_complete = "4"
clap_mangen = { workspace = true, optional = true }
cfsctl = { workspace = true }
composefs-ctl = { workspace = true }
fn-error-context = { workspace = true }
futures-util = { workspace = true }
hex = { workspace = true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::{
use anyhow::{Context, Result};
use camino::Utf8PathBuf;
use cap_std_ext::{cap_std::fs::Dir, dirext::CapStdExtDirExt};
use cfsctl::composefs_boot::bootloader::{EFI_ADDON_DIR_EXT, EFI_EXT};
use composefs_ctl::composefs_boot::bootloader::{EFI_ADDON_DIR_EXT, EFI_EXT};
use fn_error_context::context;
use ocidir::cap_std::ambient_authority;
use rustix::fs::{RenameFlags, fsync, renameat_with};
Expand Down
Loading