mirror of
https://github.com/atuinsh/atuin.git
synced 2024-12-28 18:09:25 +01:00
86f50e0356
* feat: add semver checking to client requests This enforces that the client and the server run the same major version in order to sync successfully. We're using the `Atuin-Version` http header to transfer this information If the user is not on the same MAJOR, then they will see an error like this > Atuin version mismatch! In order to successfully sync, the client and the server must run the same *major* version > Client: 17.1.0 > Server: 18.1.0 > Error: could not sync records due to version mismatch This change means two things 1. We will now only increment major versions if there is a breaking change for sync 2. We can now add breaking changes to sync, for any version >17.1.0. Clients will fail in a meaningful way. * lint, fmt, etc * only check for client newer than server * Add version header to client too
29 lines
720 B
TOML
29 lines
720 B
TOML
[package]
|
|
name = "atuin-common"
|
|
edition = "2021"
|
|
description = "common library for atuin"
|
|
|
|
rust-version = { workspace = true }
|
|
version = { workspace = true }
|
|
authors = { workspace = true }
|
|
license = { workspace = true }
|
|
homepage = { workspace = true }
|
|
repository = { workspace = true }
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
time = { workspace = true }
|
|
serde = { workspace = true }
|
|
uuid = { workspace = true }
|
|
rand = { workspace = true }
|
|
typed-builder = { workspace = true }
|
|
eyre = { workspace = true }
|
|
sqlx = { workspace = true }
|
|
semver = { workspace = true }
|
|
|
|
lazy_static = "1.4.0"
|
|
|
|
[dev-dependencies]
|
|
pretty_assertions = { workspace = true }
|