Skip to content

Commit

Permalink
Merge pull request kwrooijen#85 from jo-so/master
Browse files Browse the repository at this point in the history
init: pass --lib to cargo process
  • Loading branch information
kwrooijen authored Jun 14, 2019
2 parents 1f3bc0d + 22131c7 commit 1a45c67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cargo-process.el
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,9 @@ If BIN is t then create a binary application, otherwise a library.
Cargo: Create a new cargo project in current directory."
(interactive
(list (read-directory-name "Directory: " nil default-directory t)))
(let ((bin (when (or bin (y-or-n-p "Create Bin Project? ")) " --bin")))
(let ((bin (if (or bin (y-or-n-p "Create Bin Project? "))
" --bin"
" --lib")))
(cargo-process--start "Init" (concat cargo-process--command-init
" "
directory
Expand Down

0 comments on commit 1a45c67

Please sign in to comment.