修复示例cross编译aws-lc-sys的BUG问题

This commit is contained in:
桥下红药
2026-01-18 22:55:45 +08:00
parent d38cb835d4
commit ec8acbc5e7
+6 -1
View File
@@ -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