From ec8acbc5e73017e0ed617211dc8cd029604c3962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=A5=E4=B8=8B=E7=BA=A2=E8=8D=AF?= Date: Sun, 18 Jan 2026 22:55:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A4=BA=E4=BE=8Bcross?= =?UTF-8?q?=E7=BC=96=E8=AF=91aws-lc-sys=E7=9A=84BUG=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c1a4705..e6a7a0f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,10 @@ metrics = { version = "0.24", optional = true } tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "tracing-log"] } mimalloc = "0.1" -metrics-exporter-prometheus = "0.18" +# 禁用默认 features,只启用 http-listener(不包含 hyper-rustls) +# 这样可以避免引入 aws-lc-sys +metrics-exporter-prometheus = { version = "0.18", default-features = false, features = ["http-listener"] } + [features] default = [] @@ -47,6 +50,7 @@ mimalloc = [] name = "dht_crawler_example" path = "examples/main.rs" + [profile.release] opt-level = 3 lto = "fat" @@ -57,3 +61,4 @@ strip = true [profile.dev] opt-level = 0 debug = true +