iz
Clone
https://git.tahinli.com/Tahinli/iz.git
0 watching0 forksRustAGPL-3.0567.3 KiB3950aceTahinli27 days ago34 commits
| 1 | //! The `iz` binary: the command line, logging and the process lifetime. |
| 2 | //! |
| 3 | //! `iz [--config <path>] [serve]` runs the server; a bare `iz` does the same. `iz export`, `iz restore` and |
| 4 | //! `iz fsck` are the operator commands (see `cli`). The configuration file is the `--config` path, then |
| 5 | //! `IZ_CONFIG`, then `config/iz.toml`. Exit status 0 is success, 1 a failure, 2 a usage error. |
| 6 | |
| 7 | // The page handlers nest many view and store futures; the default limit is too small for their types. |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | use Path; |
| 33 | use ExitCode; |
| 34 | |
| 35 | use Parser; |
| 36 | use ; |
| 37 | use EnvFilter; |
| 38 | |
| 39 | /// Logs to stderr. The level comes from `RUST_LOG`, and defaults to `info`. |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | /// Runs the server and maps its outcome to an exit status. |
| 49 | async |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | async |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 |