       (goto-char 0)
       (let ((output (json-read)))
         (cdr (assoc-string "root" output))))))
+
+;;; Secondary Commands
 
 (defun rust-insert-dbg ()
   "Insert the dbg! macro."

  (interactive)
  (compile (format "%s test" rust-cargo-bin)))

(defun rust-before-save-hook ()
  (when rust-format-on-save
    (condition-case e

         (compile-command (mapconcat #'shell-quote-argument args " ")))
    (compile compile-command)))

;;; Utilities

(defun rust-update-buffer-project ()
  (setq-local rust-buffer-project (rust-buffer-project)))

