From ab5e0f318a32c8edf89f813c02829c7a85fa44e0 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 7 May 2024 17:29:55 +0000 Subject: [PATCH] Add a dummy `http.rs` main to make default rust builds work --- src/http.rs | 3 +++ 1 file changed, 3 insertions(+) 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::*; -- 2.39.5