vllm.entrypoints.common.stale_rust_frontend
¶
Detect a packaged vllm-rs binary that lacks the checkout's rust/ sources.
Precompiled installs (VLLM_USE_PRECOMPILED=1 or
VLLM_USE_PRECOMPILED_RUST=1) take vllm-rs from the wheel of an upstream
main commit, so rust/ changes on a local branch are never built, and an
editable install keeps the old binary across git pull. The check warns only
on clear evidence and stays silent whenever the evidence is missing.
Functions:
-
find_unbuilt_rust_changes–Return the
rust/changes the packagedbinary_pathwas not built with. -
warn_if_rust_frontend_stale–Warn when the packaged
vllm-rswas built without this checkout's
find_unbuilt_rust_changes(binary_path, package_dir)
¶
Return the rust/ changes the packaged binary_path was not built with.
Returns None unless package_dir is the vllm/ directory of a git
checkout, binary_path is the vllm-rs packaged next to it (possibly a
symlink), and the binary reports a clean commit that the checkout has.
warn_if_rust_frontend_stale(binary_path)
¶
Warn when the packaged vllm-rs was built without this checkout's
rust/ changes.