Skip to content

Commit

Permalink
deps: remove instant (#1008)
Browse files Browse the repository at this point in the history
closes #1006
  • Loading branch information
amrbashir authored Nov 11, 2024
1 parent cb50090 commit 73741a7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changes/instant.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tao": "minor"
---

Remove `instant` dependency, changed `StartCause::ResumeTimeReached`, `StartCause::WaitCancelled` and `ControlFlow::WaitUntil` to use `std::time::Instant` instead.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ serde = [ "dep:serde", "dpi/serde" ]
members = [ "tao-macros" ]

[dependencies]
instant = "0.1"
lazy_static = "1"
libc = "0.2"
log = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion examples/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Copyright 2021-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0

use instant::Instant;
use std::time::Duration;
use std::time::Instant;

use tao::{
event::{Event, StartCause, WindowEvent},
Expand Down
2 changes: 1 addition & 1 deletion src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
//! describes what happens in what order.
//!
//! [event_loop_run]: crate::event_loop::EventLoop::run
use instant::Instant;
use std::path::PathBuf;
use std::time::Instant;

use crate::{
dpi::{PhysicalPosition, PhysicalSize},
Expand Down
2 changes: 1 addition & 1 deletion src/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//! [create_proxy]: crate::event_loop::EventLoop::create_proxy
//! [event_loop_proxy]: crate::event_loop::EventLoopProxy
//! [send_event]: crate::event_loop::EventLoopProxy::send_event
use instant::Instant;
use std::time::Instant;
use std::{error, fmt, marker::PhantomData, ops::Deref};

use crate::{
Expand Down

0 comments on commit 73741a7

Please sign in to comment.