From 7da5fe97ccdac33f21cbcda715817f6a36425fda Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 4 Aug 2025 20:49:23 +0300 Subject: [PATCH 1/3] nix: point to nixos-unstable for the nixpkgs input Oops. Signed-off-by: NotAShelf Change-Id: I6a6a6964eab43b655668d65abe532ed710538670 --- flake.lock | 7 ++++--- flake.nix | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index d831dac..774c899 100644 --- a/flake.lock +++ b/flake.lock @@ -2,15 +2,16 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1743359643, - "narHash": "sha256-RkyJ9a67s0zEIz4O66TyZOIGh4TFZ4dKHKMgnxZCh2I=", + "lastModified": 1754214453, + "narHash": "sha256-Q/I2xJn/j1wpkGhWkQnm20nShYnG7TI99foDBpXm1SY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ca77b4bc80e558ce59f2712fdb276f90c0ee309a", + "rev": "5b09dc45f24cf32316283e62aec81ffee3c3e376", "type": "github" }, "original": { "owner": "NixOS", + "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index a481c30..ed36872 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ { description = "A microscopic fetch script in Rust, for NixOS systems"; - inputs.nixpkgs.url = "github:NixOS/nixpkgs"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable"; outputs = { self, From 14d8f9390d44cc8e76686a81b1f4afeb29c6cd33 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 4 Aug 2025 20:49:49 +0300 Subject: [PATCH 2/3] chore: bump criterion Signed-off-by: NotAShelf Change-Id: I6a6a6964e55c9925511d83d6be9b2ba001613983 --- Cargo.lock | 21 ++++++--------------- Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c6cfc69..3b5c132 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -113,16 +113,16 @@ checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" [[package]] name = "criterion" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bf7af66b0989381bd0be551bd7cc91912a655a58c6918420c9527b1fd8b4679" +checksum = "e1c047a62b0cc3e145fa84415a3191f628e980b194c2755aa12300a4e6cbd928" dependencies = [ "anes", "cast", "ciborium", "clap", "criterion-plot", - "itertools 0.13.0", + "itertools", "num-traits", "oorandom", "plotters", @@ -136,12 +136,12 @@ dependencies = [ [[package]] name = "criterion-plot" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1" +checksum = "9b1bcc0dc7dfae599d84ad0b1a55f80cde8af3725da8313b528da95ef783e338" dependencies = [ "cast", - "itertools 0.10.5", + "itertools", ] [[package]] @@ -191,15 +191,6 @@ dependencies = [ "crunchy", ] -[[package]] -name = "itertools" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" -dependencies = [ - "either", -] - [[package]] name = "itertools" version = "0.13.0" diff --git a/Cargo.toml b/Cargo.toml index f20ff00..f09c8b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ nix = { version = "0.30", features = ["fs", "hostname", "feature"] } libc = "0.2" [dev-dependencies] -criterion = "0.6" +criterion = "0.7" [[bench]] name = "benchmark" From 9d8905354efca612a1e9fe87845293a4460e0553 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 4 Aug 2025 21:03:48 +0300 Subject: [PATCH 3/3] expand comment strings 80 chars is good. Signed-off-by: NotAShelf Change-Id: I6a6a696460754266ff5810a73f98ce9e6eb0c35b --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 41a1818..5dd99c1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,10 +33,9 @@ fn main() -> Result<(), Box> { Ok(()) } -// Struct to hold all the fields we need to print -// helps avoid clippy warnings about argument count -// and makes it easier to pass around, though its -// not like we need to +// Struct to hold all the fields we need in order to print the fetch. This +// helps avoid Clippy warnings about argument count, and makes it slightly +// easier to pass data around. Though, it is not like we really need to. struct Fields { user_info: String, os_name: String,