Skip to content

Commit fba0089

Browse files
committed
5.0.0-pre.1
1 parent 03b9f1a commit fba0089

File tree

5 files changed

+43
-21
lines changed

5 files changed

+43
-21
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
.*.sw*
44
tests/last-fails
55
tests/last-run.log
6+
.cargo

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
- CHANGE: Make it opt-in to receive information about event kind. [#187]
88
- CHANGE: Make `Notice` events opt-in.
99

10+
## 5.0.0-pre.1 (2019-06-30)
11+
12+
_(no changes, just a new release because the old one failed to publish properly)_
13+
1014
## 5.0.0-pre.0 (2019-06-22)
1115

16+
- **yanked 2019-06-30**
1217
- RUSTC: Push the minimum version to 1.32.0 [#201]
1318
- RUSTC: Switch the crate to Rust 2018.
1419
- FIX: Implement `Sync` for PollWatcher to support FreeBSD. [#197]

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "notify"
3-
version = "5.0.0-pre.0"
3+
version = "5.0.0-pre.1"
44

55
description = "Cross-platform filesystem notification library"
66
documentation = "https://docs.rs/notify"

README.md

+34-18
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
_Cross-platform filesystem notification library for Rust._
1111

12-
**This is the readme for the 5.0.0-pre.0 pre-release!**
12+
**This is the readme for the 5.0.0-pre.1 pre-release!**
1313

1414
(Looking for desktop notifications instead? Have a look at [notify-rust] or
1515
[alert-after]!)
@@ -24,30 +24,46 @@ As used by: [alacritty], [cargo watch], [cobalt], [docket], [mdBook], [pax]
2424
[rdiff], [rust-analyzer], [timetrack], [watchexec], [xi-editor], and others.
2525
(Want to be added to this list? Open a pull request!)
2626

27+
## Why a prerelease?
28+
29+
It’s taking a while to bring 5.0 to the standard and featureset I wish for it,
30+
while at the same time I have less time than ever to spend on this project. In
31+
short, don’t expect 5.0.0 before Q4 2019. I am aware, though, that people want
32+
to use the features that are finished so far. This is what this prerelease is.
33+
34+
It has all the fixes and implemented features so far, with the new `Event`
35+
interface for the "debounced" watcher, but keeping the previous events for the
36+
immediate (previously known as "raw") watcher. It is fairly stable in terms of
37+
functionality, and the debounced (default) API is as close as its final 5.0.0
38+
form as it can be.
39+
40+
The idea is to _pin_ to `=5.0.0-pre.1`, and ignore further prereleases. You’ll
41+
get long-standing fixes compared to 4.0.x, some new features, and API stability
42+
for the next few months.
43+
44+
The 4.0.x branch will continue being passively maintained during this time
45+
though, and it’s what out there in the ecosystem right now, so it’s always an
46+
option to go for [the latest 4.0 release].
47+
48+
If you want to live at the bleeding edge, you can of course track `main` or
49+
future prereleases. Keep in mind that there will be breakage, there will be
50+
changes, and entire features may disappear and reappear between prereleases.
51+
It’s gonna be pretty unstable for a while.
52+
53+
[the latest 4.0 release]: https://github.com/passcod/notify/tree/v4.0.10#notify
54+
55+
<sup>(What happened to `5.0.0-pre.0`? I broke it. I'm sorry. `.1` is just like it, though.)</sup>
56+
2757
## Installation
2858

2959
```toml
3060
[dependencies]
3161
crossbeam-channel = "0.3.8"
32-
notify = "5.0.0-pre.0"
62+
notify = "=5.0.0-pre.1"
3363
```
3464

3565
## Usage
3666

37-
This prerelease captures all the fixes of the 5.0 branch so far, with the new
38-
`Event` interface for the "debounced" watcher, but keeping the previous events
39-
for the immediate (previously known as "raw") watcher.
40-
41-
It is fairly stable in terms of functionality, but be aware that the API _will
42-
change dramatically_ between prereleases, although the goal is to have a fairly
43-
similar API for the 5.0.0 stable release. If you just want the 5.0 fixes and
44-
already-implemented features, you should use this. If you want a stable API
45-
with a large ecosystem compatibility, you may prefer [the latest 4.0 release].
46-
If you wish to live at the bleeding edge and try out new developments, later
47-
prereleases or even depending straight on the main branch is always an option.
48-
49-
[the latest 4.0 release]: https://github.com/passcod/notify/tree/v4.0.10#notify
50-
5167
```rust
5268
use crossbeam_channel::unbounded;
5369
use notify::{RecursiveMode, Result, watcher};
@@ -102,7 +118,7 @@ let mut watcher = immediate_watcher(tx)?;
102118
Debounced Events can be serialisable via [serde]. To enable the feature:
103119

104120
```toml
105-
notify = { version = "5.0.0-pre.0", features = ["serde"] }
121+
notify = { version = "=5.0.0-pre.1", features = ["serde"] }
106122
```
107123

108124
## Platforms
@@ -168,7 +184,7 @@ Written by [Félix Saparelli] and awesome [contributors].
168184
[contributors]: https://github.com/passcod/notify/graphs/contributors
169185
[crate]: https://crates.io/crates/notify
170186
[docket]: https://iwillspeak.github.io/docket/
171-
[docs]: https://docs.rs/notify/5.0.0-pre.0/notify/
187+
[docs]: https://docs.rs/notify/5.0.0-pre.1/notify/
172188
[fsnotify]: https://github.com/go-fsnotify/fsnotify
173189
[handlebars-iron]: https://github.com/sunng87/handlebars-iron
174190
[hotwatch]: https://github.com/francesca64/hotwatch

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
//!
55
//! ```toml
66
//! [dependencies]
7-
//! notify = "5.0.0-pre.0"
7+
//! notify = "=5.0.0-pre.1"
88
//! ```
99
//!
1010
//! ## Serde
1111
//!
1212
//! Debounced Events are serialisable via [serde] if the `serde` feature is enabled:
1313
//!
1414
//! ```toml
15-
//! notify = { version = "5.0.0-pre.0", features = ["serde"] }
15+
//! notify = { version = "=5.0.0-pre.1", features = ["serde"] }
1616
//! ```
1717
//!
1818
//! [serde]: https://serde.rs

0 commit comments

Comments
 (0)