Make HTTP server large-req DoS safe rather than using a frontend
[dnssec-prover] / Cargo.toml
index 5e31b018ee966a7669f15c6a837a6e275bc52a3e..edbcebd0dbd97494139ae67818eb7785d78681e8 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name = "dnssec-prover"
-version = "0.2.0"
+version = "0.3.1"
 authors = ["Matt Corallo"]
 license = "MIT OR Apache-2.0"
 repository = "https://git.bitcoin.ninja/index.cgi?p=dnssec-prover"
@@ -13,6 +13,7 @@ rust-version = "1.60.0"
 [features]
 std = []
 tokio = ["tokio_crate/net", "tokio_crate/io-util", "std"]
+build_server = ["tokio", "tokio_crate/rt-multi-thread", "tokio_crate/macros"]
 
 [dependencies]
 ring = { version = "0.17", default-features = false, features = ["alloc"] }
@@ -23,4 +24,13 @@ tokio_crate = { package = "tokio", version = "1.0", default-features = false, op
 hex-conservative = { version = "0.1", default-features = false, features = ["alloc"] }
 base64 = "0.21"
 rand = { version = "0.8", default-features = false, features = ["getrandom"] }
-tokio_crate = { package = "tokio", version = "1.0", features = ["rt", "macros"] }
+tokio_crate = { package = "tokio", version = "1.0", features = ["rt", "macros", "net", "rt-multi-thread"] }
+minreq = { version = "2.0" }
+
+[lib]
+name = "dnssec_prover"
+path = "src/lib.rs"
+
+[[bin]]
+name = "http_proof_gen"
+path = "src/http.rs"