Skip to content

Commit 9333f9c

Browse files
authored
♻️refactor(rust): has deprecated --all in favor of --workspace
Which does exactly the same.
1 parent 8789dd8 commit 9333f9c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lua/compiler/languages/rust.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ M.options = {
1313
{ text = "Cargo build", value = "option6" },
1414
{ text = "Cargo run", value = "option7" },
1515
{ text = "", value = "separator" },
16-
{ text = "Cargo build --all and run", value = "option8" },
17-
{ text = "Cargo build --all", value = "option9" }
16+
{ text = "Cargo build --workspace and run", value = "option8" },
17+
{ text = "Cargo build --workspace", value = "option9" }
1818
}
1919

2020
-- Backend - overseer tasks performed on option selected
@@ -173,8 +173,8 @@ function M.action(selected_option)
173173
local task = overseer.new_task({
174174
name = "- Rust compiler",
175175
strategy = { "orchestrator",
176-
tasks = {{ "shell", name = "- Cargo build --all & run → " .. "Cargo.toml",
177-
cmd = "cargo build --all " .. -- compile
176+
tasks = {{ "shell", name = "- Cargo build --workspace & run → " .. "Cargo.toml",
177+
cmd = "cargo build --workspace " .. -- compile
178178
" && cargo run" ..
179179
" && echo '" .. final_message .. "'" -- echo
180180
},},},})
@@ -184,8 +184,8 @@ function M.action(selected_option)
184184
local task = overseer.new_task({
185185
name = "- Rust compiler",
186186
strategy = { "orchestrator",
187-
tasks = {{ "shell", name = "- Cargo build --all" .. "Cargo.toml",
188-
cmd = "cargo build --all" .. -- compile
187+
tasks = {{ "shell", name = "- Cargo build --workspace" .. "Cargo.toml",
188+
cmd = "cargo build --workspace" .. -- compile
189189
" && echo '" .. final_message .. "'" -- echo
190190
},},},})
191191
task:start()

0 commit comments

Comments
 (0)