The Complete Computing Environment

Rust

LifeTechEmacsTopicsArcology

Rust is a Programming Language Tool

CCE configuration largely lifted from Robert Krahn.

(use-package rustic
  :config
  ;; uncomment for less flashiness
  ;; (setq lsp-eldoc-hook nil)
  ;; (setq lsp-enable-symbol-highlighting nil)
  ;; (setq lsp-signature-auto-activate nil)

  (setq rustic-format-on-save t))
(provide 'cce/rust)

This Nix shell can be symlinked in to rust projects to have a working rust-analyzer and whatnot, assuming I don't need one for rustup, too, eventually. I hope not. Maybe one for unstable? bah. direnv is used for managing this, if that isn't working check the .envrc.

let
  pkgs = import <nixpkgs> {};
in pkgs.mkShell {
  buildInputs = with pkgs; [ cargo rustc rust-analyzer rustfmt clippy ];
  nativeBuildInputs = with pkgs; [ rustc cargo gcc ];

  RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
}