[bug] fix router installation to include additional dependency (#12348)
This commit is contained in:
@@ -7,6 +7,7 @@ edition = "2021"
|
||||
default = ["grpc-client"]
|
||||
grpc-client = []
|
||||
grpc-server = []
|
||||
vendored-openssl = ["openssl/vendored"]
|
||||
|
||||
[lints.rust]
|
||||
unused_qualifications = "warn"
|
||||
@@ -67,7 +68,7 @@ tiktoken-rs = { version = "0.7.0" }
|
||||
minijinja = { version = "2.0", features = ["unstable_machinery", "json", "builtins"] }
|
||||
minijinja-contrib = { version = "2.0", features = ["pycompat"] }
|
||||
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
|
||||
openssl = { version = "0.10.73", features = ["vendored"] }
|
||||
openssl = "0.10.73"
|
||||
hf-hub = { version = "0.4.3", features = ["tokio"] }
|
||||
rmcp = { version = "0.8.3", features = ["client", "server",
|
||||
"transport-child-process",
|
||||
|
||||
@@ -70,13 +70,21 @@ cargo build --release
|
||||
pip install maturin
|
||||
|
||||
# Fast development mode (debug build, no wheel, instant)
|
||||
# Uses system OpenSSL (requires libssl-dev/openssl-devel)
|
||||
maturin develop
|
||||
|
||||
# Production build (optimized, creates wheel)
|
||||
# Uses vendored OpenSSL (cross-platform compatibility)
|
||||
maturin build --release --features vendored-openssl
|
||||
pip install --force-reinstall dist/*.whl
|
||||
|
||||
# Development build with system OpenSSL (faster)
|
||||
# Requires: apt install libssl-dev pkg-config (Ubuntu/Debian)
|
||||
# or: yum install openssl-devel (RHEL/CentOS)
|
||||
maturin build --release
|
||||
pip install --force-reinstall dist/*.whl
|
||||
```
|
||||
> **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.
|
||||
> **Note:** Use `maturin develop` for fast iteration during development (builds in debug mode and installs directly). Use `maturin build --release --features vendored-openssl` for production wheels with full optimizations (opt-level="z", lto="fat") and cross-platform compatibility. The package uses abi3 support for Python 3.8+ compatibility.
|
||||
|
||||
## Quick Start
|
||||
|
||||
|
||||
Reference in New Issue
Block a user