Skip to content

Commit 5309d83

Browse files
authored
refactor: replace instant with web-time (#13355)
See https://rustsec.org/advisories/RUSTSEC-2024-0384.html .
1 parent be19afc commit 5309d83

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

datafusion-cli/Cargo.lock

Lines changed: 11 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datafusion/common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ sqlparser = { workspace = true }
6767
tokio = { workspace = true }
6868

6969
[target.'cfg(target_family = "wasm")'.dependencies]
70-
instant = { version = "0.1", features = ["wasm-bindgen"] }
70+
web-time = "1.1.0"
7171

7272
[dev-dependencies]
7373
rand = { workspace = true }

datafusion/common/src/instant.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
//! WASM-compatible `Instant` wrapper.
1919
2020
#[cfg(target_family = "wasm")]
21-
/// DataFusion wrapper around [`std::time::Instant`]. Uses [`instant::Instant`]
21+
/// DataFusion wrapper around [`std::time::Instant`]. Uses [`web_time::Instant`]
2222
/// under `wasm` feature gate. It provides the same API as [`std::time::Instant`].
23-
pub type Instant = instant::Instant;
23+
pub type Instant = web_time::Instant;
2424

2525
#[allow(clippy::disallowed_types)]
2626
#[cfg(not(target_family = "wasm"))]

0 commit comments

Comments
 (0)