Updated dependencies, toolchain and rust edition

master
Wynd 2025-03-22 14:31:01 +02:00
parent 728ad3ff26
commit 437e3689d5
7 changed files with 26 additions and 20 deletions

26
Cargo.lock generated
View File

@ -149,23 +149,23 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
version = "0.4.39"
version = "0.4.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825"
checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c"
dependencies = [
"android-tzdata",
"iana-time-zone",
"js-sys",
"num-traits",
"wasm-bindgen",
"windows-targets",
"windows-link",
]
[[package]]
name = "clap"
version = "4.5.26"
version = "4.5.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a8eb5e908ef3a6efbe1ed62520fb7287959888c88485abe072543190ecc66783"
checksum = "6088f3ae8c3608d19260cd7445411865a485688711b78b5be70d78cd96136f83"
dependencies = [
"clap_builder",
"clap_derive",
@ -173,9 +173,9 @@ dependencies = [
[[package]]
name = "clap_builder"
version = "4.5.26"
version = "4.5.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96b01801b5fc6a0a232407abc821660c9c6d25a1cafc0d4f85f29fb8d9afc121"
checksum = "22a7ef7f676155edfb82daa97f99441f3ebf4a58d5e32f295a56259f1b6facc8"
dependencies = [
"anstream",
"anstyle",
@ -186,9 +186,9 @@ dependencies = [
[[package]]
name = "clap_derive"
version = "4.5.24"
version = "4.5.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54b755194d6389280185988721fffba69495eed5ee9feeee9a599b53db80318c"
checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7"
dependencies = [
"heck",
"proc-macro2",
@ -392,7 +392,7 @@ dependencies = [
[[package]]
name = "git-heatmap"
version = "1.3.0"
version = "1.4.0"
dependencies = [
"anyhow",
"chrono",
@ -1796,6 +1796,12 @@ dependencies = [
"windows-targets",
]
[[package]]
name = "windows-link"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38"
[[package]]
name = "windows-sys"
version = "0.52.0"

View File

@ -2,8 +2,8 @@ cargo-features = ["codegen-backend"]
[package]
name = "git-heatmap"
version = "1.3.0"
edition = "2021"
version = "1.4.0"
edition = "2024"
authors = ["Wynd <wyndftw@proton.me>"]
description = "A simple and customizable heatmap for git repos"
readme = "README.md"
@ -25,8 +25,8 @@ gix = { version = "0.70.0", default-features = false, features = [
"mailmap",
"parallel",
] }
clap = { version = "4.5.26", features = ["derive"] }
chrono = { version = "0.4.39" }
clap = { version = "4.5.32", features = ["derive"] }
chrono = { version = "0.4.40" }
itertools = { version = "0.14.0" }
anyhow = { version = "1.0.95" }
rayon = { version = "1.10.0" }

View File

@ -3,8 +3,8 @@ use std::sync::OnceLock;
use chrono::{Local, NaiveDate};
use gix::ObjectId;
use libgitheatmap::{
heatmap::{self, Heatmap},
Commit,
heatmap::{self, Heatmap},
};
static COMMITS: OnceLock<Vec<Commit>> = OnceLock::new();

View File

@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-12-02"
channel = "nightly-2025-03-20"

View File

@ -1,7 +1,7 @@
use std::path::PathBuf;
use chrono::{Duration, Local};
use clap::{arg, Parser, ValueHint};
use clap::{Parser, ValueHint, arg};
use crate::heatmap::{ColorLogic, Format, HeatmapColors};

View File

@ -7,7 +7,7 @@ use chrono::{Datelike, Duration, NaiveDate};
use clap::ValueEnum;
use itertools::Itertools;
use crate::{get_char, get_color, get_color_map, Commit, DAYS, RESET};
use crate::{Commit, DAYS, RESET, get_char, get_color, get_color_map};
pub struct Heatmap {
since: NaiveDate,

View File

@ -11,8 +11,8 @@ use chrono::{DateTime, Duration, Local, NaiveDate, NaiveTime, TimeZone};
use clap::Parser;
use cli::CliArgs;
use gix::{
bstr::ByteSlice, revision::walk::Sorting, traverse::commit::simple::CommitTimeOrder, ObjectId,
ThreadSafeRepository,
ObjectId, ThreadSafeRepository, bstr::ByteSlice, revision::walk::Sorting,
traverse::commit::simple::CommitTimeOrder,
};
use heatmap::{ColorLogic, HeatmapColors};
use itertools::Itertools;