chore: strip unused rustls configurations to drastically speed up compilation

This commit is contained in:
Riz Ashraf committed 2026-09-22 05:40:11 +01:00
1 parent 0db94da646
commit 961a5a9e1b
7 files changed
+8 -467

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ edition = "2024"
[dependencies]
#rustls-tls = "0.2"
clap = { version = "4.6.6", features = ["derive"] }
reqwest = { version = "0.13", default-features = false, features = ["stream", "rustls"] }
reqwest = { version = "0.13", default-features = false, features = ["stream"] }
tokio = { version = "1.53.1", features = ["full"] }
tokio-util = { version = "0.7.19", features = ["io"] }
futures-util = "0.3.34"
+2 -4
View File
@@ -7,15 +7,13 @@ use std::time::Duration;
async fn main() -> Result<(), Box<dyn std::error::Error>> {
tracing_subscriber::fmt::init();
let target = env::var("MCP_TARGET").unwrap_or_else(|_| "https://127.0.0.1:3000".to_string());
let target = env::var("MCP_TARGET").unwrap_or_else(|_| "http://127.0.0.1:3000".to_string());
let token = env::var("MCP_AUTH_TOKEN")
.unwrap_or_else(|_| "jP76lUJ5DtFRZmcvXH8LKdCTIkp29eAf".to_string());
tracing::info!("Starting skeletal client to {}", target);
let client = Client::builder()
.danger_accept_invalid_certs(true)
.build()?;
let client = Client::new();
let sse_url = format!("{target}/sse");
+2 -5
View File
@@ -75,11 +75,8 @@ async fn test_full_system_e2e_performance() {
.expect("Failed to start server"),
);
// Give server time to generate TLS cert and start
let client = reqwest::Client::builder()
.danger_accept_invalid_certs(true)
.build()
.unwrap();
// Give server time to start
let client = reqwest::Client::new();
let mut started = false;
for _ in 0..30 {
if let Ok(resp) = client