Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1.16 KB

rust.org

File metadata and controls

51 lines (42 loc) · 1.16 KB

Rust

Rust

;;rust-mode

(use-package rust-mode
  :ensure t)

(use-package flycheck-rust
  :ensure t
  :config (add-hook 'flycheck-mode-hook #'flycheck-rust-setup))

(use-package cargo
  :ensure t
  :diminish cargo-minor-mode
  :hook (rust-mode . cargo-minor-mode))

(use-package rustic
  :ensure
  :bind (:map rustic-mode-map
              ("M-j" . lsp-ui-imenu)
              ("M-?" . lsp-find-references)
              ("C-c C-c l" . flycheck-list-errors)
              ("C-c C-c a" . lsp-execute-code-action)
              ("C-c C-c r" . lsp-rename)
              ("C-c C-c q" . lsp-workspace-restart)
              ("C-c C-c Q" . lsp-workspace-shutdown)
              ("C-c C-c s" . lsp-rust-analyzer-status))
  :config
;; comment to disable rustfmt on save
(setq rustic-format-on-save t))

;;(use-package racer
;;  :ensure t)

;;(add-hook 'rust-mode-hook 'racer-mode)

babel support

(use-package ob-rust
   :ensure t)

Provide this so that it may be required

(provide 'rust)