From e03850983151c58c3537b05bbb3ca9a9290c3aae Mon Sep 17 00:00:00 2001 From: Oleksii Karpenko Date: Mon, 8 Jul 2024 15:39:49 +0300 Subject: [PATCH] fix: Fix doc build dependency using additional feature --- .github/workflows/audit.yaml | 2 -- Cargo.toml | 15 +++------------ 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index 858ec82..d825b89 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -16,5 +16,3 @@ jobs: steps: - uses: actions/checkout@v4 - uses: EmbarkStudios/cargo-deny-action@v1 - with: - arguments: "" diff --git a/Cargo.toml b/Cargo.toml index 9537476..eaa4101 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ keywords = ["kubernetes", "async", "lease", "leader", "election"] license = "MIT" readme = "README.md" repository = "https://github.com/alex-karpenko/kube-lease-manager" -version = "0.1.3" +version = "0.1.4" exclude = [ ".github/**", ".vscode/**", @@ -18,13 +18,11 @@ exclude = [ "Cargo.lock", "target/**", ".gitignore", + ".cargo/**", ] [dependencies] k8s-openapi = { version = "0.22.0", default-features = false } -k8s-openapi-1-26 = { package = "k8s-openapi", version = "0.22.0", default-features = false, optional = true, features = [ - "v1_26", -] } kube = { version = "0.92.1", default-features = false, features = ["client"] } rand = { version = "0.8.5" } thiserror = "1.0.61" @@ -39,9 +37,6 @@ tracing = { version = "0.1.40", default-features = false, features = ["std"] } futures = { version = "0.3.30", default-features = false, features = [ "async-await", ] } -k8s-openapi = { version = "0.22.0", default-features = false, features = [ - "v1_26", -] } kube = { version = "0.92.1", default-features = false, features = [ "rustls-tls", ] } @@ -51,9 +46,5 @@ tokio = { version = "1.38.0", default-features = false, features = [ tracing-subscriber = { version = "0.3.18" } uuid = { version = "1.9.1", features = ["v4"] } -[features] -default = [] -__docrs_k8s_openapi__ = ["k8s-openapi-1-26"] - [package.metadata.docs.rs] -features = ["__docrs_k8s_openapi__"] +features = ["k8s-openapi/v1_26"]