Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
9e169ea8
Unverified
Commit
9e169ea8
authored
Aug 25, 2025
by
Bruce-x-1997
Committed by
GitHub
Aug 24, 2025
Browse files
[router] add right rustls dependency in sgl-router cargo.toml (#9498)
Co-authored-by:
bruce.xu
<
bruce.xu@gmicloud.ai
>
parent
e0ab167d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
sgl-router/Cargo.toml
sgl-router/Cargo.toml
+1
-0
sgl-router/src/service_discovery.rs
sgl-router/src/service_discovery.rs
+3
-0
No files found.
sgl-router/Cargo.toml
View file @
9e169ea8
...
@@ -55,6 +55,7 @@ anyhow = "1.0"
...
@@ -55,6 +55,7 @@ anyhow = "1.0"
tokenizers
=
{
version
=
"0.21.4"
,
optional
=
true
}
tokenizers
=
{
version
=
"0.21.4"
,
optional
=
true
}
tiktoken-rs
=
{
version
=
"0.7.0"
,
optional
=
true
}
tiktoken-rs
=
{
version
=
"0.7.0"
,
optional
=
true
}
minijinja
=
{
version
=
"2.0"
,
optional
=
true
}
minijinja
=
{
version
=
"2.0"
,
optional
=
true
}
rustls
=
{
version
=
"0.23"
,
default-features
=
false
,
features
=
[
"ring"
,
"std"
]
}
# gRPC and Protobuf dependencies
# gRPC and Protobuf dependencies
tonic
=
{
version
=
"0.12"
,
features
=
[
"tls"
,
"gzip"
,
"transport"
]
}
tonic
=
{
version
=
"0.12"
,
features
=
[
"tls"
,
"gzip"
,
"transport"
]
}
...
...
sgl-router/src/service_discovery.rs
View file @
9e169ea8
...
@@ -10,6 +10,7 @@ use kube::{
...
@@ -10,6 +10,7 @@ use kube::{
};
};
use
std
::
collections
::{
HashMap
,
HashSet
};
use
std
::
collections
::{
HashMap
,
HashSet
};
use
rustls
;
use
std
::
sync
::{
Arc
,
Mutex
};
use
std
::
sync
::{
Arc
,
Mutex
};
use
std
::
time
::
Duration
;
use
std
::
time
::
Duration
;
use
tokio
::
task
;
use
tokio
::
task
;
...
@@ -187,6 +188,8 @@ pub async fn start_service_discovery(
...
@@ -187,6 +188,8 @@ pub async fn start_service_discovery(
}));
}));
}
}
let
_
=
rustls
::
crypto
::
ring
::
default_provider
()
.install_default
();
// Initialize Kubernetes client
// Initialize Kubernetes client
let
client
=
Client
::
try_default
()
.await
?
;
let
client
=
Client
::
try_default
()
.await
?
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment