2020-11-30 00:54:38 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2022-06-14 16:15:11 +02:00
|
|
|
let
|
|
|
|
inherit (config.lib) depot;
|
|
|
|
in
|
2023-10-23 20:51:21 +02:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2020-11-30 00:54:38 +01:00
|
|
|
{
|
2022-06-14 16:15:11 +02:00
|
|
|
|
2020-11-30 00:54:38 +01:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
rustup
|
2020-12-01 17:59:36 +01:00
|
|
|
cargo-edit
|
2020-12-14 18:52:04 +01:00
|
|
|
cargo-expand
|
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
|
2022-06-14 16:15:11 +02:00
|
|
|
|
2024-02-12 04:00:40 +01:00
|
|
|
depot.users.aspen.pkgs.cargo-hakari
|
|
|
|
depot.users.aspen.pkgs.cargo-nextest
|
2022-06-14 16:15:11 +02:00
|
|
|
|
|
|
|
# benchmarking+profiling
|
|
|
|
cargo-criterion
|
|
|
|
cargo-flamegraph
|
|
|
|
coz
|
2023-02-27 16:14:00 +01:00
|
|
|
inferno
|
|
|
|
hotspot
|
2023-10-23 20:51:21 +02:00
|
|
|
] ++ optionals (stdenv.isLinux) [
|
|
|
|
cargo-rr
|
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"
|
2022-01-04 18:52:42 +01:00
|
|
|
|
|
|
|
[target.x86_64-unknown-linux-gnu]
|
|
|
|
linker = "clang"
|
|
|
|
rustflags = ["-C", "link-arg=-fuse-ld=${pkgs.mold}/bin/mold"]
|
2020-12-14 18:52:04 +01:00
|
|
|
'';
|
2020-11-30 00:54:38 +01:00
|
|
|
}
|