From: Matt Corallo Date: Tue, 7 May 2024 17:29:55 +0000 (+0000) Subject: Add a dummy `http.rs` main to make default rust builds work X-Git-Tag: v0.5.4~7 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=ab5e0f318a32c8edf89f813c02829c7a85fa44e0;p=dnssec-prover Add a dummy `http.rs` main to make default rust builds work --- diff --git a/src/http.rs b/src/http.rs index eb97c12..6107502 100644 --- a/src/http.rs +++ b/src/http.rs @@ -45,6 +45,9 @@ async fn main() { imp::run_server(listener, resolver_sockaddr).await; } +#[cfg(not(feature = "build_server"))] +fn main() { panic!("You need to enable the `build_server` feature to use the built-in server"); } + #[cfg(any(feature = "build_server", all(feature = "tokio", feature = "validation")))] mod imp { use super::*;