[Rust] Rename mem-cache to sglang-radix-tree (#37290)

This commit is contained in:
Jialin Ouyang
2026-09-01 03:03:44 -07:00
committed by GitHub
parent c16a8fc899
commit a77283fb02
30 changed files with 38 additions and 38 deletions
+2 -2
View File
@@ -148,8 +148,8 @@ def _discovered_rust_extensions():
cargo_manifest_args=["--locked"],
)
# Preserve Cargo metadata until the selected extension is actually
# built. Alternate platform pyprojects filter mem-cache out before
# this point and therefore do not need torch as a build dependency.
# built. Alternate platform pyprojects filter the Rust TreeCore extension
# out before this point and therefore do not need torch as a build dependency.
extension._sglang_metadata = sglang_meta
extension._sglang_manifest_path = package["manifest_path"]
extensions.append(extension)
@@ -10,7 +10,7 @@ from sglang.srt.rust_extensions.torch_build import torch_build_configuration
_PYTHON_MODULE = "sglang.srt.mem_cache.rust_tree_core.mem_cache"
_INSPECTION_MODULE = "sglang.srt.mem_cache.rust_tree_core.mem_cache_inspection"
_CRATE_DIR = Path(__file__).resolve().parents[5] / "rust" / "mem-cache"
_CRATE_DIR = Path(__file__).resolve().parents[5] / "rust" / "sglang-radix-tree"
_TORCH_COMPAT_HEADER = _CRATE_DIR / "torch_2_13_compat.h"