diff options
author | FxQnLr <[email protected]> | 2024-02-25 15:27:54 +0100 |
---|---|---|
committer | FxQnLr <[email protected]> | 2024-02-25 15:27:54 +0100 |
commit | 91cd665671d564620bce13e693cd7ecaad697db9 (patch) | |
tree | d560273df2eece276cbda021cb4e95c044bb19df | |
parent | 9058f191b69ecafc8fdeace227ac113412d03888 (diff) | |
download | webol-91cd665671d564620bce13e693cd7ecaad697db9.tar webol-91cd665671d564620bce13e693cd7ecaad697db9.tar.gz webol-91cd665671d564620bce13e693cd7ecaad697db9.zip |
Closes #11. Write log to file. Update deps
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Cargo.lock | 158 | ||||
-rw-r--r-- | Cargo.toml | 1 | ||||
-rw-r--r-- | src/main.rs | 4 |
4 files changed, 97 insertions, 69 deletions
@@ -14,3 +14,6 @@ target/ | |||
14 | config.* | 14 | config.* |
15 | 15 | ||
16 | .idea | 16 | .idea |
17 | |||
18 | logs/ | ||
19 | *.log | ||
@@ -19,9 +19,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" | |||
19 | 19 | ||
20 | [[package]] | 20 | [[package]] |
21 | name = "ahash" | 21 | name = "ahash" |
22 | version = "0.8.8" | 22 | version = "0.8.9" |
23 | source = "registry+https://github.com/rust-lang/crates.io-index" | 23 | source = "registry+https://github.com/rust-lang/crates.io-index" |
24 | checksum = "42cd52102d3df161c77a887b608d7a4897d7cc112886a9537b738a887a03aaff" | 24 | checksum = "d713b3834d76b85304d4d525563c1276e2e30dc97cc67bfb4585a4a29fc2c89f" |
25 | dependencies = [ | 25 | dependencies = [ |
26 | "cfg-if", | 26 | "cfg-if", |
27 | "getrandom", | 27 | "getrandom", |
@@ -53,7 +53,7 @@ checksum = "c980ee35e870bd1a4d2c8294d4c04d0499e67bca1e4b5cefcc693c2fa00caea9" | |||
53 | dependencies = [ | 53 | dependencies = [ |
54 | "proc-macro2", | 54 | "proc-macro2", |
55 | "quote", | 55 | "quote", |
56 | "syn 2.0.48", | 56 | "syn 2.0.50", |
57 | ] | 57 | ] |
58 | 58 | ||
59 | [[package]] | 59 | [[package]] |
@@ -148,7 +148,7 @@ dependencies = [ | |||
148 | "heck", | 148 | "heck", |
149 | "proc-macro2", | 149 | "proc-macro2", |
150 | "quote", | 150 | "quote", |
151 | "syn 2.0.48", | 151 | "syn 2.0.50", |
152 | ] | 152 | ] |
153 | 153 | ||
154 | [[package]] | 154 | [[package]] |
@@ -216,12 +216,9 @@ checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" | |||
216 | 216 | ||
217 | [[package]] | 217 | [[package]] |
218 | name = "cc" | 218 | name = "cc" |
219 | version = "1.0.83" | 219 | version = "1.0.88" |
220 | source = "registry+https://github.com/rust-lang/crates.io-index" | 220 | source = "registry+https://github.com/rust-lang/crates.io-index" |
221 | checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" | 221 | checksum = "02f341c093d19155a6e41631ce5971aac4e9a868262212153124c15fa22d1cdc" |
222 | dependencies = [ | ||
223 | "libc", | ||
224 | ] | ||
225 | 222 | ||
226 | [[package]] | 223 | [[package]] |
227 | name = "cfg-if" | 224 | name = "cfg-if" |
@@ -336,6 +333,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
336 | checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" | 333 | checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" |
337 | 334 | ||
338 | [[package]] | 335 | [[package]] |
336 | name = "crossbeam-channel" | ||
337 | version = "0.5.11" | ||
338 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
339 | checksum = "176dc175b78f56c0f321911d9c8eb2b77a78a4860b9c19db83835fea1a46649b" | ||
340 | dependencies = [ | ||
341 | "crossbeam-utils", | ||
342 | ] | ||
343 | |||
344 | [[package]] | ||
339 | name = "crossbeam-queue" | 345 | name = "crossbeam-queue" |
340 | version = "0.3.11" | 346 | version = "0.3.11" |
341 | source = "registry+https://github.com/rust-lang/crates.io-index" | 347 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -682,9 +688,9 @@ dependencies = [ | |||
682 | 688 | ||
683 | [[package]] | 689 | [[package]] |
684 | name = "hermit-abi" | 690 | name = "hermit-abi" |
685 | version = "0.3.5" | 691 | version = "0.3.8" |
686 | source = "registry+https://github.com/rust-lang/crates.io-index" | 692 | source = "registry+https://github.com/rust-lang/crates.io-index" |
687 | checksum = "d0c62115964e08cb8039170eb33c1d0e2388a256930279edca206fff675f82c3" | 693 | checksum = "379dada1584ad501b383485dd706b8afb7a70fcbc7f4da7d780638a5a6124a60" |
688 | 694 | ||
689 | [[package]] | 695 | [[package]] |
690 | name = "hex" | 696 | name = "hex" |
@@ -767,9 +773,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" | |||
767 | 773 | ||
768 | [[package]] | 774 | [[package]] |
769 | name = "hyper" | 775 | name = "hyper" |
770 | version = "1.1.0" | 776 | version = "1.2.0" |
771 | source = "registry+https://github.com/rust-lang/crates.io-index" | 777 | source = "registry+https://github.com/rust-lang/crates.io-index" |
772 | checksum = "fb5aa53871fc917b1a9ed87b683a5d86db645e23acb32c2e0785a353e522fb75" | 778 | checksum = "186548d73ac615b32a73aafe38fb4f56c0d340e110e5a200bcadbaf2e199263a" |
773 | dependencies = [ | 779 | dependencies = [ |
774 | "bytes", | 780 | "bytes", |
775 | "futures-channel", | 781 | "futures-channel", |
@@ -781,6 +787,7 @@ dependencies = [ | |||
781 | "httpdate", | 787 | "httpdate", |
782 | "itoa", | 788 | "itoa", |
783 | "pin-project-lite", | 789 | "pin-project-lite", |
790 | "smallvec", | ||
784 | "tokio", | 791 | "tokio", |
785 | ] | 792 | ] |
786 | 793 | ||
@@ -1119,9 +1126,9 @@ dependencies = [ | |||
1119 | 1126 | ||
1120 | [[package]] | 1127 | [[package]] |
1121 | name = "num_threads" | 1128 | name = "num_threads" |
1122 | version = "0.1.6" | 1129 | version = "0.1.7" |
1123 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1130 | source = "registry+https://github.com/rust-lang/crates.io-index" |
1124 | checksum = "2819ce041d2ee131036f4fc9d6ae7ae125a3a40e97ba64d04fe799ad9dabbb44" | 1131 | checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9" |
1125 | dependencies = [ | 1132 | dependencies = [ |
1126 | "libc", | 1133 | "libc", |
1127 | ] | 1134 | ] |
@@ -1244,7 +1251,7 @@ dependencies = [ | |||
1244 | "pest_meta", | 1251 | "pest_meta", |
1245 | "proc-macro2", | 1252 | "proc-macro2", |
1246 | "quote", | 1253 | "quote", |
1247 | "syn 2.0.48", | 1254 | "syn 2.0.50", |
1248 | ] | 1255 | ] |
1249 | 1256 | ||
1250 | [[package]] | 1257 | [[package]] |
@@ -1275,7 +1282,7 @@ checksum = "266c042b60c9c76b8d53061e52b2e0d1116abc57cefc8c5cd671619a56ac3690" | |||
1275 | dependencies = [ | 1282 | dependencies = [ |
1276 | "proc-macro2", | 1283 | "proc-macro2", |
1277 | "quote", | 1284 | "quote", |
1278 | "syn 2.0.48", | 1285 | "syn 2.0.50", |
1279 | ] | 1286 | ] |
1280 | 1287 | ||
1281 | [[package]] | 1288 | [[package]] |
@@ -1313,9 +1320,9 @@ dependencies = [ | |||
1313 | 1320 | ||
1314 | [[package]] | 1321 | [[package]] |
1315 | name = "pkg-config" | 1322 | name = "pkg-config" |
1316 | version = "0.3.29" | 1323 | version = "0.3.30" |
1317 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1324 | source = "registry+https://github.com/rust-lang/crates.io-index" |
1318 | checksum = "2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb" | 1325 | checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" |
1319 | 1326 | ||
1320 | [[package]] | 1327 | [[package]] |
1321 | name = "pnet_base" | 1328 | name = "pnet_base" |
@@ -1541,9 +1548,9 @@ checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" | |||
1541 | 1548 | ||
1542 | [[package]] | 1549 | [[package]] |
1543 | name = "ryu" | 1550 | name = "ryu" |
1544 | version = "1.0.16" | 1551 | version = "1.0.17" |
1545 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1552 | source = "registry+https://github.com/rust-lang/crates.io-index" |
1546 | checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" | 1553 | checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" |
1547 | 1554 | ||
1548 | [[package]] | 1555 | [[package]] |
1549 | name = "scopeguard" | 1556 | name = "scopeguard" |
@@ -1553,29 +1560,29 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" | |||
1553 | 1560 | ||
1554 | [[package]] | 1561 | [[package]] |
1555 | name = "serde" | 1562 | name = "serde" |
1556 | version = "1.0.196" | 1563 | version = "1.0.197" |
1557 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1564 | source = "registry+https://github.com/rust-lang/crates.io-index" |
1558 | checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32" | 1565 | checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" |
1559 | dependencies = [ | 1566 | dependencies = [ |
1560 | "serde_derive", | 1567 | "serde_derive", |
1561 | ] | 1568 | ] |
1562 | 1569 | ||
1563 | [[package]] | 1570 | [[package]] |
1564 | name = "serde_derive" | 1571 | name = "serde_derive" |
1565 | version = "1.0.196" | 1572 | version = "1.0.197" |
1566 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1573 | source = "registry+https://github.com/rust-lang/crates.io-index" |
1567 | checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67" | 1574 | checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" |
1568 | dependencies = [ | 1575 | dependencies = [ |
1569 | "proc-macro2", | 1576 | "proc-macro2", |
1570 | "quote", | 1577 | "quote", |
1571 | "syn 2.0.48", | 1578 | "syn 2.0.50", |
1572 | ] | 1579 | ] |
1573 | 1580 | ||
1574 | [[package]] | 1581 | [[package]] |
1575 | name = "serde_json" | 1582 | name = "serde_json" |
1576 | version = "1.0.113" | 1583 | version = "1.0.114" |
1577 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1584 | source = "registry+https://github.com/rust-lang/crates.io-index" |
1578 | checksum = "69801b70b1c3dac963ecb03a364ba0ceda9cf60c71cfe475e99864759c8b8a79" | 1585 | checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0" |
1579 | dependencies = [ | 1586 | dependencies = [ |
1580 | "itoa", | 1587 | "itoa", |
1581 | "ryu", | 1588 | "ryu", |
@@ -1671,12 +1678,12 @@ checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" | |||
1671 | 1678 | ||
1672 | [[package]] | 1679 | [[package]] |
1673 | name = "socket2" | 1680 | name = "socket2" |
1674 | version = "0.5.5" | 1681 | version = "0.5.6" |
1675 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1682 | source = "registry+https://github.com/rust-lang/crates.io-index" |
1676 | checksum = "7b5fac59a5cb5dd637972e5fca70daf0523c9067fcdc4842f053dae04a18f8e9" | 1683 | checksum = "05ffd9c0a93b7543e062e759284fcf5f5e3b098501104bfbdde4d404db792871" |
1677 | dependencies = [ | 1684 | dependencies = [ |
1678 | "libc", | 1685 | "libc", |
1679 | "windows-sys 0.48.0", | 1686 | "windows-sys 0.52.0", |
1680 | ] | 1687 | ] |
1681 | 1688 | ||
1682 | [[package]] | 1689 | [[package]] |
@@ -1962,9 +1969,9 @@ dependencies = [ | |||
1962 | 1969 | ||
1963 | [[package]] | 1970 | [[package]] |
1964 | name = "syn" | 1971 | name = "syn" |
1965 | version = "2.0.48" | 1972 | version = "2.0.50" |
1966 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1973 | source = "registry+https://github.com/rust-lang/crates.io-index" |
1967 | checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" | 1974 | checksum = "74f1bdc9872430ce9b75da68329d1c1746faf50ffac5f19e02b71e37ff881ffb" |
1968 | dependencies = [ | 1975 | dependencies = [ |
1969 | "proc-macro2", | 1976 | "proc-macro2", |
1970 | "quote", | 1977 | "quote", |
@@ -2006,14 +2013,14 @@ checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" | |||
2006 | dependencies = [ | 2013 | dependencies = [ |
2007 | "proc-macro2", | 2014 | "proc-macro2", |
2008 | "quote", | 2015 | "quote", |
2009 | "syn 2.0.48", | 2016 | "syn 2.0.50", |
2010 | ] | 2017 | ] |
2011 | 2018 | ||
2012 | [[package]] | 2019 | [[package]] |
2013 | name = "thread_local" | 2020 | name = "thread_local" |
2014 | version = "1.1.7" | 2021 | version = "1.1.8" |
2015 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2022 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2016 | checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" | 2023 | checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" |
2017 | dependencies = [ | 2024 | dependencies = [ |
2018 | "cfg-if", | 2025 | "cfg-if", |
2019 | "once_cell", | 2026 | "once_cell", |
@@ -2101,7 +2108,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" | |||
2101 | dependencies = [ | 2108 | dependencies = [ |
2102 | "proc-macro2", | 2109 | "proc-macro2", |
2103 | "quote", | 2110 | "quote", |
2104 | "syn 2.0.48", | 2111 | "syn 2.0.50", |
2105 | ] | 2112 | ] |
2106 | 2113 | ||
2107 | [[package]] | 2114 | [[package]] |
@@ -2164,9 +2171,9 @@ dependencies = [ | |||
2164 | 2171 | ||
2165 | [[package]] | 2172 | [[package]] |
2166 | name = "toml_edit" | 2173 | name = "toml_edit" |
2167 | version = "0.22.4" | 2174 | version = "0.22.6" |
2168 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2175 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2169 | checksum = "0c9ffdf896f8daaabf9b66ba8e77ea1ed5ed0f72821b398aba62352e95062951" | 2176 | checksum = "2c1b5fd4128cc8d3e0cb74d4ed9a9cc7c7284becd4df68f5f940e1ad123606f6" |
2170 | dependencies = [ | 2177 | dependencies = [ |
2171 | "indexmap", | 2178 | "indexmap", |
2172 | "serde", | 2179 | "serde", |
@@ -2216,6 +2223,18 @@ dependencies = [ | |||
2216 | ] | 2223 | ] |
2217 | 2224 | ||
2218 | [[package]] | 2225 | [[package]] |
2226 | name = "tracing-appender" | ||
2227 | version = "0.2.3" | ||
2228 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
2229 | checksum = "3566e8ce28cc0a3fe42519fc80e6b4c943cc4c8cef275620eb8dac2d3d4e06cf" | ||
2230 | dependencies = [ | ||
2231 | "crossbeam-channel", | ||
2232 | "thiserror", | ||
2233 | "time", | ||
2234 | "tracing-subscriber", | ||
2235 | ] | ||
2236 | |||
2237 | [[package]] | ||
2219 | name = "tracing-attributes" | 2238 | name = "tracing-attributes" |
2220 | version = "0.1.27" | 2239 | version = "0.1.27" |
2221 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2240 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -2223,7 +2242,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" | |||
2223 | dependencies = [ | 2242 | dependencies = [ |
2224 | "proc-macro2", | 2243 | "proc-macro2", |
2225 | "quote", | 2244 | "quote", |
2226 | "syn 2.0.48", | 2245 | "syn 2.0.50", |
2227 | ] | 2246 | ] |
2228 | 2247 | ||
2229 | [[package]] | 2248 | [[package]] |
@@ -2321,9 +2340,9 @@ checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" | |||
2321 | 2340 | ||
2322 | [[package]] | 2341 | [[package]] |
2323 | name = "unicode-normalization" | 2342 | name = "unicode-normalization" |
2324 | version = "0.1.22" | 2343 | version = "0.1.23" |
2325 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2344 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2326 | checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" | 2345 | checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" |
2327 | dependencies = [ | 2346 | dependencies = [ |
2328 | "tinyvec", | 2347 | "tinyvec", |
2329 | ] | 2348 | ] |
@@ -2416,6 +2435,7 @@ dependencies = [ | |||
2416 | "time", | 2435 | "time", |
2417 | "tokio", | 2436 | "tokio", |
2418 | "tracing", | 2437 | "tracing", |
2438 | "tracing-appender", | ||
2419 | "tracing-subscriber", | 2439 | "tracing-subscriber", |
2420 | "uuid", | 2440 | "uuid", |
2421 | ] | 2441 | ] |
@@ -2463,7 +2483,7 @@ version = "0.52.0" | |||
2463 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2483 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2464 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" | 2484 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" |
2465 | dependencies = [ | 2485 | dependencies = [ |
2466 | "windows-targets 0.52.0", | 2486 | "windows-targets 0.52.3", |
2467 | ] | 2487 | ] |
2468 | 2488 | ||
2469 | [[package]] | 2489 | [[package]] |
@@ -2483,17 +2503,17 @@ dependencies = [ | |||
2483 | 2503 | ||
2484 | [[package]] | 2504 | [[package]] |
2485 | name = "windows-targets" | 2505 | name = "windows-targets" |
2486 | version = "0.52.0" | 2506 | version = "0.52.3" |
2487 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2507 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2488 | checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd" | 2508 | checksum = "d380ba1dc7187569a8a9e91ed34b8ccfc33123bbacb8c0aed2d1ad7f3ef2dc5f" |
2489 | dependencies = [ | 2509 | dependencies = [ |
2490 | "windows_aarch64_gnullvm 0.52.0", | 2510 | "windows_aarch64_gnullvm 0.52.3", |
2491 | "windows_aarch64_msvc 0.52.0", | 2511 | "windows_aarch64_msvc 0.52.3", |
2492 | "windows_i686_gnu 0.52.0", | 2512 | "windows_i686_gnu 0.52.3", |
2493 | "windows_i686_msvc 0.52.0", | 2513 | "windows_i686_msvc 0.52.3", |
2494 | "windows_x86_64_gnu 0.52.0", | 2514 | "windows_x86_64_gnu 0.52.3", |
2495 | "windows_x86_64_gnullvm 0.52.0", | 2515 | "windows_x86_64_gnullvm 0.52.3", |
2496 | "windows_x86_64_msvc 0.52.0", | 2516 | "windows_x86_64_msvc 0.52.3", |
2497 | ] | 2517 | ] |
2498 | 2518 | ||
2499 | [[package]] | 2519 | [[package]] |
@@ -2504,9 +2524,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" | |||
2504 | 2524 | ||
2505 | [[package]] | 2525 | [[package]] |
2506 | name = "windows_aarch64_gnullvm" | 2526 | name = "windows_aarch64_gnullvm" |
2507 | version = "0.52.0" | 2527 | version = "0.52.3" |
2508 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2528 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2509 | checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea" | 2529 | checksum = "68e5dcfb9413f53afd9c8f86e56a7b4d86d9a2fa26090ea2dc9e40fba56c6ec6" |
2510 | 2530 | ||
2511 | [[package]] | 2531 | [[package]] |
2512 | name = "windows_aarch64_msvc" | 2532 | name = "windows_aarch64_msvc" |
@@ -2516,9 +2536,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" | |||
2516 | 2536 | ||
2517 | [[package]] | 2537 | [[package]] |
2518 | name = "windows_aarch64_msvc" | 2538 | name = "windows_aarch64_msvc" |
2519 | version = "0.52.0" | 2539 | version = "0.52.3" |
2520 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2540 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2521 | checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef" | 2541 | checksum = "8dab469ebbc45798319e69eebf92308e541ce46760b49b18c6b3fe5e8965b30f" |
2522 | 2542 | ||
2523 | [[package]] | 2543 | [[package]] |
2524 | name = "windows_i686_gnu" | 2544 | name = "windows_i686_gnu" |
@@ -2528,9 +2548,9 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" | |||
2528 | 2548 | ||
2529 | [[package]] | 2549 | [[package]] |
2530 | name = "windows_i686_gnu" | 2550 | name = "windows_i686_gnu" |
2531 | version = "0.52.0" | 2551 | version = "0.52.3" |
2532 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2552 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2533 | checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313" | 2553 | checksum = "2a4e9b6a7cac734a8b4138a4e1044eac3404d8326b6c0f939276560687a033fb" |
2534 | 2554 | ||
2535 | [[package]] | 2555 | [[package]] |
2536 | name = "windows_i686_msvc" | 2556 | name = "windows_i686_msvc" |
@@ -2540,9 +2560,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" | |||
2540 | 2560 | ||
2541 | [[package]] | 2561 | [[package]] |
2542 | name = "windows_i686_msvc" | 2562 | name = "windows_i686_msvc" |
2543 | version = "0.52.0" | 2563 | version = "0.52.3" |
2544 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2564 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2545 | checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a" | 2565 | checksum = "28b0ec9c422ca95ff34a78755cfa6ad4a51371da2a5ace67500cf7ca5f232c58" |
2546 | 2566 | ||
2547 | [[package]] | 2567 | [[package]] |
2548 | name = "windows_x86_64_gnu" | 2568 | name = "windows_x86_64_gnu" |
@@ -2552,9 +2572,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" | |||
2552 | 2572 | ||
2553 | [[package]] | 2573 | [[package]] |
2554 | name = "windows_x86_64_gnu" | 2574 | name = "windows_x86_64_gnu" |
2555 | version = "0.52.0" | 2575 | version = "0.52.3" |
2556 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2576 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2557 | checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd" | 2577 | checksum = "704131571ba93e89d7cd43482277d6632589b18ecf4468f591fbae0a8b101614" |
2558 | 2578 | ||
2559 | [[package]] | 2579 | [[package]] |
2560 | name = "windows_x86_64_gnullvm" | 2580 | name = "windows_x86_64_gnullvm" |
@@ -2564,9 +2584,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" | |||
2564 | 2584 | ||
2565 | [[package]] | 2585 | [[package]] |
2566 | name = "windows_x86_64_gnullvm" | 2586 | name = "windows_x86_64_gnullvm" |
2567 | version = "0.52.0" | 2587 | version = "0.52.3" |
2568 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2588 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2569 | checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e" | 2589 | checksum = "42079295511643151e98d61c38c0acc444e52dd42ab456f7ccfd5152e8ecf21c" |
2570 | 2590 | ||
2571 | [[package]] | 2591 | [[package]] |
2572 | name = "windows_x86_64_msvc" | 2592 | name = "windows_x86_64_msvc" |
@@ -2576,15 +2596,15 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" | |||
2576 | 2596 | ||
2577 | [[package]] | 2597 | [[package]] |
2578 | name = "windows_x86_64_msvc" | 2598 | name = "windows_x86_64_msvc" |
2579 | version = "0.52.0" | 2599 | version = "0.52.3" |
2580 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2600 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2581 | checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" | 2601 | checksum = "0770833d60a970638e989b3fa9fd2bb1aaadcf88963d1659fd7d9990196ed2d6" |
2582 | 2602 | ||
2583 | [[package]] | 2603 | [[package]] |
2584 | name = "winnow" | 2604 | name = "winnow" |
2585 | version = "0.5.39" | 2605 | version = "0.6.2" |
2586 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2606 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2587 | checksum = "5389a154b01683d28c77f8f68f49dea75f0a4da32557a58f68ee51ebba472d29" | 2607 | checksum = "7a4191c47f15cc3ec71fcb4913cb83d58def65dd3787610213c649283b5ce178" |
2588 | dependencies = [ | 2608 | dependencies = [ |
2589 | "memchr", | 2609 | "memchr", |
2590 | ] | 2610 | ] |
@@ -2615,7 +2635,7 @@ checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" | |||
2615 | dependencies = [ | 2635 | dependencies = [ |
2616 | "proc-macro2", | 2636 | "proc-macro2", |
2617 | "quote", | 2637 | "quote", |
2618 | "syn 2.0.48", | 2638 | "syn 2.0.50", |
2619 | ] | 2639 | ] |
2620 | 2640 | ||
2621 | [[package]] | 2641 | [[package]] |
@@ -23,3 +23,4 @@ color-eyre = "0.6" | |||
23 | thiserror = "1.0" | 23 | thiserror = "1.0" |
24 | ipnetwork = "0.20.0" | 24 | ipnetwork = "0.20.0" |
25 | mac_address = { version = "1.1.5", features = ["serde"] } | 25 | mac_address = { version = "1.1.5", features = ["serde"] } |
26 | tracing-appender = "0.2.3" | ||
diff --git a/src/main.rs b/src/main.rs index eae89f6..d17984f 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -33,7 +33,11 @@ async fn main() -> color_eyre::eyre::Result<()> { | |||
33 | time::macros::format_description!("[year]-[month]-[day] [hour]:[minute]:[second]"); | 33 | time::macros::format_description!("[year]-[month]-[day] [hour]:[minute]:[second]"); |
34 | let loc = UtcTime::new(time_format); | 34 | let loc = UtcTime::new(time_format); |
35 | 35 | ||
36 | let file_appender = tracing_appender::rolling::daily("logs", "webol.log"); | ||
37 | let (non_blocking, _guard) = tracing_appender::non_blocking(file_appender); | ||
38 | |||
36 | tracing_subscriber::registry() | 39 | tracing_subscriber::registry() |
40 | .with(fmt::layer().with_writer(non_blocking).with_ansi(false)) | ||
37 | .with(fmt::layer().with_timer(loc)) | 41 | .with(fmt::layer().with_timer(loc)) |
38 | .with( | 42 | .with( |
39 | EnvFilter::builder() | 43 | EnvFilter::builder() |