projects
/
dnssec-prover
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78af60e
)
Add a dummy `http.rs` main to make default rust builds work
author
Matt Corallo
<git@bluematt.me>
Tue, 7 May 2024 17:29:55 +0000
(17:29 +0000)
committer
Matt Corallo
<git@bluematt.me>
Tue, 7 May 2024 17:30:52 +0000
(17:30 +0000)
src/http.rs
patch
|
blob
|
history
diff --git
a/src/http.rs
b/src/http.rs
index eb97c12568ce18693e110d3e072888bfd32a8b86..61075026a9d162b4161277c7f2967824373956b9 100644
(file)
--- 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::*;