aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-common
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2026-01-27 13:51:41 -0800
committerGitHub <noreply@github.com>2026-01-27 13:51:41 -0800
commit3ed6e6b8776185a57f5ce29a28b7b60174385ac1 (patch)
tree22f6c8edb45874fd2c18ec837f3e419e1bfdce1a /crates/atuin-common
parentfix: do not set ATUIN_SESSION if it is already set (#3107) (diff)
downloadatuin-3ed6e6b8776185a57f5ce29a28b7b60174385ac1.zip
chore(deps): cleanup of dep versions (#3106)
Ensure we aren't using multiple versions, etc <!-- Thank you for making a PR! Bug fixes are always welcome, but if you're adding a new feature or changing an existing one, we'd really appreciate if you open an issue, post on the forum, or drop in on Discord --> ## Checks - [ ] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [ ] I have checked that there are no existing pull requests for the same thing
Diffstat (limited to 'crates/atuin-common')
-rw-r--r--crates/atuin-common/Cargo.toml2
-rw-r--r--crates/atuin-common/src/api.rs8
2 files changed, 3 insertions, 7 deletions
diff --git a/crates/atuin-common/Cargo.toml b/crates/atuin-common/Cargo.toml
index 2ca4aa67..d65bdc68 100644
--- a/crates/atuin-common/Cargo.toml
+++ b/crates/atuin-common/Cargo.toml
@@ -26,7 +26,5 @@ sysinfo = "0.30.7"
base64 = { workspace = true }
getrandom = "0.2"
-lazy_static = "1.4.0"
-
[dev-dependencies]
pretty_assertions = { workspace = true }
diff --git a/crates/atuin-common/src/api.rs b/crates/atuin-common/src/api.rs
index 1aaf9859..973bdc8e 100644
--- a/crates/atuin-common/src/api.rs
+++ b/crates/atuin-common/src/api.rs
@@ -1,17 +1,15 @@
-use lazy_static::lazy_static;
use semver::Version;
use serde::{Deserialize, Serialize};
use std::borrow::Cow;
+use std::sync::LazyLock;
use time::OffsetDateTime;
// the usage of X- has been deprecated for quite along time, it turns out
pub static ATUIN_HEADER_VERSION: &str = "Atuin-Version";
pub static ATUIN_CARGO_VERSION: &str = env!("CARGO_PKG_VERSION");
-lazy_static! {
- pub static ref ATUIN_VERSION: Version =
- Version::parse(ATUIN_CARGO_VERSION).expect("failed to parse self semver");
-}
+pub static ATUIN_VERSION: LazyLock<Version> =
+ LazyLock::new(|| Version::parse(ATUIN_CARGO_VERSION).expect("failed to parse self semver"));
#[derive(Debug, Serialize, Deserialize)]
pub struct UserResponse {