nushell/crates/nu-command/src/filesystem
WindSoilder 0e86ba4b63
Dependency update: update notify version to v5 (#8114)
# Description

Relative: #8060

While investigating, I found we need to update notify, which is a good
step to remove some duplicate dependencies.

As title, here are some goods and bads after updating:

## Good
keep dependency up to date, and remove duplidate dependency(cfg-if,
winapi) in Cargo.lock.

## Bad
Introduce some breaking changes:
After updating to notify v5, I found that we have to remove `Rename`
events.

But I've testing under notify v4, and it doesn't work good if we running
the following command on MacOS:
```
touch a
mv a b
```
It fires file create event, but no file rename event. So `rename` event
is not really reliable, so I think it's ok for us to remove `Rename`
events.

The reason to remove `--debounce-ms` flag:
It's not provided by defualt file watcher, we can use
[PollWatcher](https://docs.rs/notify/latest/notify/poll/struct.PollWatcher.html),
but it scans filesystem, which is really expensive. So I just remove the
flag.

# User-Facing Changes

1. `--debounce-ms` flag is removed
2. no longer watch `Rename` event.

# Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass

# After Submitting

If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
2023-02-22 13:35:09 -08:00
..
cd_query.rs Fix typos by codespell (#7600) 2022-12-26 02:31:26 -05:00
cd.rs #8027 Hide implementation details in invalid cd call (#8049) 2023-02-13 02:24:48 +00:00
cp.rs cp progress bar implementation (#8012) 2023-02-22 11:57:38 -08:00
glob.rs Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
ls.rs Benchmark each pipeline element (#7854) 2023-02-11 21:35:48 +00:00
mkdir.rs Filesystem commands print --verbose to stderr (#8014) 2023-02-09 10:29:34 -08:00
mod.rs move BufferedReader out of nu-command (#7697) 2023-01-06 15:22:17 -08:00
mv.rs Filesystem commands print --verbose to stderr (#8014) 2023-02-09 10:29:34 -08:00
open.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
rm.rs Filesystem commands print --verbose to stderr (#8014) 2023-02-09 10:29:34 -08:00
save.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
start.rs Support URLs in start command (#7799) 2023-02-16 13:33:25 +00:00
touch.rs Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
util.rs move BufferedReader out of nu-command (#7697) 2023-01-06 15:22:17 -08:00
watch.rs Dependency update: update notify version to v5 (#8114) 2023-02-22 13:35:09 -08:00