Compare commits
9 Commits
ebdd1fd71e
...
6800be7db9
Author | SHA1 | Date | |
---|---|---|---|
6800be7db9 | |||
700d1c12ed | |||
4ce386975c | |||
065b0c5847 | |||
195d772beb | |||
a4e252ac91 | |||
23db713cb7 | |||
2b250dd4df | |||
2d60d56a30 |
1053
Cargo.lock
generated
1053
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -11,32 +11,32 @@ tracing-subscriber.workspace = true
|
|||||||
clap.workspace = true
|
clap.workspace = true
|
||||||
dotenv.workspace = true
|
dotenv.workspace = true
|
||||||
axum.workspace = true
|
axum.workspace = true
|
||||||
prost = "0.13.0"
|
prost = "0.13.2"
|
||||||
tonic = { version = "0.12.0", features = ["tls", "tls-roots"] }
|
tonic = { version = "0.12.2", features = ["tls", "tls-native-roots"] }
|
||||||
uuid = { version = "1.7.0", features = ["v7", "v4"] }
|
uuid = { version = "1.7.0", features = ["v7", "v4"] }
|
||||||
async-trait = "0.1.77"
|
async-trait = "0.1.77"
|
||||||
aws-config = { version = "1.1.5", features = ["behavior-version-latest"] }
|
aws-config = { version = "1.5.5", features = ["behavior-version-latest"] }
|
||||||
aws-sdk-s3 = { version = "1.15.0", features = ["behavior-version-latest"] }
|
aws-sdk-s3 = { version = "1.48.0", features = ["behavior-version-latest"] }
|
||||||
serde = { version = "1.0.196", features = ["derive"] }
|
serde = { version = "1.0.196", features = ["derive"] }
|
||||||
serde_json = "1.0.113"
|
serde_json = "1.0.113"
|
||||||
nats = "0.24.1"
|
nats = "0.25.0"
|
||||||
walkdir = "2.4.0"
|
walkdir = "2.4.0"
|
||||||
tar = "0.4.40"
|
tar = "0.4.40"
|
||||||
tokio-stream = { version = "0.1.15", features = ["full"] }
|
tokio-stream = { version = "0.1.15", features = ["full"] }
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
sqlx = { version = "0.7.3", features = [
|
sqlx = { version = "0.8.0", features = [
|
||||||
"postgres",
|
"postgres",
|
||||||
"runtime-tokio",
|
"runtime-tokio",
|
||||||
"uuid",
|
"uuid",
|
||||||
"chrono",
|
"chrono",
|
||||||
] }
|
] }
|
||||||
chrono = "0.4.34"
|
chrono = "0.4.34"
|
||||||
git2 = "0.18.3"
|
git2 = "0.19.0"
|
||||||
rustls = "0.23.8"
|
rustls = { version = "0.23.12" }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
tonic-build = "0.12.0"
|
tonic-build = "0.12.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
reqwest = "0.11.24"
|
reqwest = "0.12.0"
|
||||||
|
@ -10,8 +10,17 @@ pub type FluxReleaserGrpcClient = Arc<Mutex<FluxReleaserClient<Channel>>>;
|
|||||||
pub async fn new_client(registry: impl Into<String>) -> anyhow::Result<FluxReleaserGrpcClient> {
|
pub async fn new_client(registry: impl Into<String>) -> anyhow::Result<FluxReleaserGrpcClient> {
|
||||||
let registry: String = registry.into();
|
let registry: String = registry.into();
|
||||||
|
|
||||||
|
// Workaround: https://github.com/algesten/ureq/issues/765#issuecomment-2282921492
|
||||||
|
static INIT: std::sync::Once = std::sync::Once::new();
|
||||||
|
|
||||||
|
INIT.call_once(|| {
|
||||||
|
rustls::crypto::aws_lc_rs::default_provider()
|
||||||
|
.install_default()
|
||||||
|
.unwrap();
|
||||||
|
});
|
||||||
|
|
||||||
let channel = if registry.starts_with("https") {
|
let channel = if registry.starts_with("https") {
|
||||||
let tls = ClientTlsConfig::new();
|
let tls = ClientTlsConfig::new().with_native_roots();
|
||||||
|
|
||||||
Channel::from_shared(registry)?
|
Channel::from_shared(registry)?
|
||||||
.tls_config(tls)?
|
.tls_config(tls)?
|
||||||
|
Loading…
Reference in New Issue
Block a user