> **Note:** Editable installs (`pip install -e .`) are currently not supported; prefer wheel builds for development.
> **Note:** Use `maturin develop` for fast iteration during development (builds in debug mode and installs directly). Use `maturin build --release` for production wheels with full optimizations (opt-level="z", lto="fat"). The package uses abi3 support for Python 3.8+ compatibility.
## Quick Start
## Quick Start
...
@@ -562,20 +564,19 @@ curl -X POST "http://localhost:8080/add_worker?url=http://worker3:8000&api_key=w
...
@@ -562,20 +564,19 @@ curl -X POST "http://localhost:8080/add_worker?url=http://worker3:8000&api_key=w
## Development & Testing
## Development & Testing
```bash
```bash
# Build Rust components
# Build Rust components (debug mode, fast)
cargo build
cargo build
# Run Rust tests
# Run Rust tests
cargo test
cargo test
# Build & install Python bindings
# Fast Python development (rebuilds and installs in debug mode)
python -m build
maturin develop
pip install--force-reinstall dist/*.whl
# Run Python tests
# Run Python tests
pytest
pytest
```
```
When modifying runtime behavior, rebuild the wheel or run the binary directly. Use `python -m sglang_router.launch_server` to co-launch router and SGLang workers in small clusters for local validation.
For production builds, use `maturin build --release` to create optimized wheels. During development, `maturin develop` rebuilds and installs instantly without creating wheel files. Use `python -m sglang_router.launch_server` to co-launch router and SGLang workers in small clusters for local validation.