9
9
10
10
_ Cross-platform filesystem notification library for Rust._
11
11
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!**
13
13
14
14
(Looking for desktop notifications instead? Have a look at [ notify-rust] or
15
15
[ alert-after] !)
@@ -24,30 +24,46 @@ As used by: [alacritty], [cargo watch], [cobalt], [docket], [mdBook], [pax]
24
24
[ rdiff] , [ rust-analyzer] , [ timetrack] , [ watchexec] , [ xi-editor] , and others.
25
25
(Want to be added to this list? Open a pull request!)
26
26
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
+
27
57
## Installation
28
58
29
59
``` toml
30
60
[dependencies ]
31
61
crossbeam-channel = " 0.3.8"
32
- notify = " 5.0.0-pre.0 "
62
+ notify = " = 5.0.0-pre.1 "
33
63
```
34
64
35
65
## Usage
36
66
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
-
51
67
``` rust
52
68
use crossbeam_channel :: unbounded;
53
69
use notify :: {RecursiveMode , Result , watcher};
@@ -102,7 +118,7 @@ let mut watcher = immediate_watcher(tx)?;
102
118
Debounced Events can be serialisable via [ serde] . To enable the feature:
103
119
104
120
``` toml
105
- notify = { version = " 5.0.0-pre.0 " , features = [" serde" ] }
121
+ notify = { version = " = 5.0.0-pre.1 " , features = [" serde" ] }
106
122
```
107
123
108
124
## Platforms
@@ -168,7 +184,7 @@ Written by [Félix Saparelli] and awesome [contributors].
168
184
[ contributors ] : https://github.com/passcod/notify/graphs/contributors
169
185
[ crate ] : https://crates.io/crates/notify
170
186
[ 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/
172
188
[ fsnotify ] : https://github.com/go-fsnotify/fsnotify
173
189
[ handlebars-iron ] : https://github.com/sunng87/handlebars-iron
174
190
[ hotwatch ] : https://github.com/francesca64/hotwatch
0 commit comments