Skip to content

Commit d25bfeb

Browse files
committed
Add hash-pipeline - hash-idle-blocked
1 parent 95c1cf6 commit d25bfeb

File tree

7 files changed

+2073
-0
lines changed

7 files changed

+2073
-0
lines changed
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

hash-pipeline/hash-idle-blocked/Cargo.lock

+150
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "hash-idle-blocked"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]
9+
blake3 = "1.5.0"
10+
rtrb = "0.2.3"
11+
sha2 = "0.10.8"

hash-pipeline/hash-idle-blocked/flake.lock

+96
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
description = "A Nix-flake-based Rust development environment";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
6+
rust-overlay.url = "github:oxalica/rust-overlay";
7+
};
8+
9+
outputs = { self, nixpkgs, rust-overlay }:
10+
let
11+
overlays = [
12+
rust-overlay.overlays.default
13+
(final: prev: {
14+
rustToolchain =
15+
let
16+
rust = prev.rust-bin;
17+
in
18+
if builtins.pathExists ./rust-toolchain.toml then
19+
rust.fromRustupToolchainFile ./rust-toolchain.toml
20+
else if builtins.pathExists ./rust-toolchain then
21+
rust.fromRustupToolchainFile ./rust-toolchain
22+
else
23+
rust.stable.latest.default;
24+
})
25+
];
26+
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
27+
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
28+
pkgs = import nixpkgs { inherit overlays system; };
29+
});
30+
in
31+
{
32+
devShells = forEachSupportedSystem ({ pkgs }: {
33+
default = pkgs.mkShell {
34+
packages = with pkgs; [
35+
rustToolchain
36+
openssl
37+
pkg-config
38+
cargo-deny
39+
cargo-edit
40+
cargo-watch
41+
rust-analyzer
42+
];
43+
};
44+
});
45+
};
46+
}

0 commit comments

Comments
 (0)