This commit is contained in:
spikecodes 2021-03-05 06:24:40 -08:00
parent c0d1519341
commit 10873dd0c6
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
2 changed files with 20 additions and 17 deletions

34
Cargo.lock generated
View file

@ -179,9 +179,9 @@ dependencies = [
[[package]]
name = "async-h1"
version = "2.3.1"
version = "2.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e9e2a9745d9cd0d92ed7641ce4d07568985762f92633260f0afe8ac7917d9d7"
checksum = "cc5142de15b549749cce62923a50714b0d7b77f5090ced141599e78899865451"
dependencies = [
"async-channel",
"async-dup",
@ -297,7 +297,7 @@ dependencies = [
"memchr",
"num_cpus",
"once_cell",
"pin-project-lite 0.2.5",
"pin-project-lite 0.2.6",
"pin-utils",
"slab",
"wasm-bindgen-futures",
@ -311,9 +311,9 @@ checksum = "e91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0"
[[package]]
name = "async-trait"
version = "0.1.42"
version = "0.1.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d3a45e77e34375a7923b1e8febb049bb011f064714a8e17a1a616fef01da13d"
checksum = "d3340571769500ddef1e94b45055fabed6b08a881269b7570c830b8f32ef84ef"
dependencies = [
"proc-macro2",
"quote",
@ -352,9 +352,9 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
[[package]]
name = "bitvec"
version = "0.19.4"
version = "0.19.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7ba35e9565969edb811639dbebfe34edc0368e472c5018474c8eb2543397f81"
checksum = "8942c8d352ae1838c9dda0b0ca2ab657696ef2232a20147cf1b30ae1a9cb4321"
dependencies = [
"funty",
"radium",
@ -810,7 +810,7 @@ dependencies = [
"futures-io",
"memchr",
"parking",
"pin-project-lite 0.2.5",
"pin-project-lite 0.2.6",
"waker-fn",
]
@ -851,7 +851,7 @@ dependencies = [
"futures-sink",
"futures-task",
"memchr",
"pin-project-lite 0.2.5",
"pin-project-lite 0.2.6",
"pin-utils",
"proc-macro-hack",
"proc-macro-nested",
@ -987,7 +987,7 @@ dependencies = [
"cookie",
"futures-lite",
"infer",
"pin-project-lite 0.2.5",
"pin-project-lite 0.2.6",
"rand 0.7.3",
"serde",
"serde_json",
@ -1302,9 +1302,9 @@ checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777"
[[package]]
name = "pin-project-lite"
version = "0.2.5"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0cf491442e4b033ed1c722cb9f0df5fcfcf4de682466c46469c36bc47dc5548a"
checksum = "dc0e1f259c92177c30a4c9d177246edd0a3568b25756a977d0632cf8fa37e905"
[[package]]
name = "pin-utils"
@ -1772,7 +1772,7 @@ dependencies = [
"log",
"mime_guess",
"once_cell",
"pin-project-lite 0.2.5",
"pin-project-lite 0.2.6",
"serde",
"serde_json",
"web-sys",
@ -1786,9 +1786,9 @@ checksum = "45f6ee7c7b87caf59549e9fe45d6a69c75c8019e79e212a835c5da0e92f0ba08"
[[package]]
name = "syn"
version = "1.0.60"
version = "1.0.61"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c700597eca8a5a762beb35753ef6b94df201c81cca676604f547495a0d7f0081"
checksum = "ed22b90a0e734a23a7610f4283ac9e5acfb96cbb30dfefa540d66f866f1c09c5"
dependencies = [
"proc-macro2",
"quote",
@ -1854,7 +1854,7 @@ dependencies = [
"http-types",
"kv-log-macro",
"log",
"pin-project-lite 0.2.5",
"pin-project-lite 0.2.6",
"route-recognizer",
"serde",
"serde_json",
@ -1921,7 +1921,7 @@ checksum = "01ebdc2bb4498ab1ab5f5b73c5803825e60199229ccba0698170e3be0e7f959f"
dependencies = [
"cfg-if 1.0.0",
"log",
"pin-project-lite 0.2.5",
"pin-project-lite 0.2.6",
"tracing-attributes",
"tracing-core",
]

View file

@ -226,6 +226,9 @@ async fn main() -> tide::Result<()> {
app.at("/r/:sub/:sort/").get(subreddit::page);
// Comments handler
app.at("/comments/:id/").get(post::item);
// Front page
app.at("/").get(subreddit::page);