From 31502593f737a1a57453516a4d605526eb2c83cc Mon Sep 17 00:00:00 2001 From: Aron Heinecke Date: Sat, 30 Apr 2022 22:10:22 +0200 Subject: [PATCH] Prepare 5.0.0-pre.15, msrv 1.56 Raise MSRV to 1.56 to allow for rust-version --- .github/workflows/main.yml | 2 +- CHANGELOG.md | 10 ++++++++++ Cargo.toml | 6 +++--- README.md | 10 +++++----- examples/hot_reload_tide/Cargo.toml | 2 +- examples/watcher_kind/Cargo.toml | 2 +- src/fsevent.rs | 1 + src/lib.rs | 4 ++-- 8 files changed, 24 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 084287c3..0e176a31 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: version: - - 1.50.0 # MSRV + - 1.56.0 # MSRV - stable - nightly os: [ubuntu-latest, macos-latest, windows-latest] diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fe76fd9..e5a06733 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,16 @@ ## unreleased +## 5.0.0-pre.15 (2022-04-30) + +- CHANGE: raise MSRV to 1.56! [#396][#402] +- FEATURE: add support for pseudo filesystems like sysfs/procfs [#396] +- FIX: Fix builds on (Free)BSD due to changes in kqueue fix release [#399] + +[#396]: https://github.com/notify-rs/notify/pull/396 +[#399]: https://github.com/notify-rs/notify/pull/399 +[#402]: https://github.com/notify-rs/notify/pull/402 + ## 5.0.0-pre.14 (2022-03-13) - CHANGE: upgrade mio to 0.8 [#386] diff --git a/Cargo.toml b/Cargo.toml index f687e975..ab0f0de3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "notify" -version = "5.0.0-pre.14" - +version = "5.0.0-pre.15" +rust-version = "1.56" description = "Cross-platform filesystem notification library" documentation = "https://docs.rs/notify" homepage = "https://github.com/notify-rs/notify" @@ -15,7 +15,7 @@ authors = [ "Daniel Faust " ] -edition = "2018" +edition = "2021" exclude = [ "/clippy.toml", ".github/*" diff --git a/README.md b/README.md index b749f11b..c5494bdf 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,10 @@ _Cross-platform filesystem notification library for Rust._ **Caution! This is unstable code!** -You likely want either [the latest 4.0 release] or [5.0.0-pre.14]. +You likely want either [the latest 4.0 release] or [5.0.0-pre.15]. [the latest 4.0 release]: https://github.com/notify-rs/notify/tree/v4.0.16#notify -[5.0.0-pre.14]: https://github.com/notify-rs/notify/tree/5.0.0-pre.14#notify +[5.0.0-pre.15]: https://github.com/notify-rs/notify/tree/5.0.0-pre.15#notify (Looking for desktop notifications instead? Have a look at [notify-rust] or [alert-after]!) @@ -33,7 +33,7 @@ As used by: [alacritty], [cargo watch], [cobalt], [docket], [mdBook], [pax], ```toml [dependencies] crossbeam-channel = "0.4.0" -notify = "5.0.0-pre.14" +notify = "5.0.0-pre.15" ``` ## Usage @@ -146,7 +146,7 @@ let mut watcher: RecommendedWatcher = Watcher::immediate_with_channel(tx)?; Events can be serialisable via [serde]. To enable the feature: ```toml -notify = { version = "5.0.0-pre.14", features = ["serde"] } +notify = { version = "5.0.0-pre.15", features = ["serde"] } ``` ## Platforms @@ -199,7 +199,7 @@ Written by [FĂ©lix Saparelli] and awesome [contributors]. [contributors]: https://github.com/notify-rs/notify/graphs/contributors [crate]: https://crates.io/crates/notify [docket]: https://iwillspeak.github.io/docket/ -[docs]: https://docs.rs/notify/5.0.0-pre.14/notify/ +[docs]: https://docs.rs/notify/5.0.0-pre.15/notify/ [fsnotify]: https://github.com/go-fsnotify/fsnotify [handlebars-iron]: https://github.com/sunng87/handlebars-iron [hotwatch]: https://github.com/francesca64/hotwatch diff --git a/examples/hot_reload_tide/Cargo.toml b/examples/hot_reload_tide/Cargo.toml index c1a58904..44660b00 100644 --- a/examples/hot_reload_tide/Cargo.toml +++ b/examples/hot_reload_tide/Cargo.toml @@ -11,4 +11,4 @@ tide = "0.16.0" async-std = { version = "1.6.0", features = ["attributes"] } serde_json = "1.0" serde = "1.0.115" -notify = { version = "5.0.0-pre.14", features = ["serde"] } +notify = { version = "5.0.0-pre.15", features = ["serde"] } diff --git a/examples/watcher_kind/Cargo.toml b/examples/watcher_kind/Cargo.toml index d5b6bd7b..3dd8ce04 100644 --- a/examples/watcher_kind/Cargo.toml +++ b/examples/watcher_kind/Cargo.toml @@ -7,4 +7,4 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -notify = { version = "5.0.0-pre.14", path = "../../" } +notify = { version = "5.0.0-pre.15", path = "../../" } diff --git a/src/fsevent.rs b/src/fsevent.rs index c1200903..cf27d9ef 100644 --- a/src/fsevent.rs +++ b/src/fsevent.rs @@ -435,6 +435,7 @@ impl FsEventWatcher { let thread_handle = thread::Builder::new() .name("notify-rs fsevents loop".to_string()) .spawn(move || { + let _ = &stream; let stream = stream.0; unsafe { diff --git a/src/lib.rs b/src/lib.rs index 70bb71b9..603adffa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ //! //! ```toml //! [dependencies] -//! notify = "5.0.0-pre.14" +//! notify = "5.0.0-pre.15" //! ``` //! //! ## Serde @@ -12,7 +12,7 @@ //! Events are serialisable via [serde] if the `serde` feature is enabled: //! //! ```toml -//! notify = { version = "5.0.0-pre.14", features = ["serde"] } +//! notify = { version = "5.0.0-pre.15", features = ["serde"] } //! ``` //! //! [serde]: https://serde.rs