Skip to content

Commit

Permalink
chore(cli): remove watcher crate
Browse files Browse the repository at this point in the history
This is now implemented using `async-watcher`, which is a standalone
crate that is based on the watcher implementation that is being deleted.
  • Loading branch information
justinrubek committed Jul 3, 2023
1 parent 93c5644 commit d7937e1
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 317 deletions.
30 changes: 15 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path = "src/main.rs"
[dependencies]
annapurna-logic = { path = "../logic" }
annapurna-http = { path = "../http" }
annapurna-watcher = { path = "../watcher" }
async-watcher = "0.1.1"
clap = { version = "4.1.13", features = ["derive"] }
config = "0.13.3"
gix-discover = "0.16.1"
Expand Down
4 changes: 2 additions & 2 deletions crates/cli/src/commands/dev.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use annapurna_watcher::new_async_debouncer;
use async_watcher::AsyncDebouncer;
use notify::RecursiveMode;
use std::path::Path;
use tokio::time::Duration;
Expand Down Expand Up @@ -50,7 +50,7 @@ pub async fn async_debounce_watch<P: AsRef<Path>>(
let (tx, mut rx) = tokio::sync::mpsc::channel(100);

let mut debouncer =
new_async_debouncer(Duration::from_secs(1), Some(Duration::from_secs(1)), tx).await?;
AsyncDebouncer::new(Duration::from_secs(1), Some(Duration::from_secs(1)), tx).await?;

paths.iter().for_each(|p| {
debouncer
Expand Down
11 changes: 0 additions & 11 deletions crates/ui/src/main.rs

This file was deleted.

15 changes: 0 additions & 15 deletions crates/watcher/Cargo.toml

This file was deleted.

7 changes: 0 additions & 7 deletions crates/watcher/src/error.rs

This file was deleted.

266 changes: 0 additions & 266 deletions crates/watcher/src/lib.rs

This file was deleted.

0 comments on commit d7937e1

Please sign in to comment.