From 5143e30fbe4d10632611c9db55ba52ec2e08afe6 Mon Sep 17 00:00:00 2001 From: oxalica Date: Sun, 22 Sep 2024 04:53:51 -0400 Subject: [PATCH] build(nix): add cargo-llvm-cov --- .gitignore | 7 +++++-- flake.nix | 5 ++++- rust-toolchain.toml | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 928f5aa..b0e641b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,12 @@ +# Build and test artifacts. /target *.sqlite* *.key +*.profraw +result +result-* +# Test configurations. config.toml /test-frontend/default.json /test-frontend/.well-known -result -result-* diff --git a/flake.nix b/flake.nix index 2f9dcf3..4f93d5a 100644 --- a/flake.nix +++ b/flake.nix @@ -97,7 +97,10 @@ rec { { default = pkgs.mkShell { inputsFrom = [ self.packages.${system}.default ]; - nativeBuildInputs = [ pkgs.buildPackages.sqlite-interactive ]; + nativeBuildInputs = [ + pkgs.buildPackages.sqlite-interactive + pkgs.cargo-llvm-cov + ]; env.RUST_LOG = "blahd=debug,blahctl=debug"; }; diff --git a/rust-toolchain.toml b/rust-toolchain.toml index d116724..0cd810a 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -5,3 +5,4 @@ [toolchain] channel = "beta-2024-09-10" # 1.82.0-beta.3 profile = "default" +components = ["llvm-tools"]