diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-09 22:05:46 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-09 22:05:46 +0200 |
| commit | 92a8fd40209c5595475fb0288741d0347fe244c4 (patch) | |
| tree | bc6a275c32bfe9f71dc98bd39146c82938631c82 /crates/client/src/atuin_common/api.rs | |
| parent | chore: Add more things (diff) | |
| download | atuin-92a8fd40209c5595475fb0288741d0347fe244c4.zip | |
chore: Move more stuff out of atuin-client
Diffstat (limited to 'crates/client/src/atuin_common/api.rs')
| -rw-r--r-- | crates/client/src/atuin_common/api.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/crates/client/src/atuin_common/api.rs b/crates/client/src/atuin_common/api.rs deleted file mode 100644 index 0868943d..00000000 --- a/crates/client/src/atuin_common/api.rs +++ /dev/null @@ -1,22 +0,0 @@ -use semver::Version; -use serde::{Deserialize, Serialize}; -use std::borrow::Cow; -use std::sync::LazyLock; - -// the usage of X- has been deprecated for quite along time, it turns out -pub(crate) static ATUIN_HEADER_VERSION: &str = "Atuin-Version"; -pub(crate) static ATUIN_CARGO_VERSION: &str = env!("CARGO_PKG_VERSION"); - -pub(crate) static ATUIN_VERSION: LazyLock<Version> = - LazyLock::new(|| Version::parse(ATUIN_CARGO_VERSION).expect("failed to parse self semver")); - -#[derive(Debug, Serialize, Deserialize)] -pub(crate) struct ErrorResponse<'a> { - pub(crate) reason: Cow<'a, str>, -} - -#[derive(Debug, Serialize, Deserialize)] -pub(crate) struct IndexResponse { - pub(crate) homage: String, - pub(crate) version: String, -} |
