-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move debouncer to own crate and fix audit failures
- Loading branch information
Showing
23 changed files
with
140 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,16 @@ | ||
[package] | ||
name = "notify" | ||
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" | ||
repository = "https://github.com/notify-rs/notify.git" | ||
readme = "README.md" | ||
license = "CC0-1.0 OR Artistic-2.0" | ||
keywords = ["events", "filesystem", "notify", "watch"] | ||
categories = ["filesystem"] | ||
authors = [ | ||
"Félix Saparelli <[email protected]>", | ||
"Daniel Faust <[email protected]>" | ||
] | ||
[workspace] | ||
|
||
edition = "2021" | ||
exclude = [ | ||
"/clippy.toml", | ||
".github/*" | ||
members = [ | ||
"notify", | ||
"notify-debouncer-mini", | ||
|
||
# internal | ||
"examples" | ||
#"examples/hot_reload_tide" untill https://github.com/rustsec/rustsec/issues/501 is resolved | ||
] | ||
|
||
[dependencies] | ||
bitflags = "1.0.4" | ||
crossbeam-channel = "0.5.0" | ||
filetime = "0.2.6" | ||
libc = "0.2.4" | ||
serde = { version = "1.0.89", features = ["derive"], optional = true } | ||
walkdir = "2.0.1" | ||
|
||
[target.'cfg(target_os="linux")'.dependencies] | ||
inotify = { version = "0.9", default-features = false } | ||
mio = { version = "0.8", features = ["os-ext"] } | ||
|
||
[target.'cfg(target_os="macos")'.dependencies] | ||
fsevent-sys = { version = "4", optional = true } | ||
kqueue = { version = "1.0", optional = true } | ||
mio = { version = "0.8", features = ["os-ext"], optional = true } | ||
|
||
[target.'cfg(windows)'.dependencies] | ||
winapi = { version = "0.3.8", features = ["fileapi", "handleapi", "ioapiset", "minwinbase", "synchapi", "winbase", "winnt"] } | ||
|
||
[target.'cfg(any(target_os="freebsd", target_os="openbsd", target_os = "netbsd", target_os = "dragonflybsd"))'.dependencies] | ||
kqueue = "^1.0.4" # fix for #344 | ||
mio = { version = "0.8", features = ["os-ext"] } | ||
|
||
[dev-dependencies] | ||
futures = "0.3" | ||
serde_json = "1.0.39" | ||
tempfile = "3.2.0" | ||
nix = "0.23.1" | ||
|
||
[features] | ||
default = ["macos_fsevent"] | ||
timing_tests = [] | ||
manual_tests = [] | ||
macos_kqueue = ["kqueue", "mio"] | ||
macos_fsevent = ["fsevent-sys"] | ||
exclude = ["examples/hot_reload_tide"] | ||
|
||
[patch.crates-io] | ||
notify = { path = "." } | ||
|
||
[workspace] | ||
members = [ | ||
".", | ||
"examples/hot_reload_tide", | ||
"examples/watcher_kind" | ||
] | ||
notify = { path = "notify/" } | ||
notify-debouncer-mini = { path = "notify-debouncer-mini/" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[package] | ||
name = "examples" | ||
version = "0.0.0" | ||
publish = false | ||
edition = "2021" | ||
|
||
[dev-dependencies] | ||
notify = { version = "5.0.0-pre.15" } | ||
notify-debouncer-mini = { version = "0.1" } | ||
futures = "0.3" | ||
|
||
[[example]] | ||
name = "async_monitor" | ||
path = "async_monitor.rs" | ||
|
||
[[example]] | ||
name = "monitor_raw" | ||
path = "monitor_raw.rs" | ||
|
||
[[example]] | ||
name = "debounced" | ||
path = "debounced.rs" | ||
|
||
[[example]] | ||
name = "poll_sysfs" | ||
path = "poll_sysfs.rs" | ||
|
||
[[example]] | ||
name = "watcher_kind" | ||
path = "watcher_kind.rs" | ||
|
||
# specifically in its own sub folder | ||
# to prevent audit from complaining | ||
#[[example]] | ||
#name = "hot_reload_tide" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ fn main() { | |
} else { | ||
Box::new(RecommendedWatcher::new(tx).unwrap()) | ||
}; | ||
// use _watcher here | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[package] | ||
name = "notify-debouncer-mini" | ||
version = "0.1.0" | ||
edition = "2021" | ||
description = "notify mini debouncer for events" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[lib] | ||
name = "notify_debouncer_mini" | ||
path = "src/lib.rs" | ||
|
||
[dependencies] | ||
notify = "5.0.0-pre.15" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/target | ||
/Cargo.lock | ||
.*.sw* | ||
tests/last-fails | ||
tests/last-run.log | ||
.cargo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[package] | ||
name = "notify" | ||
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" | ||
repository = "https://github.com/notify-rs/notify.git" | ||
readme = "README.md" | ||
license = "CC0-1.0 OR Artistic-2.0" | ||
keywords = ["events", "filesystem", "notify", "watch"] | ||
categories = ["filesystem"] | ||
authors = [ | ||
"Félix Saparelli <[email protected]>", | ||
"Daniel Faust <[email protected]>" | ||
] | ||
|
||
edition = "2021" | ||
|
||
[dependencies] | ||
bitflags = "1.0.4" | ||
crossbeam-channel = "0.5.0" | ||
filetime = "0.2.6" | ||
libc = "0.2.4" | ||
serde = { version = "1.0.89", features = ["derive"], optional = true } | ||
walkdir = "2.0.1" | ||
|
||
[target.'cfg(target_os="linux")'.dependencies] | ||
inotify = { version = "0.9", default-features = false } | ||
mio = { version = "0.8", features = ["os-ext"] } | ||
|
||
[target.'cfg(target_os="macos")'.dependencies] | ||
fsevent-sys = { version = "4", optional = true } | ||
kqueue = { version = "1.0", optional = true } | ||
mio = { version = "0.8", features = ["os-ext"], optional = true } | ||
|
||
[target.'cfg(windows)'.dependencies] | ||
winapi = { version = "0.3.8", features = ["fileapi", "handleapi", "ioapiset", "minwinbase", "synchapi", "winbase", "winnt"] } | ||
|
||
[target.'cfg(any(target_os="freebsd", target_os="openbsd", target_os = "netbsd", target_os = "dragonflybsd"))'.dependencies] | ||
kqueue = "^1.0.4" # fix for #344 | ||
mio = { version = "0.8", features = ["os-ext"] } | ||
|
||
[dev-dependencies] | ||
serde_json = "1.0.39" | ||
tempfile = "3.2.0" | ||
nix = "0.23.1" | ||
|
||
[features] | ||
default = ["macos_fsevent"] | ||
timing_tests = [] | ||
manual_tests = [] | ||
macos_kqueue = ["kqueue", "mio"] | ||
macos_fsevent = ["fsevent-sys"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
# Release checklist of files to update | ||
|
||
- update changelog | ||
- update readme | ||
- update lib.rs | ||
- update cargo.toml | ||
Specifically the notify version. | ||
|
||
- update CHANGELOG.md | ||
- update README.md | ||
- update notify/lib.rs | ||
- update notify/cargo.toml examples/Cargo.toml examples/hot_reload_tide/Cargo.toml | ||
- bump version number on the root Cargo.toml and examples | ||
- maybe update notify-debouncer-mini/Cargo.toml |