4f1062f0d9
Change-Id: I30b956cfbeb0b8f8553c8ee41c4979d4ec0c363b Reviewed-on: https://cl.tvl.fyi/c/depot/+/3488 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
29 lines
488 B
Nix
29 lines
488 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
{
|
|
home.packages = with pkgs; [
|
|
rustup
|
|
rust-analyzer
|
|
cargo-edit
|
|
cargo-expand
|
|
cargo-flamegraph
|
|
cargo-rr
|
|
cargo-udeps
|
|
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"
|
|
'';
|
|
}
|