diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-04 06:17:55 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-04 06:17:55 +0000 |
| commit | 001ca45e385c05b0eaa36d9879e051853aaff107 (patch) | |
| tree | 603fb85d2563db5b7c418e9fd143d479bd09676e /grasp-audit/shell.nix | |
| parent | d428baf30feec295870fadda2d335d1e7f89507b (diff) | |
created POC grasp-auditor
Diffstat (limited to 'grasp-audit/shell.nix')
| -rw-r--r-- | grasp-audit/shell.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/grasp-audit/shell.nix b/grasp-audit/shell.nix new file mode 100644 index 0000000..54bb3b8 --- /dev/null +++ b/grasp-audit/shell.nix | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | { pkgs ? import <nixpkgs> {} }: | ||
| 2 | |||
| 3 | pkgs.mkShell { | ||
| 4 | buildInputs = with pkgs; [ | ||
| 5 | # Rust toolchain | ||
| 6 | rustc | ||
| 7 | cargo | ||
| 8 | rustfmt | ||
| 9 | clippy | ||
| 10 | |||
| 11 | # Build dependencies | ||
| 12 | gcc | ||
| 13 | pkg-config | ||
| 14 | |||
| 15 | # Libraries | ||
| 16 | openssl | ||
| 17 | |||
| 18 | # Development tools | ||
| 19 | git | ||
| 20 | ]; | ||
| 21 | |||
| 22 | # Environment variables | ||
| 23 | RUST_BACKTRACE = "1"; | ||
| 24 | RUST_LOG = "info"; | ||
| 25 | |||
| 26 | shellHook = '' | ||
| 27 | echo "🦀 Rust development environment loaded" | ||
| 28 | echo "" | ||
| 29 | echo "Available commands:" | ||
| 30 | echo " cargo build - Build the project" | ||
| 31 | echo " cargo test - Run unit tests" | ||
| 32 | echo " cargo test --ignored - Run integration tests (needs relay)" | ||
| 33 | echo " cargo run --example simple_audit - Run example" | ||
| 34 | echo "" | ||
| 35 | echo "Rust version: $(rustc --version)" | ||
| 36 | echo "Cargo version: $(cargo --version)" | ||
| 37 | ''; | ||
| 38 | } | ||