From 6bf7f1735b7ae6b0d54f67d3fb7ee3ac2529559f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Ho=C3=9F?= Date: Thu, 31 Oct 2024 09:14:52 +0100 Subject: [PATCH 1/4] run release/docs actions during verify MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Hoß --- .github/workflows/verify.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 87a7967f3..b7da03746 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -43,3 +43,11 @@ jobs: env: RUSTFLAGS: "--deny warnings" K8S_OPENAPI_ENABLED_VERSION: "1.31" + - name: Try-run Cargo Version Update + if: steps.commits.outputs.count > 0 + run: sed -i -e '0,/edition/s/^version = .*/version = "${{ steps.release.outputs.version }}"/' kube-custom-resources-rs/Cargo.toml + - name: Print modified Cargo.toml + run: cat kube-custom-resources-rs/Cargo.toml + - uses: dtolnay/rust-toolchain@nightly + - uses: dtolnay/install@cargo-docs-rs + - run: cargo docs-rs From 6e8c27aaa59c727d7816ba0e36161b233fba97a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Ho=C3=9F?= Date: Thu, 31 Oct 2024 09:16:52 +0100 Subject: [PATCH 2/4] specify package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Hoß --- .github/workflows/verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index b7da03746..797526722 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -50,4 +50,4 @@ jobs: run: cat kube-custom-resources-rs/Cargo.toml - uses: dtolnay/rust-toolchain@nightly - uses: dtolnay/install@cargo-docs-rs - - run: cargo docs-rs + - run: cargo docs-rs --package kube-custom-resources-rs From c581b5c5f6e372766b8498311eea223e5029ed0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Ho=C3=9F?= Date: Thu, 31 Oct 2024 09:18:56 +0100 Subject: [PATCH 3/4] specify +nightly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Hoß --- .github/workflows/verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 797526722..e560cf740 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -50,4 +50,4 @@ jobs: run: cat kube-custom-resources-rs/Cargo.toml - uses: dtolnay/rust-toolchain@nightly - uses: dtolnay/install@cargo-docs-rs - - run: cargo docs-rs --package kube-custom-resources-rs + - run: cargo +nightly docs-rs --package kube-custom-resources-rs From f21f5af40cc71c257e0e86f1100ba5bb64e50c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Ho=C3=9F?= Date: Thu, 31 Oct 2024 09:37:13 +0100 Subject: [PATCH 4/4] specify features for docs-rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Hoß --- kube-custom-resources-rs/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kube-custom-resources-rs/Cargo.toml b/kube-custom-resources-rs/Cargo.toml index ac3fa46fa..8ff7b97fb 100644 --- a/kube-custom-resources-rs/Cargo.toml +++ b/kube-custom-resources-rs/Cargo.toml @@ -32,6 +32,9 @@ version = "~1" version = "~0" features = ["v1_31"] +[package.metadata.docs.rs] +features = [ "k8s-openapi/v1_31" ] + [features] about_k8s_io = [] acid_zalan_do = []