]> git.bitcoin.ninja Git - dnssec-prover/commitdiff
Add a dummy `http.rs` main to make default rust builds work
authorMatt Corallo <git@bluematt.me>
Tue, 7 May 2024 17:29:55 +0000 (17:29 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 7 May 2024 17:30:52 +0000 (17:30 +0000)
src/http.rs

index eb97c12568ce18693e110d3e072888bfd32a8b86..61075026a9d162b4161277c7f2967824373956b9 100644 (file)
@@ -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::*;