diff options
author | Rutger Broekhoff | 2024-01-24 18:19:05 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2024-01-24 18:19:05 +0100 |
commit | 399d340187171420b5f1fcf524906aadd04be5d6 (patch) | |
tree | 5c0fe8a25b00aa8e5de0eebdd2d09b572d60974e /rs | |
parent | 09f6e35326d15f9d415b052118228a13fa7421ae (diff) | |
download | gitolfs3-399d340187171420b5f1fcf524906aadd04be5d6.tar.gz gitolfs3-399d340187171420b5f1fcf524906aadd04be5d6.zip |
Sure I'll add another dependency, just tell me what the problem is
Diffstat (limited to 'rs')
-rw-r--r-- | rs/Cargo.lock | 162 | ||||
-rw-r--r-- | rs/server/Cargo.toml | 1 | ||||
-rw-r--r-- | rs/server/src/main.rs | 2 |
3 files changed, 165 insertions, 0 deletions
diff --git a/rs/Cargo.lock b/rs/Cargo.lock index 96774ca..f3beb9e 100644 --- a/rs/Cargo.lock +++ b/rs/Cargo.lock | |||
@@ -18,6 +18,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
18 | checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" | 18 | checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" |
19 | 19 | ||
20 | [[package]] | 20 | [[package]] |
21 | name = "aho-corasick" | ||
22 | version = "1.1.2" | ||
23 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
24 | checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" | ||
25 | dependencies = [ | ||
26 | "memchr", | ||
27 | ] | ||
28 | |||
29 | [[package]] | ||
21 | name = "android-tzdata" | 30 | name = "android-tzdata" |
22 | version = "0.1.1" | 31 | version = "0.1.1" |
23 | source = "registry+https://github.com/rust-lang/crates.io-index" | 32 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -1150,6 +1159,12 @@ dependencies = [ | |||
1150 | ] | 1159 | ] |
1151 | 1160 | ||
1152 | [[package]] | 1161 | [[package]] |
1162 | name = "lazy_static" | ||
1163 | version = "1.4.0" | ||
1164 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1165 | checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" | ||
1166 | |||
1167 | [[package]] | ||
1153 | name = "libc" | 1168 | name = "libc" |
1154 | version = "0.2.152" | 1169 | version = "0.2.152" |
1155 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1170 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -1172,6 +1187,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
1172 | checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" | 1187 | checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" |
1173 | 1188 | ||
1174 | [[package]] | 1189 | [[package]] |
1190 | name = "matchers" | ||
1191 | version = "0.1.0" | ||
1192 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1193 | checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" | ||
1194 | dependencies = [ | ||
1195 | "regex-automata 0.1.10", | ||
1196 | ] | ||
1197 | |||
1198 | [[package]] | ||
1175 | name = "matchit" | 1199 | name = "matchit" |
1176 | version = "0.7.3" | 1200 | version = "0.7.3" |
1177 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1201 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -1220,6 +1244,16 @@ dependencies = [ | |||
1220 | ] | 1244 | ] |
1221 | 1245 | ||
1222 | [[package]] | 1246 | [[package]] |
1247 | name = "nu-ansi-term" | ||
1248 | version = "0.46.0" | ||
1249 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1250 | checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" | ||
1251 | dependencies = [ | ||
1252 | "overload", | ||
1253 | "winapi", | ||
1254 | ] | ||
1255 | |||
1256 | [[package]] | ||
1223 | name = "num-integer" | 1257 | name = "num-integer" |
1224 | version = "0.1.45" | 1258 | version = "0.1.45" |
1225 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1259 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -1276,6 +1310,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
1276 | checksum = "4030760ffd992bef45b0ae3f10ce1aba99e33464c90d14dd7c039884963ddc7a" | 1310 | checksum = "4030760ffd992bef45b0ae3f10ce1aba99e33464c90d14dd7c039884963ddc7a" |
1277 | 1311 | ||
1278 | [[package]] | 1312 | [[package]] |
1313 | name = "overload" | ||
1314 | version = "0.1.1" | ||
1315 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1316 | checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" | ||
1317 | |||
1318 | [[package]] | ||
1279 | name = "p256" | 1319 | name = "p256" |
1280 | version = "0.11.1" | 1320 | version = "0.11.1" |
1281 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1321 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -1400,12 +1440,56 @@ dependencies = [ | |||
1400 | ] | 1440 | ] |
1401 | 1441 | ||
1402 | [[package]] | 1442 | [[package]] |
1443 | name = "regex" | ||
1444 | version = "1.10.3" | ||
1445 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1446 | checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" | ||
1447 | dependencies = [ | ||
1448 | "aho-corasick", | ||
1449 | "memchr", | ||
1450 | "regex-automata 0.4.4", | ||
1451 | "regex-syntax 0.8.2", | ||
1452 | ] | ||
1453 | |||
1454 | [[package]] | ||
1455 | name = "regex-automata" | ||
1456 | version = "0.1.10" | ||
1457 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1458 | checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" | ||
1459 | dependencies = [ | ||
1460 | "regex-syntax 0.6.29", | ||
1461 | ] | ||
1462 | |||
1463 | [[package]] | ||
1464 | name = "regex-automata" | ||
1465 | version = "0.4.4" | ||
1466 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1467 | checksum = "3b7fa1134405e2ec9353fd416b17f8dacd46c473d7d3fd1cf202706a14eb792a" | ||
1468 | dependencies = [ | ||
1469 | "aho-corasick", | ||
1470 | "memchr", | ||
1471 | "regex-syntax 0.8.2", | ||
1472 | ] | ||
1473 | |||
1474 | [[package]] | ||
1403 | name = "regex-lite" | 1475 | name = "regex-lite" |
1404 | version = "0.1.5" | 1476 | version = "0.1.5" |
1405 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1477 | source = "registry+https://github.com/rust-lang/crates.io-index" |
1406 | checksum = "30b661b2f27137bdbc16f00eda72866a92bb28af1753ffbd56744fb6e2e9cd8e" | 1478 | checksum = "30b661b2f27137bdbc16f00eda72866a92bb28af1753ffbd56744fb6e2e9cd8e" |
1407 | 1479 | ||
1408 | [[package]] | 1480 | [[package]] |
1481 | name = "regex-syntax" | ||
1482 | version = "0.6.29" | ||
1483 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1484 | checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" | ||
1485 | |||
1486 | [[package]] | ||
1487 | name = "regex-syntax" | ||
1488 | version = "0.8.2" | ||
1489 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1490 | checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" | ||
1491 | |||
1492 | [[package]] | ||
1409 | name = "rfc6979" | 1493 | name = "rfc6979" |
1410 | version = "0.3.1" | 1494 | version = "0.3.1" |
1411 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1495 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -1637,6 +1721,7 @@ dependencies = [ | |||
1637 | "tokio", | 1721 | "tokio", |
1638 | "tokio-util", | 1722 | "tokio-util", |
1639 | "tower", | 1723 | "tower", |
1724 | "tracing-subscriber", | ||
1640 | ] | 1725 | ] |
1641 | 1726 | ||
1642 | [[package]] | 1727 | [[package]] |
@@ -1662,6 +1747,15 @@ dependencies = [ | |||
1662 | ] | 1747 | ] |
1663 | 1748 | ||
1664 | [[package]] | 1749 | [[package]] |
1750 | name = "sharded-slab" | ||
1751 | version = "0.1.7" | ||
1752 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1753 | checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" | ||
1754 | dependencies = [ | ||
1755 | "lazy_static", | ||
1756 | ] | ||
1757 | |||
1758 | [[package]] | ||
1665 | name = "shell" | 1759 | name = "shell" |
1666 | version = "0.1.0" | 1760 | version = "0.1.0" |
1667 | 1761 | ||
@@ -1749,6 +1843,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
1749 | checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" | 1843 | checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" |
1750 | 1844 | ||
1751 | [[package]] | 1845 | [[package]] |
1846 | name = "thread_local" | ||
1847 | version = "1.1.7" | ||
1848 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1849 | checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" | ||
1850 | dependencies = [ | ||
1851 | "cfg-if", | ||
1852 | "once_cell", | ||
1853 | ] | ||
1854 | |||
1855 | [[package]] | ||
1752 | name = "time" | 1856 | name = "time" |
1753 | version = "0.3.31" | 1857 | version = "0.3.31" |
1754 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1858 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -1903,6 +2007,36 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
1903 | checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" | 2007 | checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" |
1904 | dependencies = [ | 2008 | dependencies = [ |
1905 | "once_cell", | 2009 | "once_cell", |
2010 | "valuable", | ||
2011 | ] | ||
2012 | |||
2013 | [[package]] | ||
2014 | name = "tracing-log" | ||
2015 | version = "0.2.0" | ||
2016 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
2017 | checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" | ||
2018 | dependencies = [ | ||
2019 | "log", | ||
2020 | "once_cell", | ||
2021 | "tracing-core", | ||
2022 | ] | ||
2023 | |||
2024 | [[package]] | ||
2025 | name = "tracing-subscriber" | ||
2026 | version = "0.3.18" | ||
2027 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
2028 | checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" | ||
2029 | dependencies = [ | ||
2030 | "matchers", | ||
2031 | "nu-ansi-term", | ||
2032 | "once_cell", | ||
2033 | "regex", | ||
2034 | "sharded-slab", | ||
2035 | "smallvec", | ||
2036 | "thread_local", | ||
2037 | "tracing", | ||
2038 | "tracing-core", | ||
2039 | "tracing-log", | ||
1906 | ] | 2040 | ] |
1907 | 2041 | ||
1908 | [[package]] | 2042 | [[package]] |
@@ -1968,6 +2102,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
1968 | checksum = "5e395fcf16a7a3d8127ec99782007af141946b4795001f876d54fb0d55978560" | 2102 | checksum = "5e395fcf16a7a3d8127ec99782007af141946b4795001f876d54fb0d55978560" |
1969 | 2103 | ||
1970 | [[package]] | 2104 | [[package]] |
2105 | name = "valuable" | ||
2106 | version = "0.1.0" | ||
2107 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
2108 | checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" | ||
2109 | |||
2110 | [[package]] | ||
1971 | name = "version_check" | 2111 | name = "version_check" |
1972 | version = "0.9.4" | 2112 | version = "0.9.4" |
1973 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2113 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -2049,6 +2189,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
2049 | checksum = "4d91413b1c31d7539ba5ef2451af3f0b833a005eb27a631cec32bc0635a8602b" | 2189 | checksum = "4d91413b1c31d7539ba5ef2451af3f0b833a005eb27a631cec32bc0635a8602b" |
2050 | 2190 | ||
2051 | [[package]] | 2191 | [[package]] |
2192 | name = "winapi" | ||
2193 | version = "0.3.9" | ||
2194 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
2195 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" | ||
2196 | dependencies = [ | ||
2197 | "winapi-i686-pc-windows-gnu", | ||
2198 | "winapi-x86_64-pc-windows-gnu", | ||
2199 | ] | ||
2200 | |||
2201 | [[package]] | ||
2202 | name = "winapi-i686-pc-windows-gnu" | ||
2203 | version = "0.4.0" | ||
2204 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
2205 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" | ||
2206 | |||
2207 | [[package]] | ||
2208 | name = "winapi-x86_64-pc-windows-gnu" | ||
2209 | version = "0.4.0" | ||
2210 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
2211 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" | ||
2212 | |||
2213 | [[package]] | ||
2052 | name = "windows-core" | 2214 | name = "windows-core" |
2053 | version = "0.52.0" | 2215 | version = "0.52.0" |
2054 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2216 | source = "registry+https://github.com/rust-lang/crates.io-index" |
diff --git a/rs/server/Cargo.toml b/rs/server/Cargo.toml index ac2b10b..edb76d8 100644 --- a/rs/server/Cargo.toml +++ b/rs/server/Cargo.toml | |||
@@ -16,3 +16,4 @@ serde_json = "1" | |||
16 | tokio = { version = "1.35", features = ["full"] } | 16 | tokio = { version = "1.35", features = ["full"] } |
17 | tokio-util = "0.7" | 17 | tokio-util = "0.7" |
18 | tower = "0.4" | 18 | tower = "0.4" |
19 | tracing-subscriber = { version = "0.3", features = ["env-filter"] } | ||
diff --git a/rs/server/src/main.rs b/rs/server/src/main.rs index 0a37155..b346bc6 100644 --- a/rs/server/src/main.rs +++ b/rs/server/src/main.rs | |||
@@ -160,6 +160,8 @@ fn get_s3_client(env: &Env) -> Result<aws_sdk_s3::Client, std::io::Error> { | |||
160 | 160 | ||
161 | #[tokio::main] | 161 | #[tokio::main] |
162 | async fn main() -> ExitCode { | 162 | async fn main() -> ExitCode { |
163 | tracing_subscriber::fmt::init(); | ||
164 | |||
163 | let env = match Env::load() { | 165 | let env = match Env::load() { |
164 | Ok(env) => env, | 166 | Ok(env) => env, |
165 | Err(e) => { | 167 | Err(e) => { |