Remove doom-bootstrap system (will be replaced)
This commit is contained in:
parent
39c3d6aae4
commit
ce49f94bbe
9 changed files with 16 additions and 174 deletions
|
@ -1,6 +1,8 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; lang/rust/packages.el
|
||||
|
||||
;; requires rust cargo racer
|
||||
|
||||
(package! racer)
|
||||
(package! rust-mode)
|
||||
|
||||
|
@ -9,30 +11,3 @@
|
|||
|
||||
(when (featurep! :completion company)
|
||||
(package! company-racer))
|
||||
|
||||
;;
|
||||
(def-bootstrap! rust
|
||||
(pcase (doom-system-os)
|
||||
('arch
|
||||
(let (pkgs)
|
||||
(unless (executable-find "rustc") (push "rust" pkgs))
|
||||
(unless (executable-find "cargo") (push "cargo" pkgs))
|
||||
(when pkgs
|
||||
(sudo "pacman --noconfirm -S %s" (s-join " " pkgs)))))
|
||||
('debian) ;; TODO
|
||||
('macos
|
||||
(unless (executable-find "rustc")
|
||||
(sh "brew install rust"))))
|
||||
(dolist (bin '("rustc" "cargo"))
|
||||
(unless (executable-find bin)
|
||||
(error "Failed to install %s" bin)))
|
||||
|
||||
(require! :lang rust t)
|
||||
(require 'racer)
|
||||
(unless (file-directory-p racer-rust-src-path)
|
||||
(fetch :github "rust-lang/rust" (expand-file-name "rust" +rust-ext-dir)))
|
||||
(unless (file-executable-p racer-cmd)
|
||||
(let ((racer-dir (expand-file-name "racer" +rust-ext-dir)))
|
||||
(fetch :github "phildawes/racer" racer-dir)
|
||||
(let ((default-directory racer-dir))
|
||||
(sh "cargo build --release")))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue