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
|
|
|
|
sccache
|
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
|
|
|
}
|