diff --git a/examples/pod_shell_crossterm.rs b/examples/pod_shell_crossterm.rs index 3cfc27acf..e542af2df 100644 --- a/examples/pod_shell_crossterm.rs +++ b/examples/pod_shell_crossterm.rs @@ -1,7 +1,6 @@ use futures::{channel::mpsc::Sender, SinkExt, StreamExt}; use k8s_openapi::api::core::v1::Pod; -#[cfg(unix)] use crossterm::event::Event; use kube::{ api::{Api, AttachParams, AttachedProcess, DeleteParams, PostParams, ResourceExt, TerminalSize}, runtime::wait::{await_condition, conditions::is_pod_running}, diff --git a/kube-client/Cargo.toml b/kube-client/Cargo.toml index 9d4a2b066..86349ea44 100644 --- a/kube-client/Cargo.toml +++ b/kube-client/Cargo.toml @@ -37,7 +37,7 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] base64 = { version = "0.13.0", optional = true } -chrono = { version = "0.4.19", optional = true, default-features = false } +chrono = { version = "0.4.23", optional = true, default-features = false } dirs = { package = "dirs-next", optional = true, version = "2.0.0" } serde = { version = "1.0.130", features = ["derive"] } serde_json = "1.0.68" diff --git a/kube-derive/tests/crd_schema_test.rs b/kube-derive/tests/crd_schema_test.rs index a7d48cb82..48c1e7b45 100644 --- a/kube-derive/tests/crd_schema_test.rs +++ b/kube-derive/tests/crd_schema_test.rs @@ -132,7 +132,7 @@ fn test_serialized_matches_expected() { nullable: None, nullable_skipped_with_default: None, nullable_with_default: None, - timestamp: DateTime::from_utc(NaiveDateTime::from_timestamp(0, 0), Utc), + timestamp: DateTime::from_utc(NaiveDateTime::from_timestamp_opt(0, 0).unwrap(), Utc), complex_enum: ComplexEnum::VariantOne { int: 23 }, untagged_enum_person: UntaggedEnumPerson::GenderAndAge(GenderAndAge { age: 42,