diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..7af97f1 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.x86_64-unknown-linux-gnu] +rustflags = ["-C", "link-arg=-fuse-ld=mold"] diff --git a/flake.nix b/flake.nix index 72bee03..aaa4f92 100644 --- a/flake.nix +++ b/flake.nix @@ -52,6 +52,7 @@ nativeBuildInputs = with pkgs; [ pkg-config + mold ]; buildInputs = with pkgs; [ openssl