Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
omallassi committed Jan 22, 2025
1 parent 1bece3d commit 8c136f2
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 36 deletions.
12 changes: 5 additions & 7 deletions adr_config_local_impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
8 changes: 3 additions & 5 deletions adr_core_local_impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
7 changes: 3 additions & 4 deletions adr_core_local_impl/tests/create_adr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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()) {
Expand Down
12 changes: 2 additions & 10 deletions adr_core_local_impl/tests/tags_with_adr.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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
}

Expand Down
8 changes: 4 additions & 4 deletions adr_search_local_impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
9 changes: 3 additions & 6 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "adr"
version = "0.1.2"
version = "0.1.3"
authors = ["MALLASSI Olivier <Olivier.MALLASSI@gmail.com>"]
edition = "2018"

Expand All @@ -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"}
Expand Down

0 comments on commit 8c136f2

Please sign in to comment.