Skip to content

Commit

Permalink
Bump k8s-openapi feature to v1_29, and standardize docsrs cfg
Browse files Browse the repository at this point in the history
* Bump k8s-openapi feature to v1_29.
* Use standardized `docsrs` cfg instead of our custom `docs_rs`.
  rust-lang/cargo#13875
  • Loading branch information
alex-hunt-materialize committed Aug 20, 2024
1 parent 0f7f67c commit c2b019b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "k8s-controller"
version = "0.3.2"
version = "0.3.3"
edition = "2021"

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

[dev-dependencies]
tokio = "1"

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docs_rs"]
2 changes: 1 addition & 1 deletion src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ where

/// The [`Context`] trait should be implemented in order to provide callbacks
/// for events that happen to resources watched by a [`Controller`].
#[cfg_attr(not(docs_rs), async_trait::async_trait)]
#[cfg_attr(not(docsrs), async_trait::async_trait)]
pub trait Context {
/// The type of Kubernetes [resource](Resource) that will be watched by
/// the [`Controller`] this context is passed to
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#![warn(clippy::disallowed_macros)]
#![warn(clippy::disallowed_types)]
#![warn(clippy::from_over_into)]
#![cfg_attr(docs_rs, feature(async_fn_in_trait))]
#![cfg_attr(docsrs, feature(async_fn_in_trait))]

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

0 comments on commit c2b019b

Please sign in to comment.