compiler cargo
setlocal makeprg=cargo\ build\ --all

nnoremap <buffer> <Leader>rD :RustDisableInlayHints<CR>
nnoremap <buffer> <Leader>rt :RustToggleInlayHints<CR>
nnoremap <buffer> <Leader>rr :RustRunnables<CR>
nnoremap <buffer> <Leader>rm :RustExpandMacro<CR>
nnoremap <buffer> <Leader>rc :RustOpenCargo<CR>
nnoremap <buffer> <Leader>rp :RustParentModule<CR>
nnoremap <buffer> <Leader>rj :RustJoinLines<CR>
nnoremap <buffer> <Leader>rh :RustHoverActions<CR>
nnoremap <buffer> <Leader>rd :RustMoveItemDown<CR>
nnoremap <buffer> <Leader>ru :RustMoveItemUp<CR>
nnoremap <buffer> <Leader>rs :RustStartStandaloneServerForBuffer<CR>
nnoremap <buffer> <Leader>rg :RustViewCrateGraph<CR>

nnoremap <buffer> cbb :Dispatch! cargo build<CR> 
nnoremap <buffer> cbc :Dispatch! cargo clean<CR> 
nnoremap <buffer> cbd :Dispatch! cargo doc<CR> 
nnoremap <buffer> cbD :Dispatch! cargo doc --open<CR> 
nnoremap <buffer> cbu :Dispatch! cargo update<CR> 
