funcvec
funcvec finds likely duplicate Rust functions. It discovers functions through
rust-analyzer/LSP symbols, builds function vectors, and reports candidates that
look similar enough to review and potentially merge.
Install
For local development from this repository:
The install includes both funcvec and cargo-funcvec, so it can be run directly or as
a Cargo subcommand.
Usage
From inside a Rust project:
Useful variants:
The default provider is native Nomic embeddings. It downloads model files once into a local cache and then runs without Ollama or another daemon.
Set FUNCVEC_MODEL_CACHE_DIR to control the native model cache location.