aboutsummaryrefslogtreecommitdiffstats
path: root/crates/common/src/api.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--crates/common/src/api.rs (renamed from crates/turtle/src/atuin_common/api.rs)16
1 files changed, 8 insertions, 8 deletions
diff --git a/crates/turtle/src/atuin_common/api.rs b/crates/common/src/api.rs
index 0868943d..0e34171d 100644
--- a/crates/turtle/src/atuin_common/api.rs
+++ b/crates/common/src/api.rs
@@ -4,19 +4,19 @@ 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 static ATUIN_HEADER_VERSION: &str = "Atuin-Version";
+pub static ATUIN_CARGO_VERSION: &str = env!("CARGO_PKG_VERSION");
-pub(crate) static ATUIN_VERSION: LazyLock<Version> =
+pub 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>,
+pub struct ErrorResponse<'a> {
+ pub reason: Cow<'a, str>,
}
#[derive(Debug, Serialize, Deserialize)]
-pub(crate) struct IndexResponse {
- pub(crate) homage: String,
- pub(crate) version: String,
+pub struct IndexResponse {
+ pub homage: String,
+ pub version: String,
}