From 1408d025bfc3593232b37caf412bbbd88238e6fe Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 15 Sep 2023 08:14:12 -0400 Subject: [PATCH 1/2] lib: Add a few semver-break cookies So we know what to change for the next semver break; all minor cleanups. --- lib/src/container/encapsulate.rs | 1 + lib/src/container/store.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/src/container/encapsulate.rs b/lib/src/container/encapsulate.rs index c9de2875..81efa070 100644 --- a/lib/src/container/encapsulate.rs +++ b/lib/src/container/encapsulate.rs @@ -25,6 +25,7 @@ use tracing::instrument; /// The label which may be used in addition to the standard OCI label. pub const LEGACY_VERSION_LABEL: &str = "version"; +// semver-break: Delete this and only support v1 /// Type of container image generated #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub(crate) enum ExportLayout { diff --git a/lib/src/container/store.rs b/lib/src/container/store.rs index fd66359e..9323183c 100644 --- a/lib/src/container/store.rs +++ b/lib/src/container/store.rs @@ -1012,6 +1012,7 @@ pub fn query_image_commit(repo: &ostree::Repo, commit: &str) -> Result query_image pub fn query_image( repo: &ostree::Repo, imgref: &OstreeImageReference, @@ -1030,6 +1031,7 @@ fn manifest_for_image(repo: &ostree::Repo, imgref: &ImageReference) -> Result copy pub async fn copy( src_repo: &ostree::Repo, dest_repo: &ostree::Repo, From dec7c3b96e3f8ea75170658ab550ea0a66fdb334 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 15 Sep 2023 08:14:55 -0400 Subject: [PATCH 2/2] cli: Fix a doc link Just noticed this running `cargo doc --lib`. --- lib/src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/cli.rs b/lib/src/cli.rs index 57a004c8..d818fb71 100644 --- a/lib/src/cli.rs +++ b/lib/src/cli.rs @@ -826,7 +826,7 @@ fn handle_serialize_to_file(path: Option<&Utf8Path>, obj: T } /// Parse the provided arguments and execute. -/// Calls [`structopt::clap::Error::exit`] on failure, printing the error message and aborting the program. +/// Calls [`clap::Error::exit`] on failure, printing the error message and aborting the program. pub async fn run_from_iter(args: I) -> Result<()> where I: IntoIterator,