Skip to content

Commit

Permalink
Rename debouncer-refined to debouncer-full
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaust authored and 0xpr03 committed May 15, 2023
1 parent 679fc4a commit af9feef
Show file tree
Hide file tree
Showing 49 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ v4 commits split out to branch `v4_maintenance` starting with `4.0.16`
- CHANGE: files and directories moved into a watch folder on Linux will now be reported as `rename to` events instead of `create` events
- CHANGE: on Linux `rename from` events will be emitted immediately without starting a new thread

## debouncer-refined 0.1.0
## debouncer-full 0.1.0

- FEATURE: only emit a single `rename` event if the rename `From` and `To` events can be matched
- FEATURE: merge multiple `rename` events
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
members = [
"notify",
"notify-debouncer-mini",
"notify-debouncer-refined",
"notify-debouncer-full",
"file-id",
# internal
"examples"
Expand Down
14 changes: 7 additions & 7 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
[dev-dependencies]
notify = { version = "6.0.0", path = "../notify" }
notify-debouncer-mini = { version = "0.2.0", path = "../notify-debouncer-mini" }
notify-debouncer-refined = { version = "0.1.0", path = "../notify-debouncer-refined" }
notify-debouncer-full = { version = "0.1.0", path = "../notify-debouncer-full" }
futures = "0.3"
tempfile = "3.5.0"

Expand All @@ -20,16 +20,16 @@ name = "monitor_raw"
path = "monitor_raw.rs"

[[example]]
name = "debounced"
path = "debounced.rs"
name = "debouncer_mini"
path = "debouncer_mini.rs"

[[example]]
name = "debounced_custom"
path = "debounced_full_custom.rs"
name = "debouncer_mini_custom"
path = "debouncer_mini_custom.rs"

[[example]]
name = "debounced_refined"
path = "debounced_refined.rs"
name = "debouncer_full"
path = "debouncer_full.rs"

[[example]]
name = "poll_sysfs"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{fs, thread, time::Duration};

use notify::{RecursiveMode, Watcher};
use notify_debouncer_refined::new_debouncer;
use notify_debouncer_full::new_debouncer;
use tempfile::tempdir;

fn main() -> Result<(), Box<dyn std::error::Error>> {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "notify-debouncer-refined"
name = "notify-debouncer-full"
version = "0.1.0"
edition = "2021"
rust-version = "1.56"
description = "notify event debouncer optimized for ease of use"
documentation = "https://docs.rs/notify-debouncer-refined"
documentation = "https://docs.rs/notify-debouncer-full"
homepage = "https://github.com/notify-rs/notify"
repository = "https://github.com/notify-rs/notify.git"
authors = ["Daniel Faust <hessijames@gmail.com>"]
Expand All @@ -15,7 +15,7 @@ readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
name = "notify_debouncer_refined"
name = "notify_debouncer_full"
path = "src/lib.rs"

[features]
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Notify Debouncer Refined
# Notify Debouncer Full

[![» Docs](https://flat.badgen.net/badge/api/docs.rs/df3600)][docs]

Expand All @@ -19,12 +19,12 @@ A debouncer for [notify] that is optimized for ease of use.
Use someting like the following to disable it.

```toml
notify-debouncer-refined = { version = "*", default-features = false }
notify-debouncer-full = { version = "*", default-features = false }
```

This also passes through to notify as `crossbeam-channel` feature.

- `serde` for serde support of event types, off by default

[docs]: https://docs.rs/notify-debouncer-refined
[docs]: https://docs.rs/notify-debouncer-full
[notify]: https://crates.io/crates/notify
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
//!
//! ```toml
//! [dependencies]
//! notify-debouncer-refined = "0.1.0"
//! notify-debouncer-full = "0.1.0"
//! ```
//!
//! In case you want to select specific features of notify,
//! specify notify as dependency explicitely in your dependencies.
//! Otherwise you can just use the re-export of notify from debouncer-easy.
//!
//! ```toml
//! notify-debouncer-refined = "0.1.0"
//! notify-debouncer-full = "0.1.0"
//! notify = { version = "..", features = [".."] }
//! ```
//!
Expand All @@ -28,7 +28,7 @@
//! ```rust,no_run
//! # use std::path::Path;
//! # use std::time::Duration;
//! use notify_debouncer_refined::{notify::*, new_debouncer, DebounceEventResult};
//! use notify_debouncer_full::{notify::*, new_debouncer, DebounceEventResult};
//!
//! // Select recommended watcher for debouncer.
//! // Using a callback here, could also be a channel.
Expand Down Expand Up @@ -98,7 +98,7 @@ use std::time::Instant;
///
/// ```rust,no_run
/// # use notify::{Event, Result, EventHandler};
/// # use notify_debouncer_refined::{DebounceEventHandler, DebounceEventResult};
/// # use notify_debouncer_full::{DebounceEventHandler, DebounceEventResult};
///
/// /// Prints received events
/// struct EventPrinter;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion notify/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//! ```
//!
//! If you want debounced events, see [notify-debouncer-mini](https://github.com/notify-rs/notify/tree/main/notify-debouncer-mini)
//! or [notify-debouncer-refined](https://github.com/notify-rs/notify/tree/main/notify-debouncer-refined).
//! or [notify-debouncer-full](https://github.com/notify-rs/notify/tree/main/notify-debouncer-full).
//!
//! ## Features
//!
Expand Down

0 comments on commit af9feef

Please sign in to comment.