[Radix Cache] Add Rust TreeCore backend with shared parity tests (#32710)

Co-authored-by: alphabetc1 <2508695655@qq.com>
Co-authored-by: ispobock <ispobaoke@gmail.com>
This commit is contained in:
Jialin Ouyang
2026-09-01 00:26:20 +08:00
committed by GitHub
co-authored by alphabetc1 ispobock
parent 52e1c24744
commit 9cf157c252
72 changed files with 39973 additions and 396 deletions
+11 -3
View File
@@ -1,5 +1,11 @@
[build-system]
requires = ["setuptools>=61.0", "setuptools-rust>=1.10", "setuptools-scm>=8.0", "wheel"]
requires = [
"setuptools>=61.0",
"setuptools-rust>=1.11",
"setuptools-scm>=8.0",
"torch==2.13.0",
"wheel",
]
build-backend = "setuptools.build_meta"
[project]
@@ -214,6 +220,7 @@ killall_sglang = "sglang.cli.killall:main"
"sglang" = [
"kernels/aot/*",
"kernels/aot/**/*",
"srt/mem_cache/rust_tree_core/mem_cache_inspection*.so",
]
[tool.setuptools.packages.find]
@@ -247,8 +254,9 @@ git_describe_command = ["python3", "scripts/release/get_version_tag.py"]
# Allow editable installs even when .git metadata is not available.
fallback_version = "0.0.0.dev0"
# Rust extension modules are auto-discovered by setup.py from the cargo
# workspace in ../rust ([package.metadata.sglang] python-module in each crate).
# Rust extension modules are auto-discovered by setup.py from the Cargo
# workspace in ../rust and its declared extension manifests
# ([package.metadata.sglang] python-module in each crate).
# This CUDA pyproject builds all of them; platform variants restrict the set
# via [tool.sglang] rust-extensions (see pyproject_other.toml).