From 9f7bf330571392bf27ef6025c9a7da7e46e5a35d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cipriani=20Bandarra?= Date: Tue, 28 May 2024 08:30:49 +0100 Subject: [PATCH] Avoid pinning dependency versions Pinning specific versions in the library makes it harder for applications to use newer versions o those dependencies. This is fixed by setting setting only the major version for libraries that have reached version 1.0.0 and above and major and minor versions for dependencies that have not reached version 1.0.0 as those can have their API surface changed across minor versions. --- .gitignore | 1 + Cargo.toml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 07a742a..19002ec 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ Cargo.lock /target .cargo/config.toml .DS_Store +/.idea diff --git a/Cargo.toml b/Cargo.toml index b8d0a08..e793ec7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,15 +6,15 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -deadqueue = "0.2.4" -futures-util = "0.3.30" -gcp_auth = "0.11.1" -reqwest = { version = "0.12.3", features = ["json", "gzip"] } -reqwest-eventsource = "0.6.0" -serde = { version = "1.0.197", features = ["derive"] } -serde_json = { version = "1.0.115"} -tracing = "0.1.40" -tokio = { version = "1.37.0" } +deadqueue = "0.2" +futures-util = "0.3" +gcp_auth = "0.11" +reqwest = { version = "0.12", features = ["json", "gzip"] } +reqwest-eventsource = "0.6" +serde = { version = "1", features = ["derive"] } +serde_json = { version = "1"} +tracing = "0.1" +tokio = { version = "1" } [dev-dependencies] console = "0.15.8"