773f23e163
It's a REPL! for Rust! Change-Id: I920f976790bd974bb3a41e56b94b9e11bbb8e59b Reviewed-on: https://cl.tvl.fyi/c/depot/+/3021 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
27 lines
459 B
Nix
27 lines
459 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
{
|
|
home.packages = with pkgs; [
|
|
rustup
|
|
rust-analyzer
|
|
cargo-edit
|
|
cargo-expand
|
|
cargo-flamegraph
|
|
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"
|
|
'';
|
|
}
|