Expand description
Format, lint, build, and deploy workspace binaries and Nvim libs.
Β§Arguments
--debugUse debug profile; skip clippy; copy fromtarget/debug.bins_pathDestination for binaries (default:$HOME/.local/bin).cargo_target_pathCargo target root (default: workspacetarget/).nvim_libs_pathDestination for Neovim libs (default:$HOME/.config/nvim/lua).
Β§Usage
evoke # fmt + clippy + build --release, copy bins & libs
evoke --debug # fmt + build debug (skip clippy) copy from target/debug
evoke --debug "$HOME/.local/bin" "$PWD/target" "$HOME/.config/nvim/lua"Β§Errors
- Resolving required environment variables fails or yields invalid Unicode.
- Running
cargo fmt,cargo clippy, orcargo buildfails. - Copying a binary or library fails.
ConstantsΒ§
- BINS π
- List of binaries that should be copied after building. NOTE: if a new binary is added this list must be updated!
- BINS_
DEFAULT_ πPATH - Path segments for the default binaries install dir.
- LIBS π
- List of library files that need to be renamed after building, mapping (
source_name,target_name). - NVIM_
LIBS_ πDEFAULT_ PATH - Path segments for the Nvim libs install dir.
FunctionsΒ§
- cp π
- Copies a built binary or library from
fromtotousing [ytil_sys::file::atomic_cp] and prints an βInstalledβ status line. - drop_
element π - Removes the first occurrence of an element from a vector.
Returns
trueif found and removed,falseotherwise. - main π
- Format, lint, build, and deploy workspace binaries and Nvim libs.
- remove_
last_ πn_ dirs - Removes the last
ndirectories from aPathBuf.