tvl-depot/users/grfn/system/home/modules/development/rust.nix
Griffin Smith b330578b89 feat(gs/home): Install cargo-bloat
Change-Id: I525aa3ddcacb583e6d3a3ba1529d718b43379273
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3643
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
2021-09-27 14:55:12 +00:00

30 lines
504 B
Nix

{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
rustup
rust-analyzer
cargo-edit
cargo-expand
cargo-flamegraph
cargo-rr
cargo-udeps
cargo-bloat
sccache
evcxr
];
programs.zsh.shellAliases = {
"cg" = "cargo";
"cb" = "cargo build";
"ct" = "cargo test";
"ctw" = "fd -e rs | entr cargo test";
"cch" = "cargo check";
};
home.file.".cargo/config".text = ''
[build]
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
'';
}