Skip to content

Commit 675114d

Browse files
Merge pull request #23 from MaterializeInc/kubernetes_feature_1.29
Bump k8s-openapi feature to v1_29, and standardize docsrs cfg
2 parents 0f7f67c + c2b019b commit 675114d

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "k8s-controller"
3-
version = "0.3.2"
3+
version = "0.3.3"
44
edition = "2021"
55

66
description = "lightweight framework for writing kubernetes controllers"
@@ -12,7 +12,7 @@ include = ["src/**/*", "LICENSE", "README.md", "CHANGELOG.md"]
1212
[dependencies]
1313
async-trait = "0.1"
1414
futures = "0.3"
15-
k8s-openapi = { version = "0.22", default-features = false, features = ["v1_28"] }
15+
k8s-openapi = { version = "0.22", default-features = false, features = ["v1_29"] }
1616
kube = { version = "0.92.1", default-features = false, features = ["client"] }
1717
kube-runtime = "0.92.1"
1818
rand = "0.8"
@@ -21,6 +21,3 @@ tracing = "0.1"
2121

2222
[dev-dependencies]
2323
tokio = "1"
24-
25-
[package.metadata.docs.rs]
26-
rustdoc-args = ["--cfg", "docs_rs"]

src/controller.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ where
202202

203203
/// The [`Context`] trait should be implemented in order to provide callbacks
204204
/// for events that happen to resources watched by a [`Controller`].
205-
#[cfg_attr(not(docs_rs), async_trait::async_trait)]
205+
#[cfg_attr(not(docsrs), async_trait::async_trait)]
206206
pub trait Context {
207207
/// The type of Kubernetes [resource](Resource) that will be watched by
208208
/// the [`Controller`] this context is passed to

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
#![warn(clippy::disallowed_macros)]
6060
#![warn(clippy::disallowed_types)]
6161
#![warn(clippy::from_over_into)]
62-
#![cfg_attr(docs_rs, feature(async_fn_in_trait))]
62+
#![cfg_attr(docsrs, feature(async_fn_in_trait))]
6363

6464
//! This crate implements a lightweight framework around
6565
//! [`kube_runtime::Controller`] which provides a simpler interface for common

0 commit comments

Comments
 (0)