Add Rust Router Python Binding (#1891)

Signed-off-by: Austin Liu <austin362667@gmail.com>
Co-authored-by: ByronHsu <byronhsu1230@gmail.com>
This commit is contained in:
Austin Liu
2024-11-07 10:08:30 +08:00
committed by GitHub
parent a5e0defb5a
commit 4b1d7a2583
3 changed files with 61 additions and 29 deletions

15
rust/pyproject.toml Normal file
View File

@@ -0,0 +1,15 @@
[build-system]
requires = ["maturin>=1.5.1,<2.0"]
build-backend = "maturin"
[project]
name = "sglang_router"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
]
dynamic = ["version"]
[tool.maturin]
bindings = 'pyo3'