Skip to content

Commit

Permalink
Rename dep_time dependency to time (#3098)
Browse files Browse the repository at this point in the history
We no longer have a crate feature named `time`, so renaming the
dependency isn't needed anymore.
  • Loading branch information
mkrasnitski authored Jan 22, 2025
1 parent 5f2133e commit 3c27756
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ serde = { version = "1.0.192", features = ["derive"] }
url = { version = "2.4.1", features = ["serde"] }
tokio = { version = "1.34.0", features = ["fs", "macros", "rt", "sync", "time", "io-util"] }
futures = { version = "0.3.29", default-features = false, features = ["std"] }
dep_time = { version = "0.3.36", package = "time", features = ["formatting", "parsing", "serde-well-known"] }
time = { version = "0.3.36", features = ["formatting", "parsing", "serde-well-known"] }
base64 = { version = "0.22.0" }
secrecy = { version = "0.8.0", features = ["serde"] }
arrayvec = { version = "0.7.4", features = ["serde"] }
Expand Down
6 changes: 3 additions & 3 deletions src/model/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ use std::str::FromStr;
pub use chrono::ParseError as InnerError;
#[cfg(feature = "chrono")]
use chrono::{DateTime, SecondsFormat, TimeZone, Utc};
use serde::{Deserialize, Serialize};
#[cfg(not(feature = "chrono"))]
pub use dep_time::error::Parse as InnerError;
pub use time::error::Parse as InnerError;
#[cfg(not(feature = "chrono"))]
use dep_time::{format_description::well_known::Rfc3339, serde::rfc3339, Duration, OffsetDateTime};
use serde::{Deserialize, Serialize};
use time::{format_description::well_known::Rfc3339, serde::rfc3339, Duration, OffsetDateTime};

/// Discord's epoch starts at "2015-01-01T00:00:00+00:00"
const DISCORD_EPOCH: u64 = 1_420_070_400_000;
Expand Down

0 comments on commit 3c27756

Please sign in to comment.