From aacd41642345cb66b327d4eb2cdc15ba4016daaa Mon Sep 17 00:00:00 2001 From: Benjamin Brienen Date: Sun, 10 Nov 2024 22:09:49 +0100 Subject: [PATCH 1/2] fix advisory --- Cargo.toml | 2 +- notify-types/Cargo.toml | 2 +- notify-types/src/debouncer_full.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 627ad814..05cf5804 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ kqueue = "1.0.8" libc = "0.2.4" log = "0.4.17" mio = { version = "1.0", features = ["os-ext"] } -instant = "0.1.12" +web-time = "1.1.0" nix = "0.27.0" notify = { version = "7.0.0", path = "notify" } notify-debouncer-full = { version = "0.4.0", path = "notify-debouncer-full" } diff --git a/notify-types/Cargo.toml b/notify-types/Cargo.toml index d24028fe..09d5c008 100644 --- a/notify-types/Cargo.toml +++ b/notify-types/Cargo.toml @@ -18,7 +18,7 @@ serialization-compat-6 = [] [dependencies] serde = { workspace = true, optional = true } -instant.workspace = true +web-time.workspace = true [dev-dependencies] serde_json.workspace = true diff --git a/notify-types/src/debouncer_full.rs b/notify-types/src/debouncer_full.rs index 9b32a71b..3b79c2d1 100644 --- a/notify-types/src/debouncer_full.rs +++ b/notify-types/src/debouncer_full.rs @@ -1,6 +1,6 @@ use std::ops::{Deref, DerefMut}; -use instant::Instant; +use web_time::Instant; use crate::event::Event; From 7d4e3291796e4c9b165858635f082d0cfa37932c Mon Sep 17 00:00:00 2001 From: Benjamin Brienen Date: Sun, 10 Nov 2024 22:35:11 +0100 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c476894..fb69ee38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -60,6 +60,10 @@ New crate containing public type definitions for the notify and debouncer crates [#568]: https://github.com/notify-rs/notify/pull/568 [#570]: https://github.com/notify-rs/notify/pull/570 +## notify-types 2.0.0 (unreleased) + +- CHANGE: replace instant crate with web-time **breaking** + ## debouncer-mini 0.5.0 (2024-10-25) - CHANGE: update notify to version 7.0.0