From e87b8ddeb845bca6ed9d36edafee339d8460fcd2 Mon Sep 17 00:00:00 2001 From: Daniel Faust Date: Sun, 4 Aug 2024 19:05:24 +0200 Subject: [PATCH] Fix crossbeam-channel feature The feature was previously renamed from `crossbeam` to `crossbeam-channel`. --- CHANGELOG.md | 1 + notify-debouncer-full/src/lib.rs | 4 ++-- notify-debouncer-mini/src/lib.rs | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a62d5d52..0980cbf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ v4 commits split out to branch `v4_maintenance` starting with `4.0.16` - CHANGE: move event type to notify-types crate [#559] - CHANGE: flatten serialization of events and use camelCase [#558] - CHANGE: remove internal use of crossbeam-channels [#569] [#610] +- CHANGE: rename feature `crossbeam` to `crossbeam-channels` - CHANGE: upgrade mio to 1.0 [#623] - FIX: prevent UB with illegal instruction for the windows backend [#604] [#607] - FIX: on Linux report deleted directories correctly [#545] diff --git a/notify-debouncer-full/src/lib.rs b/notify-debouncer-full/src/lib.rs index 3ef448d7..67c0fb2d 100644 --- a/notify-debouncer-full/src/lib.rs +++ b/notify-debouncer-full/src/lib.rs @@ -49,7 +49,7 @@ //! //! The following crate features can be turned on or off in your cargo dependency config: //! -//! - `crossbeam` passed down to notify, off by default +//! - `crossbeam-channel` passed down to notify, off by default //! - `serialization-compat-6` passed down to notify, off by default //! //! # Caveats @@ -124,7 +124,7 @@ where } } -#[cfg(feature = "crossbeam")] +#[cfg(feature = "crossbeam-channel")] impl DebounceEventHandler for crossbeam_channel::Sender { fn handle_event(&mut self, event: DebounceEventResult) { let _ = self.send(event); diff --git a/notify-debouncer-mini/src/lib.rs b/notify-debouncer-mini/src/lib.rs index d4470b3f..091d8291 100644 --- a/notify-debouncer-mini/src/lib.rs +++ b/notify-debouncer-mini/src/lib.rs @@ -45,7 +45,7 @@ //! //! The following crate features can be turned on or off in your cargo dependency config: //! -//! - `crossbeam` passed down to notify, off by default +//! - `crossbeam-channel` passed down to notify, off by default //! - `serde` enables serde support for events, off by default //! - `serialization-compat-6` passed down to notify, off by default //! @@ -152,7 +152,7 @@ where } } -#[cfg(feature = "crossbeam")] +#[cfg(feature = "crossbeam-channel")] impl DebounceEventHandler for crossbeam_channel::Sender { fn handle_event(&mut self, event: DebounceEventResult) { let _ = self.send(event);