mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-01-18 07:01:13 -08:00
Ensures that these two packages work together seamlessly and can't be wedged apart by clumsy user or package config. Also fixes the load order issues that cause 'inconsistent hierarchy' errors for rust-mode, rust-ts-mode, and rustic-mode. Fix: #8618
17 lines
440 B
EmacsLisp
17 lines
440 B
EmacsLisp
;;; lang/rust/autoload/rust.el -*- lexical-binding: t; -*-
|
|
|
|
;;;###autoload
|
|
(defun +rust-cargo-project-p ()
|
|
"Return t if this is a cargo project."
|
|
(locate-dominating-file buffer-file-name "Cargo.toml"))
|
|
|
|
|
|
;;
|
|
;;; Custom Cargo commands
|
|
|
|
(autoload 'rustic-run-cargo-command "rustic-cargo")
|
|
;;;###autoload
|
|
(defun +rust/cargo-audit ()
|
|
"Run 'cargo audit' for the current project."
|
|
(interactive)
|
|
(rustic-run-cargo-command "cargo audit"))
|