(setq rust-format-on-save t) (add-hook 'rust-mode-hook 'cargo-minor-mode t) (provide 'setup-rust-mode) ;;; setup-rust-mode.el ends here