Skip to content

Commit

Permalink
Update dependencies to fix cargo audit
Browse files Browse the repository at this point in the history
  • Loading branch information
lpenz committed Dec 14, 2024
1 parent 0fd8990 commit 5990647
Show file tree
Hide file tree
Showing 39 changed files with 140 additions and 152 deletions.
174 changes: 74 additions & 100 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion aoc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ version = "0.1.0"
edition = "2021"

[dependencies]
color-eyre = "0.6.2"
color-eyre = "0.6.3"
humantime = "2.1.0"
nom = "7.1.3"
2 changes: 1 addition & 1 deletion day00-template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
4 changes: 2 additions & 2 deletions day01/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
regex = "1.10.2"
regex = "1.11.1"
4 changes: 2 additions & 2 deletions day02/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
rayon = "1.8.0"
rayon = "1.10.0"
4 changes: 2 additions & 2 deletions day03/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
sqrid = "0.0.24"
sqrid = "0.0.27"
2 changes: 2 additions & 0 deletions day03/src/bin/day03a.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

use day03::*;

use sqrid::postrait::PosT;

fn process(bufin: impl BufRead) -> Result<u32> {
let input = parser::parse(bufin)?;
let mut grid = Grid::default();
Expand Down
2 changes: 2 additions & 0 deletions day03/src/bin/day03b.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

use day03::*;

use sqrid::postrait::PosT;

fn process(bufin: impl BufRead) -> Result<u32> {
let input = parser::parse(bufin)?;
let mut grid = Grid::default();
Expand Down
1 change: 1 addition & 0 deletions day03/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ impl fmt::Display for Cell {
}
}

use sqrid::postrait::PosT;
pub use sqrid::Dir;
pub type Sqrid = sqrid::sqrid_create!(140, 140, true);
pub type Pos = sqrid::pos_create!(Sqrid);
Expand Down
2 changes: 1 addition & 1 deletion day04/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
4 changes: 2 additions & 2 deletions day05/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
rayon = "1.8.0"
rayon = "1.10.0"
2 changes: 1 addition & 1 deletion day06/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
4 changes: 2 additions & 2 deletions day07/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
itertools = "0.12.0"
color-eyre = "0.6.3"
itertools = "0.13.0"
nom = "7.1.3"
6 changes: 3 additions & 3 deletions day08/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
num = "0.4.1"
rayon = "1.8.0"
num = "0.4.3"
rayon = "1.10.0"
4 changes: 2 additions & 2 deletions day09/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
rayon = "1.8.0"
rayon = "1.10.0"
4 changes: 2 additions & 2 deletions day09/src/bin/day09a.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use day09::*;

use rayon::prelude::*;

fn calc_next(nums: &Vec<i64>) -> i64 {
fn calc_next(nums: &[i64]) -> i64 {
let mut lastsum = nums[nums.len() - 1];
let mut currdiff = diffs(nums);
while !currdiff.par_iter().all(|n| n == &0) {
Expand All @@ -18,7 +18,7 @@ fn calc_next(nums: &Vec<i64>) -> i64 {

fn process(bufin: impl BufRead) -> Result<i64> {
let input = parser::parse(bufin)?;
Ok(input.par_iter().map(calc_next).sum())
Ok(input.par_iter().map(|v| calc_next(v)).sum())
}

#[test]
Expand Down
6 changes: 3 additions & 3 deletions day10/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
itertools = "0.12.0"
color-eyre = "0.6.3"
itertools = "0.13.0"
nom = "7.1.3"
sqrid = "0.0.24"
sqrid = "0.0.27"
2 changes: 2 additions & 0 deletions day10/src/bin/day10b.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

use day10::*;

use sqrid::postrait::PosT;

use itertools::Itertools;

#[derive(Debug, Default, Clone, Copy)]
Expand Down
2 changes: 1 addition & 1 deletion day11/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
2 changes: 1 addition & 1 deletion day12/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
2 changes: 1 addition & 1 deletion day13/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
4 changes: 2 additions & 2 deletions day14/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
sqrid = "0.0.24"
sqrid = "0.0.27"
2 changes: 2 additions & 0 deletions day14/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

pub use aoc::*;

use sqrid::postrait::PosT;

use std::fmt;

pub const EXAMPLE: &str = "O....#....
Expand Down
2 changes: 1 addition & 1 deletion day15/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
6 changes: 3 additions & 3 deletions day16/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
autofolder = "0.5.0"
color-eyre = "0.6.2"
autofolder = "0.5.1"
color-eyre = "0.6.3"
nom = "7.1.3"
sqrid = "0.0.24"
sqrid = "0.0.27"
4 changes: 2 additions & 2 deletions day17/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
sqrid = "0.0.24"
sqrid = "0.0.27"
4 changes: 3 additions & 1 deletion day17/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ use std::collections::BinaryHeap;
use std::collections::HashMap;
use std::collections::HashSet;

use sqrid::postrait::PosT;

pub const EXAMPLE: &str = "2413432311323
3215453535623
3255245654254
Expand Down Expand Up @@ -70,7 +72,7 @@ pub fn path_debug(_size: u16, gheat: &Grid, path: &[Dir]) {
let mut gdir = Griddir::default();
for dir in path {
gdir[pos] = dir.name_utf8().to_string();
pos = (pos + dir).unwrap();
pos = (pos + *dir).unwrap();
heat += gheat[pos];
gheatacum[pos] = heat;
}
Expand Down
6 changes: 3 additions & 3 deletions day18/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
autofolder = "0.5.0"
color-eyre = "0.6.2"
autofolder = "0.5.1"
color-eyre = "0.6.3"
nom = "7.1.3"
sqrid = "0.0.24"
sqrid = "0.0.27"
2 changes: 1 addition & 1 deletion day19/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
copstr = "0.1.2"
nom = "7.1.3"
2 changes: 1 addition & 1 deletion day20/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
copstr = "0.1.2"
nom = "7.1.3"
2 changes: 1 addition & 1 deletion day20/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ pub fn sts_init(modules: &BTreeMap<Mname, Module>) -> BTreeMap<Mname, ModState>
for src_mname in modules.keys() {
let src_module = &modules[src_mname];
for dst_mname in &src_module.dsts {
let dst_module = &modules[&dst_mname];
let dst_module = &modules[dst_mname];
if dst_module.mtype == Mtype::Conjunct {
let conj = sts.get_mut(dst_mname).unwrap();
conj.memory.insert(*src_mname, false);
Expand Down
6 changes: 3 additions & 3 deletions day21/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
rayon = "1.8.0"
sqrid = "0.0.24"
rayon = "1.10.0"
sqrid = "0.0.27"
2 changes: 2 additions & 0 deletions day21/src/bin/day21a.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use day21::*;

use std::collections::HashSet;

use sqrid::postrait::PosT;

pub use sqrid::Dir;
pub type Sqrid = sqrid::sqrid_create!(131, 131, false);
// pub type Sqrid = sqrid::sqrid_create!(11, 11, false);
Expand Down
4 changes: 2 additions & 2 deletions day22/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
rayon = "1.8.0"
rayon = "1.10.0"
4 changes: 2 additions & 2 deletions day23/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
sqrid = "0.0.24"
sqrid = "0.0.27"
2 changes: 2 additions & 0 deletions day23/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use std::collections::HashMap;
use std::collections::HashSet;
use std::fmt;

use sqrid::postrait::PosT;

pub const EXAMPLE: &str = "#.#####################
#.......#########...###
#######.#########.#.###
Expand Down
2 changes: 1 addition & 1 deletion day24/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
nom = "7.1.3"
z3 = "0.12.1"
1 change: 0 additions & 1 deletion day24/src/bin/day24b.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use day24::*;

use std::ops::Add;
use std::ops::Mul;
use z3;
use z3::ast::Ast;
use z3::{ast, Config, Context, Solver};

Expand Down
2 changes: 1 addition & 1 deletion day25/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
aoc = { path = "../aoc" }
color-eyre = "0.6.2"
color-eyre = "0.6.3"
copstr = "0.1.2"
nom = "7.1.3"

0 comments on commit 5990647

Please sign in to comment.