Build Rust extensions on demand in source checkouts (#34994)
This commit is contained in:
+3
-2
@@ -20,8 +20,9 @@ Two filters can narrow the discovered set:
|
||||
- SGLANG_BUILD_RUST_EXTS env var, applied at build time on top of the above:
|
||||
unset or "all" builds everything, "none" builds nothing, and a
|
||||
comma-separated list matches substrings, e.g. "grpc" matches
|
||||
"sglang.srt.grpc._core". It is read directly from os.environ instead of
|
||||
sglang.srt.environ, which is not importable until the package is built.
|
||||
"sglang.srt.rust_extensions._grpc". It is read directly from os.environ
|
||||
instead of sglang.srt.environ, which is not importable until the package is
|
||||
built.
|
||||
"""
|
||||
|
||||
import json
|
||||
|
||||
Reference in New Issue
Block a user