diff --git a/adr_config_local_impl/Cargo.toml b/adr_config_local_impl/Cargo.toml index 2d6e252..41c6bfb 100644 --- a/adr_config_local_impl/Cargo.toml +++ b/adr_config_local_impl/Cargo.toml @@ -9,15 +9,13 @@ edition = "2018" [dependencies] # confy = "0.3.1" # use git master dep to get the truncate (https://github.com/rust-cli/confy/blob/master/src/lib.rs#L195) -confy = "0.6.1" #{ git = "https://github.com/rust-cli/confy", rev = "5a58388fa9b8bcd790a62c2a9db5abdcbe9fb467"} -serde_json = "1.0.128" -serde_yaml = "0.9.34" -serde = "1.0.210" -serde_derive = "1.0.210" +confy = "0.6.1" #{ git = "https://github.com/rust-cli/confy", rev = "5a58388fa9b8bcd790a62c2a9db5abdcbe9fb467"} +serde = "1.0.217" +serde_derive = "1.0.217" slog = "2.7.0" slog-term = "2.9.1" slog-async = "2.8.0" [dev-dependencies] -directories = "5.0.1" -uuid = { version = "0.8.2", features = ["v4"] } +directories = "6.0.0" +uuid = { version = "1.12.1", features = ["v4"] } diff --git a/adr_core_local_impl/Cargo.toml b/adr_core_local_impl/Cargo.toml index c980c2b..d8a9d37 100644 --- a/adr_core_local_impl/Cargo.toml +++ b/adr_core_local_impl/Cargo.toml @@ -11,9 +11,9 @@ slog = "2.7.0" slog-term = "2.9.1" slog-async = "2.8.0" lazy_static = "1.5.0" -regex = "1.11.0" +regex = "1.11.1" walkdir = "2.5.0" -chrono = "0.4.38" +chrono = "0.4.39" adr_config = {path = "../adr_config_local_impl"} futures = "0.3.31" @@ -30,7 +30,5 @@ harness = false [dev-dependencies] cucumber = "0.21.1" -directories = "5.0.1" -uuid = { version = "1.5.0", features = ["v4"] } +directories = "6.0.0" tempdir = "0.3" -tokio = "1.43.0" diff --git a/adr_core_local_impl/tests/create_adr.rs b/adr_core_local_impl/tests/create_adr.rs index 1b920c4..1e3c845 100644 --- a/adr_core_local_impl/tests/create_adr.rs +++ b/adr_core_local_impl/tests/create_adr.rs @@ -4,7 +4,6 @@ extern crate directories; use directories::ProjectDirs; use std::fs; -use std::future::Future; use std::path::{Path, PathBuf}; use chrono::Utc; use walkdir::WalkDir; @@ -77,7 +76,7 @@ fn for_this_decision(world: &mut AdrNames, decision_name: String) { } #[when("I create a new Decision Record")] -fn list_all_tags(world: &mut AdrNames) { +fn list_all_tags(_world: &mut AdrNames) { //do nothing } @@ -112,7 +111,7 @@ fn new_decision_exists(adr: &mut AdrNames, name: String) { } #[when("I create a new ADR")] -fn create_new_adr(adr: &mut AdrNames) { +fn create_new_adr(_adr: &mut AdrNames) { //do nothing } @@ -229,7 +228,7 @@ fn main() { fs::copy("./tests/adr-template-v0.1.adoc", project_dirs.cache_dir().join("templates/adr-template-v0.1.adoc").as_path()).unwrap(); }) }) - .after(|_feature, _rule, scenario, _ev, world| { + .after(|_feature, _rule, scenario, _ev, _world| { Box::pin(async move { let name = format!("{}-{}", scenario.name.clone(), scenario.position.line.clone()); let project_dirs: ProjectDirs = match ProjectDirs::from("murex", "adrust-tool", helper::get_workspace(&name).as_str()) { diff --git a/adr_core_local_impl/tests/tags_with_adr.rs b/adr_core_local_impl/tests/tags_with_adr.rs index ad5adb1..52f8748 100644 --- a/adr_core_local_impl/tests/tags_with_adr.rs +++ b/adr_core_local_impl/tests/tags_with_adr.rs @@ -1,29 +1,21 @@ use cucumber::{World}; extern crate directories; -use directories::ProjectDirs; - -use std::fs; -use std::future::Future; #[derive(Debug, World)] pub struct AdrNames { name: String, - has_transitioned: bool, - base_path: String, } impl std::default::Default for AdrNames { fn default() -> AdrNames { AdrNames { name: "default-name".to_string(), - has_transitioned: false, - base_path: String::from(""), } } } mod check_tags_management { - use cucumber::{given, then, when, World}; + use cucumber::{given, then, when}; extern crate adr_core; use std::path::Path; use crate::AdrNames; @@ -34,7 +26,7 @@ mod check_tags_management { } #[when("I list all the tags")] - fn list_all_tags(world: &mut AdrNames) { + fn list_all_tags(_world: &mut AdrNames) { //nothign to do } diff --git a/adr_search_local_impl/Cargo.toml b/adr_search_local_impl/Cargo.toml index 61cc9e7..fcbe797 100644 --- a/adr_search_local_impl/Cargo.toml +++ b/adr_search_local_impl/Cargo.toml @@ -13,10 +13,10 @@ zstd-sys = "=2.0.9" slog = "2.7.0" slog-term = "2.9.1" slog-async = "2.8.0" -serde_json = "1.0.128" -serde = "1.0.198" -serde_derive = "1.0.210" -chrono="0.4.38" +serde_json = "1.0.137" +serde = "1.0.217" +serde_derive = "1.0.217" +chrono="0.4.39" adr_config = { path = "../adr_config_local_impl" } adr_core = {path = "../adr_core_local_impl"} \ No newline at end of file diff --git a/cli/Cargo.toml b/cli/Cargo.toml index a5d1c3a..e40744f 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "adr" -version = "0.1.2" +version = "0.1.3" authors = ["MALLASSI Olivier "] edition = "2018" @@ -10,11 +10,8 @@ slog = "2.7.0" slog-term = "2.9.1" slog-async = "2.8.0" lazy_static = "1.4.0" -#prettytable-rs = "0.10.0" -comfy-table = "=7.1.1" -walkdir = "2.4.0" -dirs = "5.0.1" -regex = "1.4.3" +comfy-table = "=7.1.3" +dirs = "6.0.0" adr_core = {path = "../adr_core_local_impl"} adr_config = {path = "../adr_config_local_impl"}