mirror of
				https://github.com/NotAShelf/microfetch.git
				synced 2025-11-04 07:32:20 +00:00 
			
		
		
		
	Compare commits
	
		
			No commits in common. "9d8905354efca612a1e9fe87845293a4460e0553" and "bc03fd73a0010c46f379e5d3b510b415bc4273b4" have entirely different histories.
		
	
	
		
			
				9d8905354e
			
			...
			
				bc03fd73a0
			
		
	
		
					 5 changed files with 24 additions and 15 deletions
				
			
		
							
								
								
									
										21
									
								
								Cargo.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										21
									
								
								Cargo.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
					@ -113,16 +113,16 @@ checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[package]]
 | 
					[[package]]
 | 
				
			||||||
name = "criterion"
 | 
					name = "criterion"
 | 
				
			||||||
version = "0.7.0"
 | 
					version = "0.6.0"
 | 
				
			||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
 | 
					source = "registry+https://github.com/rust-lang/crates.io-index"
 | 
				
			||||||
checksum = "e1c047a62b0cc3e145fa84415a3191f628e980b194c2755aa12300a4e6cbd928"
 | 
					checksum = "3bf7af66b0989381bd0be551bd7cc91912a655a58c6918420c9527b1fd8b4679"
 | 
				
			||||||
dependencies = [
 | 
					dependencies = [
 | 
				
			||||||
 "anes",
 | 
					 "anes",
 | 
				
			||||||
 "cast",
 | 
					 "cast",
 | 
				
			||||||
 "ciborium",
 | 
					 "ciborium",
 | 
				
			||||||
 "clap",
 | 
					 "clap",
 | 
				
			||||||
 "criterion-plot",
 | 
					 "criterion-plot",
 | 
				
			||||||
 "itertools",
 | 
					 "itertools 0.13.0",
 | 
				
			||||||
 "num-traits",
 | 
					 "num-traits",
 | 
				
			||||||
 "oorandom",
 | 
					 "oorandom",
 | 
				
			||||||
 "plotters",
 | 
					 "plotters",
 | 
				
			||||||
| 
						 | 
					@ -136,12 +136,12 @@ dependencies = [
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[package]]
 | 
					[[package]]
 | 
				
			||||||
name = "criterion-plot"
 | 
					name = "criterion-plot"
 | 
				
			||||||
version = "0.6.0"
 | 
					version = "0.5.0"
 | 
				
			||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
 | 
					source = "registry+https://github.com/rust-lang/crates.io-index"
 | 
				
			||||||
checksum = "9b1bcc0dc7dfae599d84ad0b1a55f80cde8af3725da8313b528da95ef783e338"
 | 
					checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1"
 | 
				
			||||||
dependencies = [
 | 
					dependencies = [
 | 
				
			||||||
 "cast",
 | 
					 "cast",
 | 
				
			||||||
 "itertools",
 | 
					 "itertools 0.10.5",
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[package]]
 | 
					[[package]]
 | 
				
			||||||
| 
						 | 
					@ -191,6 +191,15 @@ dependencies = [
 | 
				
			||||||
 "crunchy",
 | 
					 "crunchy",
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[[package]]
 | 
				
			||||||
 | 
					name = "itertools"
 | 
				
			||||||
 | 
					version = "0.10.5"
 | 
				
			||||||
 | 
					source = "registry+https://github.com/rust-lang/crates.io-index"
 | 
				
			||||||
 | 
					checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
 | 
				
			||||||
 | 
					dependencies = [
 | 
				
			||||||
 | 
					 "either",
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[package]]
 | 
					[[package]]
 | 
				
			||||||
name = "itertools"
 | 
					name = "itertools"
 | 
				
			||||||
version = "0.13.0"
 | 
					version = "0.13.0"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,7 +16,7 @@ nix = { version = "0.30", features = ["fs", "hostname", "feature"] }
 | 
				
			||||||
libc = "0.2"
 | 
					libc = "0.2"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[dev-dependencies]
 | 
					[dev-dependencies]
 | 
				
			||||||
criterion = "0.7"
 | 
					criterion = "0.6"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[bench]]
 | 
					[[bench]]
 | 
				
			||||||
name = "benchmark"
 | 
					name = "benchmark"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										7
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										7
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
					@ -2,16 +2,15 @@
 | 
				
			||||||
  "nodes": {
 | 
					  "nodes": {
 | 
				
			||||||
    "nixpkgs": {
 | 
					    "nixpkgs": {
 | 
				
			||||||
      "locked": {
 | 
					      "locked": {
 | 
				
			||||||
        "lastModified": 1754214453,
 | 
					        "lastModified": 1743359643,
 | 
				
			||||||
        "narHash": "sha256-Q/I2xJn/j1wpkGhWkQnm20nShYnG7TI99foDBpXm1SY=",
 | 
					        "narHash": "sha256-RkyJ9a67s0zEIz4O66TyZOIGh4TFZ4dKHKMgnxZCh2I=",
 | 
				
			||||||
        "owner": "NixOS",
 | 
					        "owner": "NixOS",
 | 
				
			||||||
        "repo": "nixpkgs",
 | 
					        "repo": "nixpkgs",
 | 
				
			||||||
        "rev": "5b09dc45f24cf32316283e62aec81ffee3c3e376",
 | 
					        "rev": "ca77b4bc80e558ce59f2712fdb276f90c0ee309a",
 | 
				
			||||||
        "type": "github"
 | 
					        "type": "github"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "original": {
 | 
					      "original": {
 | 
				
			||||||
        "owner": "NixOS",
 | 
					        "owner": "NixOS",
 | 
				
			||||||
        "ref": "nixos-unstable",
 | 
					 | 
				
			||||||
        "repo": "nixpkgs",
 | 
					        "repo": "nixpkgs",
 | 
				
			||||||
        "type": "github"
 | 
					        "type": "github"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  description = "A microscopic fetch script in Rust, for NixOS systems";
 | 
					  description = "A microscopic fetch script in Rust, for NixOS systems";
 | 
				
			||||||
  inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
 | 
					  inputs.nixpkgs.url = "github:NixOS/nixpkgs";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  outputs = {
 | 
					  outputs = {
 | 
				
			||||||
    self,
 | 
					    self,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -33,9 +33,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
 | 
				
			||||||
    Ok(())
 | 
					    Ok(())
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Struct to hold all the fields we need in order to print the fetch. This
 | 
					// Struct to hold all the fields we need to print
 | 
				
			||||||
// helps avoid Clippy warnings about argument count, and makes it slightly
 | 
					// helps avoid clippy warnings about argument count
 | 
				
			||||||
// easier to pass data around. Though, it is not like we really need to.
 | 
					// and makes it easier to pass around, though its
 | 
				
			||||||
 | 
					// not like we need to
 | 
				
			||||||
struct Fields {
 | 
					struct Fields {
 | 
				
			||||||
    user_info: String,
 | 
					    user_info: String,
 | 
				
			||||||
    os_name: String,
 | 
					    os_name: String,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue