2020-11-30 00:54:38 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2020-12-01 17:59:36 +01:00
|
|
|
|
2020-11-30 00:54:38 +01:00
|
|
|
{
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
rustup
|
|
|
|
rust-analyzer
|
2020-12-01 17:59:36 +01:00
|
|
|
cargo-edit
|
2020-12-14 18:52:04 +01:00
|
|
|
cargo-expand
|
2021-04-12 17:07:41 +02:00
|
|
|
cargo-flamegraph
|
2021-08-07 20:07:44 +02:00
|
|
|
cargo-rr
|
2021-09-02 17:52:03 +02:00
|
|
|
cargo-udeps
|
2021-09-23 15:46:33 +02:00
|
|
|
cargo-bloat
|
2020-12-14 18:52:04 +01:00
|
|
|
sccache
|
2021-04-16 16:49:32 +02:00
|
|
|
evcxr
|
2020-11-30 00:54:38 +01:00
|
|
|
];
|
2020-12-01 17:59:36 +01:00
|
|
|
|
|
|
|
programs.zsh.shellAliases = {
|
|
|
|
"cg" = "cargo";
|
|
|
|
"cb" = "cargo build";
|
|
|
|
"ct" = "cargo test";
|
2021-01-13 16:17:23 +01:00
|
|
|
"ctw" = "fd -e rs | entr cargo test";
|
2021-02-24 18:37:23 +01:00
|
|
|
"cch" = "cargo check";
|
2020-12-01 17:59:36 +01:00
|
|
|
};
|
2020-12-14 18:52:04 +01:00
|
|
|
|
|
|
|
home.file.".cargo/config".text = ''
|
|
|
|
[build]
|
|
|
|
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
|
|
|
|
'';
|
2020-11-30 00:54:38 +01:00
|
|
|
}
|