From 5a81a37678f32f78b64ebfdb4a89858e50393a3b Mon Sep 17 00:00:00 2001 From: filipriec Date: Sat, 22 Feb 2025 23:23:07 +0100 Subject: [PATCH] complete redesign --- Cargo.lock | 163 +- Cargo.toml | 32 +- README.md | 1 + client/Cargo.toml | 28 + config.toml => client/config.toml | 0 {src/client => client/src}/colors.rs | 0 .../src}/components1/handlers.rs | 0 .../src}/components1/handlers/command_line.rs | 0 .../src}/components1/handlers/form.rs | 0 .../src}/components1/handlers/preview_card.rs | 0 .../src}/components1/handlers/status_line.rs | 0 {src/client => client/src}/components1/mod.rs | 0 .../src}/components1/models.rs | 0 {src/client => client/src}/config.rs | 0 client/src/main.rs | 3 + {src/client => client/src}/mod.rs | 0 {src/client => client/src}/terminal.rs | 10 +- {src/client => client/src}/ui/handlers.rs | 0 .../src}/ui/handlers/event.rs | 2 +- .../client => client/src}/ui/handlers/form.rs | 0 .../src}/ui/handlers/render.rs | 0 .../src}/ui/handlers/state.rs | 0 {src/client => client/src}/ui/handlers/ui.rs | 0 {src/client => client/src}/ui/mod.rs | 0 {src/client => client/src}/ui/models.rs | 0 common/Cargo.toml | 13 + build.rs => common/build.rs | 5 +- {proto => common/proto}/adresar.proto | 0 {proto => common/proto}/common.proto | 0 {proto => common/proto}/table_structure.proto | 0 {proto => common/proto}/uctovnictvo.proto | 0 common/src/lib.rs | 7 + server/Cargo.lock | 3356 +++++++++++++++++ server/Cargo.toml | 28 + {docs => server/docs}/1.jpg | Bin {docs => server/docs}/2.jpg | Bin {docs => server/docs}/3.jpg | Bin {docs => server/docs}/4.jpg | Bin {docs => server/docs}/5.jpg | Bin {docs => server/docs}/6.jpg | Bin {docs => server/docs}/sqlx_migration.txt | 0 .../20250216175313_create_adresar_table.sql | 0 ...0250221164942_create_uctovnictvo_table.sql | 0 {src => server/src}/adresar/docs/example.txt | 0 .../src}/adresar/docs/get_example.txt | 0 {src => server/src}/adresar/handlers.rs | 0 .../src}/adresar/handlers/delete_adresar.rs | 2 +- .../src}/adresar/handlers/get_adresar.rs | 2 +- .../handlers/get_adresar_by_position.rs | 4 +- .../adresar/handlers/get_adresar_count.rs | 2 +- .../src}/adresar/handlers/post_adresar.rs | 2 +- .../src}/adresar/handlers/put_adresar.rs | 2 +- {src => server/src}/adresar/mod.rs | 0 {src => server/src}/adresar/models.rs | 0 {src => server/src}/db.rs | 0 {src => server/src}/lib.rs | 2 - {src => server/src}/main.rs | 3 +- {src => server/src}/server/handlers.rs | 0 {src => server/src}/server/mod.rs | 0 {src => server/src}/server/run.rs | 8 +- .../src}/server/services/adresar_service.rs | 4 +- {src => server/src}/server/services/mod.rs | 0 .../services/table_structure_service.rs | 9 +- .../server/services/uctovnictvo_service.rs | 4 +- {src => server/src}/shared/date_utils.rs | 0 {src => server/src}/shared/mod.rs | 0 .../src}/table_structure/docs/response.txt | 0 .../src}/table_structure/handlers.rs | 0 .../handlers/table_structure.rs | 2 +- {src => server/src}/table_structure/mod.rs | 0 .../src}/uctovnictvo/docs/example.txt | 0 .../src}/uctovnictvo/docs/get_examples.txt | 0 {src => server/src}/uctovnictvo/handlers.rs | 0 .../uctovnictvo/handlers/get_uctovnictvo.rs | 2 +- .../handlers/get_uctovnictvo_by_position.rs | 6 +- .../handlers/get_uctovnictvo_count.rs | 2 +- .../uctovnictvo/handlers/post_uctovnictvo.rs | 2 +- .../uctovnictvo/handlers/put_uctovnictvo.rs | 2 +- {src => server/src}/uctovnictvo/mod.rs | 0 {src => server/src}/uctovnictvo/models.rs | 0 src/common/mod.rs | 0 src/proto/descriptor.bin | Bin 10697 -> 0 bytes src/proto/mod.rs | 22 - 83 files changed, 3578 insertions(+), 152 deletions(-) create mode 100644 README.md create mode 100644 client/Cargo.toml rename config.toml => client/config.toml (100%) rename {src/client => client/src}/colors.rs (100%) rename {src/client => client/src}/components1/handlers.rs (100%) rename {src/client => client/src}/components1/handlers/command_line.rs (100%) rename {src/client => client/src}/components1/handlers/form.rs (100%) rename {src/client => client/src}/components1/handlers/preview_card.rs (100%) rename {src/client => client/src}/components1/handlers/status_line.rs (100%) rename {src/client => client/src}/components1/mod.rs (100%) rename {src/client => client/src}/components1/models.rs (100%) rename {src/client => client/src}/config.rs (100%) create mode 100644 client/src/main.rs rename {src/client => client/src}/mod.rs (100%) rename {src/client => client/src}/terminal.rs (91%) rename {src/client => client/src}/ui/handlers.rs (100%) rename {src/client => client/src}/ui/handlers/event.rs (99%) rename {src/client => client/src}/ui/handlers/form.rs (100%) rename {src/client => client/src}/ui/handlers/render.rs (100%) rename {src/client => client/src}/ui/handlers/state.rs (100%) rename {src/client => client/src}/ui/handlers/ui.rs (100%) rename {src/client => client/src}/ui/mod.rs (100%) rename {src/client => client/src}/ui/models.rs (100%) create mode 100644 common/Cargo.toml rename build.rs => common/build.rs (81%) rename {proto => common/proto}/adresar.proto (100%) rename {proto => common/proto}/common.proto (100%) rename {proto => common/proto}/table_structure.proto (100%) rename {proto => common/proto}/uctovnictvo.proto (100%) create mode 100644 common/src/lib.rs create mode 100644 server/Cargo.lock create mode 100644 server/Cargo.toml rename {docs => server/docs}/1.jpg (100%) rename {docs => server/docs}/2.jpg (100%) rename {docs => server/docs}/3.jpg (100%) rename {docs => server/docs}/4.jpg (100%) rename {docs => server/docs}/5.jpg (100%) rename {docs => server/docs}/6.jpg (100%) rename {docs => server/docs}/sqlx_migration.txt (100%) rename {migrations => server/migrations}/20250216175313_create_adresar_table.sql (100%) rename {migrations => server/migrations}/20250221164942_create_uctovnictvo_table.sql (100%) rename {src => server/src}/adresar/docs/example.txt (100%) rename {src => server/src}/adresar/docs/get_example.txt (100%) rename {src => server/src}/adresar/handlers.rs (100%) rename {src => server/src}/adresar/handlers/delete_adresar.rs (86%) rename {src => server/src}/adresar/handlers/get_adresar.rs (95%) rename {src => server/src}/adresar/handlers/get_adresar_by_position.rs (87%) rename {src => server/src}/adresar/handlers/get_adresar_count.rs (88%) rename {src => server/src}/adresar/handlers/post_adresar.rs (96%) rename {src => server/src}/adresar/handlers/put_adresar.rs (96%) rename {src => server/src}/adresar/mod.rs (100%) rename {src => server/src}/adresar/models.rs (100%) rename {src => server/src}/db.rs (100%) rename {src => server/src}/lib.rs (79%) rename {src => server/src}/main.rs (84%) rename {src => server/src}/server/handlers.rs (100%) rename {src => server/src}/server/mod.rs (100%) rename {src => server/src}/server/run.rs (73%) rename {src => server/src}/server/services/adresar_service.rs (94%) rename {src => server/src}/server/services/mod.rs (100%) rename {src => server/src}/server/services/table_structure_service.rs (75%) rename {src => server/src}/server/services/uctovnictvo_service.rs (93%) rename {src => server/src}/shared/date_utils.rs (100%) rename {src => server/src}/shared/mod.rs (100%) rename {src => server/src}/table_structure/docs/response.txt (100%) rename {src => server/src}/table_structure/handlers.rs (100%) rename {src => server/src}/table_structure/handlers/table_structure.rs (99%) rename {src => server/src}/table_structure/mod.rs (100%) rename {src => server/src}/uctovnictvo/docs/example.txt (100%) rename {src => server/src}/uctovnictvo/docs/get_examples.txt (100%) rename {src => server/src}/uctovnictvo/handlers.rs (100%) rename {src => server/src}/uctovnictvo/handlers/get_uctovnictvo.rs (94%) rename {src => server/src}/uctovnictvo/handlers/get_uctovnictvo_by_position.rs (77%) rename {src => server/src}/uctovnictvo/handlers/get_uctovnictvo_count.rs (89%) rename {src => server/src}/uctovnictvo/handlers/post_uctovnictvo.rs (96%) rename {src => server/src}/uctovnictvo/handlers/put_uctovnictvo.rs (96%) rename {src => server/src}/uctovnictvo/mod.rs (100%) rename {src => server/src}/uctovnictvo/models.rs (100%) delete mode 100644 src/common/mod.rs delete mode 100644 src/proto/descriptor.bin delete mode 100644 src/proto/mod.rs diff --git a/Cargo.lock b/Cargo.lock index 36ded09..fcfb27c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -99,9 +99,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.95" +version = "1.0.96" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" +checksum = "6b964d184e89d9b6b67dd2715bc8e74cf3107fb2b529990c90cf517326150bf4" [[package]] name = "async-stream" @@ -284,9 +284,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.14" +version = "1.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c3d1b2e905a3a7b00a6141adb0e4c0bb941d11caf55349d863942a1cc44e3c9" +checksum = "c736e259eea577f443d5c86c304f9f4ae0295c43f3ba05c21f1d66b5f06001af" dependencies = [ "shlex", ] @@ -314,9 +314,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.29" +version = "4.5.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8acebd8ad879283633b343856142139f2da2317c96b05b4dd6181c61e2480184" +checksum = "92b7b18d71fad5313a1e320fa9897994228ce274b60faa4d694fe0ea89cd9e6d" dependencies = [ "clap_builder", "clap_derive", @@ -324,9 +324,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.29" +version = "4.5.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6ba32cbda51c7e1dfd49acc1457ba1a7dec5b64fe360e828acb13ca8dc9c2f9" +checksum = "a35db2071778a7344791a4fb4f95308b5673d219dee3ae348b86642574ecc90c" dependencies = [ "anstream", "anstyle", @@ -352,12 +352,50 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" +[[package]] +name = "client" +version = "0.1.0" +dependencies = [ + "chrono", + "clap", + "common", + "console", + "crossterm", + "dialoguer", + "dirs", + "dotenvy", + "prost", + "ratatui", + "serde", + "serde_json", + "serde_with", + "sqlx", + "tokio", + "toml", + "tonic", + "tonic-build", + "tonic-reflection", + "tracing", + "tracing-subscriber", +] + [[package]] name = "colorchoice" version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" +[[package]] +name = "common" +version = "0.1.0" +dependencies = [ + "chrono", + "prost", + "serde", + "tonic", + "tonic-build", +] + [[package]] name = "compact_str" version = "0.8.1" @@ -626,9 +664,9 @@ checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" [[package]] name = "equivalent" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" [[package]] name = "errno" @@ -834,9 +872,9 @@ checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "h2" -version = "0.4.7" +version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e" +checksum = "5017294ff4bb30944501348f6f8e42e6ad28f42c8bbef7a74029aff064a4e3c2" dependencies = [ "atomic-waker", "bytes", @@ -1329,9 +1367,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.25" +version = "0.4.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f" +checksum = "30bde2b3dc3671ae49d8e2e9f044c7c005836e7a023ee57cffa25ab82764bb9e" [[package]] name = "lru" @@ -1372,9 +1410,9 @@ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "miniz_oxide" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3b1c9bd4fe1f0f8b387f6eb9eb3b4a1aa26185e5750efb9140301703f62cd1b" +checksum = "8e3e04debbb59698c15bacbb6d93584a8c0ca9cc3213cb423d31f760d8843ce5" dependencies = [ "adler2", ] @@ -1391,32 +1429,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "multieko2" -version = "0.1.0" -dependencies = [ - "chrono", - "clap", - "console", - "crossterm", - "dialoguer", - "dirs", - "dotenvy", - "prost", - "ratatui", - "serde", - "serde_json", - "serde_with", - "sqlx", - "tokio", - "toml", - "tonic", - "tonic-build", - "tonic-reflection", - "tracing", - "tracing-subscriber", -] - [[package]] name = "multimap" version = "0.10.0" @@ -1425,9 +1437,9 @@ checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03" [[package]] name = "native-tls" -version = "0.2.13" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dab59f8e050d5df8e4dd87d9206fb6f65a483e20ac9fda365ade4fab353196c" +checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e" dependencies = [ "libc", "log", @@ -1841,9 +1853,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.8" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" +checksum = "82b568323e98e49e2a0899dcee453dd679fae22d69adf9b11dd508d1549b7e2f" dependencies = [ "bitflags", ] @@ -1979,18 +1991,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.217" +version = "1.0.218" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" +checksum = "e8dfc9d19bdbf6d17e22319da49161d5d0108e4188e8b680aef6299eed22df60" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.217" +version = "1.0.218" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" +checksum = "f09503e191f4e797cb8aac08e9a4a4695c5edf6a2e70e376d961ddd5c969f82b" dependencies = [ "proc-macro2", "quote", @@ -1999,9 +2011,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.138" +version = "1.0.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d434192e7da787e94a6ea7e9670b26a036d0ca41e0b7efb2676dd32bae872949" +checksum = "44f86c3acccc9c65b153fe1b85a3be07fe5515274ec9f0653b4a0875731c72a6" dependencies = [ "itoa", "memchr", @@ -2060,6 +2072,33 @@ dependencies = [ "syn", ] +[[package]] +name = "server" +version = "0.1.0" +dependencies = [ + "chrono", + "clap", + "common", + "console", + "crossterm", + "dialoguer", + "dirs", + "dotenvy", + "prost", + "ratatui", + "serde", + "serde_json", + "serde_with", + "sqlx", + "tokio", + "toml", + "tonic", + "tonic-build", + "tonic-reflection", + "tracing", + "tracing-subscriber", +] + [[package]] name = "sha1" version = "0.10.6" @@ -2154,9 +2193,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.13.2" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" +checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd" dependencies = [ "serde", ] @@ -2473,9 +2512,9 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.16.0" +version = "3.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38c246215d7d24f48ae091a2902398798e05d978b24315d6efbc00ede9a8bb91" +checksum = "22e5a0acb1f3f55f65cc4a866c361b2fb2a0ff6366785ae6fbb5f85df07ba230" dependencies = [ "cfg-if", "fastrand", @@ -2847,9 +2886,9 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "typenum" -version = "1.17.0" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" +checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f" [[package]] name = "unicode-bidi" @@ -2859,9 +2898,9 @@ checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" [[package]] name = "unicode-ident" -version = "1.0.16" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a210d160f08b701c8721ba1c726c11662f877ea6b7094007e1ca9a1041945034" +checksum = "00e2473a93778eb0bad35909dff6a10d28e63f792f16ed15e404fca9d5eeedbe" [[package]] name = "unicode-normalization" @@ -3233,9 +3272,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59690dea168f2198d1a3b0cac23b8063efcd11012f10ae4698f284808c8ef603" +checksum = "0e7f4ea97f6f78012141bcdb6a216b2609f0979ada50b20ca5b52dde2eac2bb1" dependencies = [ "memchr", ] diff --git a/Cargo.toml b/Cargo.toml index 34cb3c6..e0d85ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,29 +1,3 @@ -[package] -name = "multieko2" -version = "0.1.0" -edition = "2021" - -[dependencies] -chrono = { version = "0.4.39", features = ["serde"] } -clap = { version = "4.5.29", features = ["derive"] } -console = "0.15.10" -crossterm = "0.28.1" -dialoguer = "0.11.0" -dirs = "6.0.0" -dotenvy = "0.15.7" -prost = "0.13.5" -ratatui = "0.29.0" -serde = { version = "1.0.217", features = ["derive"] } -serde_json = "1.0.138" -serde_with = "3.12.0" -sqlx = { version = "0.8.3", features = ["chrono", "postgres", "runtime-tokio", "runtime-tokio-native-tls", "time"] } -tokio = { version = "1.43.0", features = ["full", "macros"] } -toml = "0.8.20" -tonic = "0.12.3" -tonic-build = "0.12.3" -tonic-reflection = "0.12.3" -tracing = "0.1.41" -tracing-subscriber = "0.3.19" - -[build-dependencies] -tonic-build = "0.12" +[workspace] +members = ["client", "server", "common"] +resolver = "2" diff --git a/README.md b/README.md new file mode 100644 index 0000000..31aba80 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Hey diff --git a/client/Cargo.toml b/client/Cargo.toml new file mode 100644 index 0000000..c5bc468 --- /dev/null +++ b/client/Cargo.toml @@ -0,0 +1,28 @@ +[package] +name = "client" +version = "0.1.0" +edition = "2021" + +[dependencies] +common = { path = "../common" } + +chrono = { version = "0.4.39", features = ["serde"] } +clap = { version = "4.5.29", features = ["derive"] } +console = "0.15.10" +crossterm = "0.28.1" +dialoguer = "0.11.0" +dirs = "6.0.0" +dotenvy = "0.15.7" +prost = "0.13.5" +ratatui = "0.29.0" +serde = { version = "1.0.217", features = ["derive"] } +serde_json = "1.0.138" +serde_with = "3.12.0" +sqlx = { version = "0.8.3", features = ["chrono", "postgres", "runtime-tokio", "runtime-tokio-native-tls", "time"] } +tokio = { version = "1.43.0", features = ["full", "macros"] } +toml = "0.8.20" +tonic = "0.12.3" +tonic-build = "0.12.3" +tonic-reflection = "0.12.3" +tracing = "0.1.41" +tracing-subscriber = "0.3.19" diff --git a/config.toml b/client/config.toml similarity index 100% rename from config.toml rename to client/config.toml diff --git a/src/client/colors.rs b/client/src/colors.rs similarity index 100% rename from src/client/colors.rs rename to client/src/colors.rs diff --git a/src/client/components1/handlers.rs b/client/src/components1/handlers.rs similarity index 100% rename from src/client/components1/handlers.rs rename to client/src/components1/handlers.rs diff --git a/src/client/components1/handlers/command_line.rs b/client/src/components1/handlers/command_line.rs similarity index 100% rename from src/client/components1/handlers/command_line.rs rename to client/src/components1/handlers/command_line.rs diff --git a/src/client/components1/handlers/form.rs b/client/src/components1/handlers/form.rs similarity index 100% rename from src/client/components1/handlers/form.rs rename to client/src/components1/handlers/form.rs diff --git a/src/client/components1/handlers/preview_card.rs b/client/src/components1/handlers/preview_card.rs similarity index 100% rename from src/client/components1/handlers/preview_card.rs rename to client/src/components1/handlers/preview_card.rs diff --git a/src/client/components1/handlers/status_line.rs b/client/src/components1/handlers/status_line.rs similarity index 100% rename from src/client/components1/handlers/status_line.rs rename to client/src/components1/handlers/status_line.rs diff --git a/src/client/components1/mod.rs b/client/src/components1/mod.rs similarity index 100% rename from src/client/components1/mod.rs rename to client/src/components1/mod.rs diff --git a/src/client/components1/models.rs b/client/src/components1/models.rs similarity index 100% rename from src/client/components1/models.rs rename to client/src/components1/models.rs diff --git a/src/client/config.rs b/client/src/config.rs similarity index 100% rename from src/client/config.rs rename to client/src/config.rs diff --git a/client/src/main.rs b/client/src/main.rs new file mode 100644 index 0000000..e55d2f5 --- /dev/null +++ b/client/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Client is running!"); +} diff --git a/src/client/mod.rs b/client/src/mod.rs similarity index 100% rename from src/client/mod.rs rename to client/src/mod.rs diff --git a/src/client/terminal.rs b/client/src/terminal.rs similarity index 91% rename from src/client/terminal.rs rename to client/src/terminal.rs index 92ed367..9cf09eb 100644 --- a/src/client/terminal.rs +++ b/client/src/terminal.rs @@ -10,11 +10,11 @@ use std::io::{self, stdout}; use tonic::transport::Channel; // Import the correct clients and proto messages from their respective modules -use crate::proto::multieko2::adresar::adresar_client::AdresarClient; -use crate::proto::multieko2::adresar::{AdresarResponse, PostAdresarRequest, PutAdresarRequest}; -use crate::proto::multieko2::common::{CountResponse, PositionRequest, Empty}; -use crate::proto::multieko2::table_structure::table_structure_service_client::TableStructureServiceClient; -use crate::proto::multieko2::table_structure::TableStructureResponse; +use common::proto::multieko2::adresar::adresar_client::AdresarClient; +use common::proto::multieko2::adresar::{AdresarResponse, PostAdresarRequest, PutAdresarRequest}; +use common::proto::multieko2::common::{CountResponse, PositionRequest, Empty}; +use common::proto::multieko2::table_structure::table_structure_service_client::TableStructureServiceClient; +use common::proto::multieko2::table_structure::TableStructureResponse; pub struct AppTerminal { terminal: Terminal>, diff --git a/src/client/ui/handlers.rs b/client/src/ui/handlers.rs similarity index 100% rename from src/client/ui/handlers.rs rename to client/src/ui/handlers.rs diff --git a/src/client/ui/handlers/event.rs b/client/src/ui/handlers/event.rs similarity index 99% rename from src/client/ui/handlers/event.rs rename to client/src/ui/handlers/event.rs index af8223e..fa8c336 100644 --- a/src/client/ui/handlers/event.rs +++ b/client/src/ui/handlers/event.rs @@ -4,7 +4,7 @@ use crossterm::event::{Event, KeyCode, KeyModifiers}; use crossterm::cursor::{SetCursorStyle}; use crate::client::terminal::AppTerminal; use crate::client::config::Config; -use crate::proto::multieko2::adresar::{PostAdresarRequest, PutAdresarRequest}; +use common::proto::multieko2::adresar::{PostAdresarRequest, PutAdresarRequest}; use super::form::FormState; pub struct EventHandler { diff --git a/src/client/ui/handlers/form.rs b/client/src/ui/handlers/form.rs similarity index 100% rename from src/client/ui/handlers/form.rs rename to client/src/ui/handlers/form.rs diff --git a/src/client/ui/handlers/render.rs b/client/src/ui/handlers/render.rs similarity index 100% rename from src/client/ui/handlers/render.rs rename to client/src/ui/handlers/render.rs diff --git a/src/client/ui/handlers/state.rs b/client/src/ui/handlers/state.rs similarity index 100% rename from src/client/ui/handlers/state.rs rename to client/src/ui/handlers/state.rs diff --git a/src/client/ui/handlers/ui.rs b/client/src/ui/handlers/ui.rs similarity index 100% rename from src/client/ui/handlers/ui.rs rename to client/src/ui/handlers/ui.rs diff --git a/src/client/ui/mod.rs b/client/src/ui/mod.rs similarity index 100% rename from src/client/ui/mod.rs rename to client/src/ui/mod.rs diff --git a/src/client/ui/models.rs b/client/src/ui/models.rs similarity index 100% rename from src/client/ui/models.rs rename to client/src/ui/models.rs diff --git a/common/Cargo.toml b/common/Cargo.toml new file mode 100644 index 0000000..3a1900c --- /dev/null +++ b/common/Cargo.toml @@ -0,0 +1,13 @@ +[package] +name = "common" +version = "0.1.0" +edition = "2021" + +[dependencies] +tonic = "0.12.3" +prost = "0.13.5" +serde = { version = "1.0.217", features = ["derive"] } +chrono = { version = "0.4.39", features = ["serde"] } + +[build-dependencies] +tonic-build = "0.12.3" diff --git a/build.rs b/common/build.rs similarity index 81% rename from build.rs rename to common/build.rs index 279bd55..36201cb 100644 --- a/build.rs +++ b/common/build.rs @@ -2,11 +2,12 @@ fn main() -> Result<(), Box> { tonic_build::configure() .build_server(true) + .out_dir("src/proto") .file_descriptor_set_path("src/proto/descriptor.bin") - .compile_protos( + .compile( &[ "proto/common.proto", - "proto/adresar.proto", + "proto/adresar.proto", "proto/uctovnictvo.proto", "proto/table_structure.proto" ], diff --git a/proto/adresar.proto b/common/proto/adresar.proto similarity index 100% rename from proto/adresar.proto rename to common/proto/adresar.proto diff --git a/proto/common.proto b/common/proto/common.proto similarity index 100% rename from proto/common.proto rename to common/proto/common.proto diff --git a/proto/table_structure.proto b/common/proto/table_structure.proto similarity index 100% rename from proto/table_structure.proto rename to common/proto/table_structure.proto diff --git a/proto/uctovnictvo.proto b/common/proto/uctovnictvo.proto similarity index 100% rename from proto/uctovnictvo.proto rename to common/proto/uctovnictvo.proto diff --git a/common/src/lib.rs b/common/src/lib.rs new file mode 100644 index 0000000..ad2a4a0 --- /dev/null +++ b/common/src/lib.rs @@ -0,0 +1,7 @@ +// common/src/lib.rs +pub mod proto { + include!("proto/multieko2.adresar.rs"); + include!("proto/multieko2.common.rs"); + include!("proto/multieko2.table_structure.rs"); + include!("proto/multieko2.uctovnictvo.rs"); +} diff --git a/server/Cargo.lock b/server/Cargo.lock new file mode 100644 index 0000000..36ded09 --- /dev/null +++ b/server/Cargo.lock @@ -0,0 +1,3356 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "addr2line" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" +dependencies = [ + "gimli", +] + +[[package]] +name = "adler2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" + +[[package]] +name = "aho-corasick" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" +dependencies = [ + "memchr", +] + +[[package]] +name = "allocator-api2" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" + +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anstream" +version = "0.6.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" + +[[package]] +name = "anstyle-parse" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" +dependencies = [ + "windows-sys 0.59.0", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e" +dependencies = [ + "anstyle", + "once_cell", + "windows-sys 0.59.0", +] + +[[package]] +name = "anyhow" +version = "1.0.95" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" + +[[package]] +name = "async-stream" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476" +dependencies = [ + "async-stream-impl", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-stream-impl" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "async-trait" +version = "0.1.86" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "644dd749086bf3771a2fbc5f256fdb982d53f011c7d5d560304eafeecebce79d" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "atoi" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f28d99ec8bfea296261ca1af174f24225171fea9664ba9003cbebee704810528" +dependencies = [ + "num-traits", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" + +[[package]] +name = "axum" +version = "0.7.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f" +dependencies = [ + "async-trait", + "axum-core", + "bytes", + "futures-util", + "http", + "http-body", + "http-body-util", + "itoa", + "matchit", + "memchr", + "mime", + "percent-encoding", + "pin-project-lite", + "rustversion", + "serde", + "sync_wrapper", + "tower 0.5.2", + "tower-layer", + "tower-service", +] + +[[package]] +name = "axum-core" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09f2bd6146b97ae3359fa0cc6d6b376d9539582c7b4220f041a33ec24c226199" +dependencies = [ + "async-trait", + "bytes", + "futures-util", + "http", + "http-body", + "http-body-util", + "mime", + "pin-project-lite", + "rustversion", + "sync_wrapper", + "tower-layer", + "tower-service", +] + +[[package]] +name = "backtrace" +version = "0.3.74" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" +dependencies = [ + "addr2line", + "cfg-if", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", + "windows-targets 0.52.6", +] + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "base64ct" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" + +[[package]] +name = "bitflags" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36" +dependencies = [ + "serde", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "bumpalo" +version = "3.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f61dac84819c6588b558454b194026eb1f09c293b9036ae9b159e74e73ab6cf9" + +[[package]] +name = "cassowary" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df8670b8c7b9dae1793364eafadf7239c40d669904660c5960d74cfd80b46a53" + +[[package]] +name = "castaway" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0abae9be0aaf9ea96a3b1b8b1b55c602ca751eba1b1500220cea4ecbafe7c0d5" +dependencies = [ + "rustversion", +] + +[[package]] +name = "cc" +version = "1.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c3d1b2e905a3a7b00a6141adb0e4c0bb941d11caf55349d863942a1cc44e3c9" +dependencies = [ + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "chrono" +version = "0.4.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" +dependencies = [ + "android-tzdata", + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-targets 0.52.6", +] + +[[package]] +name = "clap" +version = "4.5.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8acebd8ad879283633b343856142139f2da2317c96b05b4dd6181c61e2480184" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.5.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ba32cbda51c7e1dfd49acc1457ba1a7dec5b64fe360e828acb13ca8dc9c2f9" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.5.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf4ced95c6f4a675af3da73304b9ac4ed991640c36374e4b46795c49e17cf1ed" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "clap_lex" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" + +[[package]] +name = "colorchoice" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" + +[[package]] +name = "compact_str" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b79c4069c6cad78e2e0cdfcbd26275770669fb39fd308a752dc110e83b9af32" +dependencies = [ + "castaway", + "cfg-if", + "itoa", + "rustversion", + "ryu", + "static_assertions", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "console" +version = "0.15.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea3c6ecd8059b57859df5c69830340ed3c41d30e3da0c1cbed90a96ac853041b" +dependencies = [ + "encode_unicode", + "libc", + "once_cell", + "unicode-width 0.2.0", + "windows-sys 0.59.0", +] + +[[package]] +name = "const-oid" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc" +version = "3.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69e6e4d7b33a94f0991c26729976b10ebde1d34c3ee82408fb536164fa10d636" +dependencies = [ + "crc-catalog", +] + +[[package]] +name = "crc-catalog" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" + +[[package]] +name = "crossbeam-queue" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f58bbc28f91df819d0aa2a2c00cd19754769c2fad90579b3592b1c9ba7a3115" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crossterm" +version = "0.28.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6" +dependencies = [ + "bitflags", + "crossterm_winapi", + "mio", + "parking_lot", + "rustix", + "signal-hook", + "signal-hook-mio", + "winapi", +] + +[[package]] +name = "crossterm_winapi" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b" +dependencies = [ + "winapi", +] + +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "darling" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn", +] + +[[package]] +name = "darling_macro" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" +dependencies = [ + "darling_core", + "quote", + "syn", +] + +[[package]] +name = "der" +version = "0.7.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0" +dependencies = [ + "const-oid", + "pem-rfc7468", + "zeroize", +] + +[[package]] +name = "deranged" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" +dependencies = [ + "powerfmt", + "serde", +] + +[[package]] +name = "dialoguer" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "658bce805d770f407bc62102fca7c2c64ceef2fbcb2b8bd19d2765ce093980de" +dependencies = [ + "console", + "shell-words", + "tempfile", + "thiserror 1.0.69", + "zeroize", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "const-oid", + "crypto-common", + "subtle", +] + +[[package]] +name = "dirs" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.59.0", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "dotenvy" +version = "0.15.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" + +[[package]] +name = "either" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" +dependencies = [ + "serde", +] + +[[package]] +name = "encode_unicode" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" + +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + +[[package]] +name = "errno" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" +dependencies = [ + "libc", + "windows-sys 0.59.0", +] + +[[package]] +name = "etcetera" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "136d1b5283a1ab77bd9257427ffd09d8667ced0570b6f938942bc7568ed5b943" +dependencies = [ + "cfg-if", + "home", + "windows-sys 0.48.0", +] + +[[package]] +name = "event-listener" +version = "5.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3492acde4c3fc54c845eaab3eed8bd00c7a7d881f78bfc801e43a93dec1331ae" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" + +[[package]] +name = "fixedbitset" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" + +[[package]] +name = "flume" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da0e4dd2a88388a1f4ccc7c9ce104604dab68d9f408dc34cd45823d5a9069095" +dependencies = [ + "futures-core", + "futures-sink", + "spin", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0d2fde1f7b3d48b8395d5f2de76c18a528bd6a9cdde438df747bfcba3e05d6f" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "form_urlencoded" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" + +[[package]] +name = "futures-executor" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-intrusive" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d930c203dd0b6ff06e0201a4a2fe9149b43c684fd4420555b26d21b1a02956f" +dependencies = [ + "futures-core", + "lock_api", + "parking_lot", +] + +[[package]] +name = "futures-io" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" + +[[package]] +name = "futures-sink" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" + +[[package]] +name = "futures-task" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" + +[[package]] +name = "futures-util" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" +dependencies = [ + "futures-core", + "futures-io", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "slab", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", +] + +[[package]] +name = "getrandom" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.13.3+wasi-0.2.2", + "windows-targets 0.52.6", +] + +[[package]] +name = "gimli" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" + +[[package]] +name = "h2" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http", + "indexmap 2.7.1", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash", +] + +[[package]] +name = "hashlink" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7382cf6263419f2d8df38c55d7da83da5c18aef87fc7a7fc1fb1e344edfe14c1" +dependencies = [ + "hashbrown 0.15.2", +] + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hkdf" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" +dependencies = [ + "hmac", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest", +] + +[[package]] +name = "home" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf" +dependencies = [ + "windows-sys 0.59.0", +] + +[[package]] +name = "http" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" +dependencies = [ + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2d708df4e7140240a16cd6ab0ab65c972d7433ab77819ea693fde9c43811e2a" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "hyper" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "h2", + "http", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-timeout" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0" +dependencies = [ + "hyper", + "hyper-util", + "pin-project-lite", + "tokio", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.61" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "icu_collections" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locid" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locid_transform" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locid_transform_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" + +[[package]] +name = "icu_normalizer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652" +dependencies = [ + "equivalent", + "hashbrown 0.15.2", + "serde", +] + +[[package]] +name = "indoc" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" + +[[package]] +name = "instability" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf9fed6d91cfb734e7476a06bde8300a1b94e217e1b523b6f0cd1a01998c71d" +dependencies = [ + "darling", + "indoc", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" + +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" + +[[package]] +name = "js-sys" +version = "0.3.77" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" +dependencies = [ + "spin", +] + +[[package]] +name = "libc" +version = "0.2.169" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" + +[[package]] +name = "libm" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa" + +[[package]] +name = "libredox" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" +dependencies = [ + "bitflags", + "libc", +] + +[[package]] +name = "libsqlite3-sys" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e99fb7a497b1e3339bc746195567ed8d3e24945ecd636e3619d20b9de9e9149" +dependencies = [ + "pkg-config", + "vcpkg", +] + +[[package]] +name = "linux-raw-sys" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" + +[[package]] +name = "litemap" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" + +[[package]] +name = "lock_api" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" +dependencies = [ + "autocfg", + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f" + +[[package]] +name = "lru" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38" +dependencies = [ + "hashbrown 0.15.2", +] + +[[package]] +name = "matchit" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" + +[[package]] +name = "md-5" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" +dependencies = [ + "cfg-if", + "digest", +] + +[[package]] +name = "memchr" +version = "2.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "miniz_oxide" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3b1c9bd4fe1f0f8b387f6eb9eb3b4a1aa26185e5750efb9140301703f62cd1b" +dependencies = [ + "adler2", +] + +[[package]] +name = "mio" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" +dependencies = [ + "libc", + "log", + "wasi 0.11.0+wasi-snapshot-preview1", + "windows-sys 0.52.0", +] + +[[package]] +name = "multieko2" +version = "0.1.0" +dependencies = [ + "chrono", + "clap", + "console", + "crossterm", + "dialoguer", + "dirs", + "dotenvy", + "prost", + "ratatui", + "serde", + "serde_json", + "serde_with", + "sqlx", + "tokio", + "toml", + "tonic", + "tonic-build", + "tonic-reflection", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "multimap" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03" + +[[package]] +name = "native-tls" +version = "0.2.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dab59f8e050d5df8e4dd87d9206fb6f65a483e20ac9fda365ade4fab353196c" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + +[[package]] +name = "nu-ansi-term" +version = "0.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" +dependencies = [ + "overload", + "winapi", +] + +[[package]] +name = "num-bigint-dig" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc84195820f291c7697304f3cbdadd1cb7199c0efc917ff5eafd71225c136151" +dependencies = [ + "byteorder", + "lazy_static", + "libm", + "num-integer", + "num-iter", + "num-traits", + "rand", + "smallvec", + "zeroize", +] + +[[package]] +name = "num-conv" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-iter" +version = "0.1.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "object" +version = "0.36.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" +dependencies = [ + "memchr", +] + +[[package]] +name = "once_cell" +version = "1.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e" + +[[package]] +name = "openssl" +version = "0.10.71" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e14130c6a98cd258fdcb0fb6d744152343ff729cbfcb28c656a9d12b999fbcd" +dependencies = [ + "bitflags", + "cfg-if", + "foreign-types", + "libc", + "once_cell", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "openssl-probe" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" + +[[package]] +name = "openssl-sys" +version = "0.9.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8bb61ea9811cc39e3c2069f40b8b8e2e70d8569b361f879786cc7ed48b777cdd" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "overload" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-targets 0.52.6", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pem-rfc7468" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412" +dependencies = [ + "base64ct", +] + +[[package]] +name = "percent-encoding" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" + +[[package]] +name = "petgraph" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3672b37090dbd86368a4145bc067582552b29c27377cad4e0a306c97f9bd7772" +dependencies = [ + "fixedbitset", + "indexmap 2.7.1", +] + +[[package]] +name = "pin-project" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfe2e71e1471fe07709406bf725f710b02927c9c54b2b5b2ec0e8087d97c327d" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6e859e6e5bd50440ab63c47e3ebabc90f26251f7c73c3d3e837b74a1cc3fa67" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "pkcs1" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f" +dependencies = [ + "der", + "pkcs8", + "spki", +] + +[[package]] +name = "pkcs8" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der", + "spki", +] + +[[package]] +name = "pkg-config" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "prettyplease" +version = "0.2.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6924ced06e1f7dfe3fa48d57b9f74f55d8915f5036121bef647ef4b204895fac" +dependencies = [ + "proc-macro2", + "syn", +] + +[[package]] +name = "proc-macro2" +version = "1.0.93" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "prost" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2796faa41db3ec313a31f7624d9286acf277b52de526150b7e69f3debf891ee5" +dependencies = [ + "bytes", + "prost-derive", +] + +[[package]] +name = "prost-build" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be769465445e8c1474e9c5dac2018218498557af32d9ed057325ec9a41ae81bf" +dependencies = [ + "heck", + "itertools 0.14.0", + "log", + "multimap", + "once_cell", + "petgraph", + "prettyplease", + "prost", + "prost-types", + "regex", + "syn", + "tempfile", +] + +[[package]] +name = "prost-derive" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a56d757972c98b346a9b766e3f02746cde6dd1cd1d1d563472929fdd74bec4d" +dependencies = [ + "anyhow", + "itertools 0.14.0", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "prost-types" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52c2c1bf36ddb1a1c396b3601a3cec27c2462e45f07c386894ec3ccf5332bd16" +dependencies = [ + "prost", +] + +[[package]] +name = "quote" +version = "1.0.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.15", +] + +[[package]] +name = "ratatui" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eabd94c2f37801c20583fc49dd5cd6b0ba68c716787c2dd6ed18571e1e63117b" +dependencies = [ + "bitflags", + "cassowary", + "compact_str", + "crossterm", + "indoc", + "instability", + "itertools 0.13.0", + "lru", + "paste", + "strum", + "unicode-segmentation", + "unicode-truncate", + "unicode-width 0.2.0", +] + +[[package]] +name = "redox_syscall" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" +dependencies = [ + "bitflags", +] + +[[package]] +name = "redox_users" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd6f9d3d47bdd2ad6945c5015a226ec6155d0bcdfd8f7cd29f86b71f8de99d2b" +dependencies = [ + "getrandom 0.2.15", + "libredox", + "thiserror 2.0.11", +] + +[[package]] +name = "regex" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" + +[[package]] +name = "rsa" +version = "0.9.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47c75d7c5c6b673e58bf54d8544a9f432e3a925b0e80f7cd3602ab5c50c55519" +dependencies = [ + "const-oid", + "digest", + "num-bigint-dig", + "num-integer", + "num-traits", + "pkcs1", + "pkcs8", + "rand_core", + "signature", + "spki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustc-demangle" +version = "0.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" + +[[package]] +name = "rustix" +version = "0.38.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.59.0", +] + +[[package]] +name = "rustversion" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" + +[[package]] +name = "ryu" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea1a2d0a644769cc99faa24c3ad26b379b786fe7c36fd3c546254801650e6dd" + +[[package]] +name = "schannel" +version = "0.1.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" +dependencies = [ + "windows-sys 0.59.0", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "security-framework" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" +dependencies = [ + "bitflags", + "core-foundation", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "serde" +version = "1.0.217" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.217" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.138" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d434192e7da787e94a6ea7e9670b26a036d0ca41e0b7efb2676dd32bae872949" +dependencies = [ + "itoa", + "memchr", + "ryu", + "serde", +] + +[[package]] +name = "serde_spanned" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "serde_with" +version = "3.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6b6f7f2fcb69f747921f79f3926bd1e203fce4fef62c268dd3abfb6d86029aa" +dependencies = [ + "base64", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.7.1", + "serde", + "serde_derive", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d00caa5193a3c8362ac2b73be6b9e768aa5a4b2f721d8f4b339600c3cb51f8e" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "sha1" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "sha2" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "shell-words" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde" + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signal-hook" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801" +dependencies = [ + "libc", + "signal-hook-registry", +] + +[[package]] +name = "signal-hook-mio" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34db1a06d485c9142248b7a054f034b349b212551f3dfd19c94d45a754a217cd" +dependencies = [ + "libc", + "mio", + "signal-hook", +] + +[[package]] +name = "signal-hook-registry" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" +dependencies = [ + "libc", +] + +[[package]] +name = "signature" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" +dependencies = [ + "digest", + "rand_core", +] + +[[package]] +name = "slab" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" +dependencies = [ + "autocfg", +] + +[[package]] +name = "smallvec" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" +dependencies = [ + "serde", +] + +[[package]] +name = "socket2" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "spin" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" +dependencies = [ + "lock_api", +] + +[[package]] +name = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der", +] + +[[package]] +name = "sqlx" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4410e73b3c0d8442c5f99b425d7a435b5ee0ae4167b3196771dd3f7a01be745f" +dependencies = [ + "sqlx-core", + "sqlx-macros", + "sqlx-mysql", + "sqlx-postgres", + "sqlx-sqlite", +] + +[[package]] +name = "sqlx-core" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a007b6936676aa9ab40207cde35daab0a04b823be8ae004368c0793b96a61e0" +dependencies = [ + "bytes", + "chrono", + "crc", + "crossbeam-queue", + "either", + "event-listener", + "futures-core", + "futures-intrusive", + "futures-io", + "futures-util", + "hashbrown 0.15.2", + "hashlink", + "indexmap 2.7.1", + "log", + "memchr", + "native-tls", + "once_cell", + "percent-encoding", + "serde", + "serde_json", + "sha2", + "smallvec", + "thiserror 2.0.11", + "time", + "tokio", + "tokio-stream", + "tracing", + "url", +] + +[[package]] +name = "sqlx-macros" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3112e2ad78643fef903618d78cf0aec1cb3134b019730edb039b69eaf531f310" +dependencies = [ + "proc-macro2", + "quote", + "sqlx-core", + "sqlx-macros-core", + "syn", +] + +[[package]] +name = "sqlx-macros-core" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e9f90acc5ab146a99bf5061a7eb4976b573f560bc898ef3bf8435448dd5e7ad" +dependencies = [ + "dotenvy", + "either", + "heck", + "hex", + "once_cell", + "proc-macro2", + "quote", + "serde", + "serde_json", + "sha2", + "sqlx-core", + "sqlx-mysql", + "sqlx-postgres", + "sqlx-sqlite", + "syn", + "tempfile", + "tokio", + "url", +] + +[[package]] +name = "sqlx-mysql" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4560278f0e00ce64938540546f59f590d60beee33fffbd3b9cd47851e5fff233" +dependencies = [ + "atoi", + "base64", + "bitflags", + "byteorder", + "bytes", + "chrono", + "crc", + "digest", + "dotenvy", + "either", + "futures-channel", + "futures-core", + "futures-io", + "futures-util", + "generic-array", + "hex", + "hkdf", + "hmac", + "itoa", + "log", + "md-5", + "memchr", + "once_cell", + "percent-encoding", + "rand", + "rsa", + "serde", + "sha1", + "sha2", + "smallvec", + "sqlx-core", + "stringprep", + "thiserror 2.0.11", + "time", + "tracing", + "whoami", +] + +[[package]] +name = "sqlx-postgres" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5b98a57f363ed6764d5b3a12bfedf62f07aa16e1856a7ddc2a0bb190a959613" +dependencies = [ + "atoi", + "base64", + "bitflags", + "byteorder", + "chrono", + "crc", + "dotenvy", + "etcetera", + "futures-channel", + "futures-core", + "futures-util", + "hex", + "hkdf", + "hmac", + "home", + "itoa", + "log", + "md-5", + "memchr", + "once_cell", + "rand", + "serde", + "serde_json", + "sha2", + "smallvec", + "sqlx-core", + "stringprep", + "thiserror 2.0.11", + "time", + "tracing", + "whoami", +] + +[[package]] +name = "sqlx-sqlite" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f85ca71d3a5b24e64e1d08dd8fe36c6c95c339a896cc33068148906784620540" +dependencies = [ + "atoi", + "chrono", + "flume", + "futures-channel", + "futures-core", + "futures-executor", + "futures-intrusive", + "futures-util", + "libsqlite3-sys", + "log", + "percent-encoding", + "serde", + "serde_urlencoded", + "sqlx-core", + "time", + "tracing", + "url", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "stringprep" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b4df3d392d81bd458a8a621b8bffbd2302a12ffe288a9d931670948749463b1" +dependencies = [ + "unicode-bidi", + "unicode-normalization", + "unicode-properties", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "strum" +version = "0.26.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "rustversion", + "syn", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "2.0.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" + +[[package]] +name = "synstructure" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tempfile" +version = "3.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c246215d7d24f48ae091a2902398798e05d978b24315d6efbc00ede9a8bb91" +dependencies = [ + "cfg-if", + "fastrand", + "getrandom 0.3.1", + "once_cell", + "rustix", + "windows-sys 0.59.0", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d452f284b73e6d76dd36758a0c8684b1d5be31f92b89d07fd5822175732206fc" +dependencies = [ + "thiserror-impl 2.0.11", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26afc1baea8a989337eeb52b6e72a039780ce45c3edfcc9c5b9d112feeb173c2" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thread_local" +version = "1.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" +dependencies = [ + "cfg-if", + "once_cell", +] + +[[package]] +name = "time" +version = "0.3.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35e7868883861bd0e56d9ac6efcaaca0d6d5d82a2a7ec8209ff492c07cf37b21" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" + +[[package]] +name = "time-macros" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2834e6017e3e5e4b9834939793b282bc03b37a3336245fa820e35e233e2a85de" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.43.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d61fa4ffa3de412bfea335c6ecff681de2b609ba3c77ef3e00e521813a9ed9e" +dependencies = [ + "backtrace", + "bytes", + "libc", + "mio", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys 0.52.0", +] + +[[package]] +name = "tokio-macros" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tokio-stream" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tokio-util" +version = "0.7.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7fcaa8d55a2bdd6b83ace262b016eca0d79ee02818c5c1bcdf0305114081078" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.8.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd87a5cdd6ffab733b2f74bc4fd7ee5fff6634124999ac278c35fc78c6120148" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit", +] + +[[package]] +name = "toml_datetime" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_edit" +version = "0.22.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17b4795ff5edd201c7cd6dca065ae59972ce77d1b80fa0a84d94950ece7d1474" +dependencies = [ + "indexmap 2.7.1", + "serde", + "serde_spanned", + "toml_datetime", + "winnow", +] + +[[package]] +name = "tonic" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877c5b330756d856ffcc4553ab34a5684481ade925ecc54bcd1bf02b1d0d4d52" +dependencies = [ + "async-stream", + "async-trait", + "axum", + "base64", + "bytes", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-timeout", + "hyper-util", + "percent-encoding", + "pin-project", + "prost", + "socket2", + "tokio", + "tokio-stream", + "tower 0.4.13", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tonic-build" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9557ce109ea773b399c9b9e5dca39294110b74f1f342cb347a80d1fce8c26a11" +dependencies = [ + "prettyplease", + "proc-macro2", + "prost-build", + "prost-types", + "quote", + "syn", +] + +[[package]] +name = "tonic-reflection" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "878d81f52e7fcfd80026b7fdb6a9b578b3c3653ba987f87f0dce4b64043cba27" +dependencies = [ + "prost", + "prost-types", + "tokio", + "tokio-stream", + "tonic", +] + +[[package]] +name = "tower" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" +dependencies = [ + "futures-core", + "futures-util", + "indexmap 1.9.3", + "pin-project", + "pin-project-lite", + "rand", + "slab", + "tokio", + "tokio-util", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.41" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tracing-core" +version = "0.1.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" +dependencies = [ + "nu-ansi-term", + "sharded-slab", + "smallvec", + "thread_local", + "tracing-core", + "tracing-log", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "typenum" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" + +[[package]] +name = "unicode-bidi" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" + +[[package]] +name = "unicode-ident" +version = "1.0.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a210d160f08b701c8721ba1c726c11662f877ea6b7094007e1ca9a1041945034" + +[[package]] +name = "unicode-normalization" +version = "0.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-properties" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e70f2a8b45122e719eb623c01822704c4e0907e7e426a05927e1a1cfff5b75d0" + +[[package]] +name = "unicode-segmentation" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" + +[[package]] +name = "unicode-truncate" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3644627a5af5fa321c95b9b235a72fd24cd29c648c2c379431e6628655627bf" +dependencies = [ + "itertools 0.13.0", + "unicode-segmentation", + "unicode-width 0.1.14", +] + +[[package]] +name = "unicode-width" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" + +[[package]] +name = "unicode-width" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" + +[[package]] +name = "url" +version = "2.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", +] + +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + +[[package]] +name = "wasi" +version = "0.13.3+wasi-0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2" +dependencies = [ + "wit-bindgen-rt", +] + +[[package]] +name = "wasite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8dad83b4f25e74f184f64c43b150b91efe7647395b42289f38e50566d82855b" + +[[package]] +name = "wasm-bindgen" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", +] + +[[package]] +name = "wasm-bindgen-backend" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" +dependencies = [ + "bumpalo", + "log", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "whoami" +version = "1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "372d5b87f58ec45c384ba03563b03544dc5fadc3983e434b286913f5b4a9bb6d" +dependencies = [ + "redox_syscall", + "wasite", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows-core" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59690dea168f2198d1a3b0cac23b8063efcd11012f10ae4698f284808c8ef603" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen-rt" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c" +dependencies = [ + "bitflags", +] + +[[package]] +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" + +[[package]] +name = "yoke" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" +dependencies = [ + "byteorder", + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zerofrom" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" + +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] diff --git a/server/Cargo.toml b/server/Cargo.toml new file mode 100644 index 0000000..4ba4db0 --- /dev/null +++ b/server/Cargo.toml @@ -0,0 +1,28 @@ +[package] +name = "server" +version = "0.1.0" +edition = "2021" + +[dependencies] +common = { path = "../common" } + +chrono = { version = "0.4.39", features = ["serde"] } +clap = { version = "4.5.29", features = ["derive"] } +console = "0.15.10" +crossterm = "0.28.1" +dialoguer = "0.11.0" +dirs = "6.0.0" +dotenvy = "0.15.7" +prost = "0.13.5" +ratatui = "0.29.0" +serde = { version = "1.0.217", features = ["derive"] } +serde_json = "1.0.138" +serde_with = "3.12.0" +sqlx = { version = "0.8.3", features = ["chrono", "postgres", "runtime-tokio", "runtime-tokio-native-tls", "time"] } +tokio = { version = "1.43.0", features = ["full", "macros"] } +toml = "0.8.20" +tonic = "0.12.3" +tonic-build = "0.12.3" +tonic-reflection = "0.12.3" +tracing = "0.1.41" +tracing-subscriber = "0.3.19" diff --git a/docs/1.jpg b/server/docs/1.jpg similarity index 100% rename from docs/1.jpg rename to server/docs/1.jpg diff --git a/docs/2.jpg b/server/docs/2.jpg similarity index 100% rename from docs/2.jpg rename to server/docs/2.jpg diff --git a/docs/3.jpg b/server/docs/3.jpg similarity index 100% rename from docs/3.jpg rename to server/docs/3.jpg diff --git a/docs/4.jpg b/server/docs/4.jpg similarity index 100% rename from docs/4.jpg rename to server/docs/4.jpg diff --git a/docs/5.jpg b/server/docs/5.jpg similarity index 100% rename from docs/5.jpg rename to server/docs/5.jpg diff --git a/docs/6.jpg b/server/docs/6.jpg similarity index 100% rename from docs/6.jpg rename to server/docs/6.jpg diff --git a/docs/sqlx_migration.txt b/server/docs/sqlx_migration.txt similarity index 100% rename from docs/sqlx_migration.txt rename to server/docs/sqlx_migration.txt diff --git a/migrations/20250216175313_create_adresar_table.sql b/server/migrations/20250216175313_create_adresar_table.sql similarity index 100% rename from migrations/20250216175313_create_adresar_table.sql rename to server/migrations/20250216175313_create_adresar_table.sql diff --git a/migrations/20250221164942_create_uctovnictvo_table.sql b/server/migrations/20250221164942_create_uctovnictvo_table.sql similarity index 100% rename from migrations/20250221164942_create_uctovnictvo_table.sql rename to server/migrations/20250221164942_create_uctovnictvo_table.sql diff --git a/src/adresar/docs/example.txt b/server/src/adresar/docs/example.txt similarity index 100% rename from src/adresar/docs/example.txt rename to server/src/adresar/docs/example.txt diff --git a/src/adresar/docs/get_example.txt b/server/src/adresar/docs/get_example.txt similarity index 100% rename from src/adresar/docs/get_example.txt rename to server/src/adresar/docs/get_example.txt diff --git a/src/adresar/handlers.rs b/server/src/adresar/handlers.rs similarity index 100% rename from src/adresar/handlers.rs rename to server/src/adresar/handlers.rs diff --git a/src/adresar/handlers/delete_adresar.rs b/server/src/adresar/handlers/delete_adresar.rs similarity index 86% rename from src/adresar/handlers/delete_adresar.rs rename to server/src/adresar/handlers/delete_adresar.rs index fc7b616..7eeeaad 100644 --- a/src/adresar/handlers/delete_adresar.rs +++ b/server/src/adresar/handlers/delete_adresar.rs @@ -1,7 +1,7 @@ // src/adresar/handlers/delete_adresar.rs use tonic::Status; use sqlx::PgPool; -use crate::proto::multieko2::adresar::{DeleteAdresarRequest, DeleteAdresarResponse}; +use common::proto::multieko2::adresar::{DeleteAdresarRequest, DeleteAdresarResponse}; pub async fn delete_adresar( db_pool: &PgPool, diff --git a/src/adresar/handlers/get_adresar.rs b/server/src/adresar/handlers/get_adresar.rs similarity index 95% rename from src/adresar/handlers/get_adresar.rs rename to server/src/adresar/handlers/get_adresar.rs index 13e1996..ed9bddd 100644 --- a/src/adresar/handlers/get_adresar.rs +++ b/server/src/adresar/handlers/get_adresar.rs @@ -2,7 +2,7 @@ use tonic::Status; use sqlx::PgPool; use crate::adresar::models::Adresar; -use crate::proto::multieko2::adresar::{GetAdresarRequest, AdresarResponse}; +use common::proto::multieko2::adresar::{GetAdresarRequest, AdresarResponse}; pub async fn get_adresar( db_pool: &PgPool, diff --git a/src/adresar/handlers/get_adresar_by_position.rs b/server/src/adresar/handlers/get_adresar_by_position.rs similarity index 87% rename from src/adresar/handlers/get_adresar_by_position.rs rename to server/src/adresar/handlers/get_adresar_by_position.rs index 5545566..1ee8b28 100644 --- a/src/adresar/handlers/get_adresar_by_position.rs +++ b/server/src/adresar/handlers/get_adresar_by_position.rs @@ -1,8 +1,8 @@ // src/adresar/handlers/get_adresar_by_position.rs use tonic::{Status}; use sqlx::PgPool; -use crate::proto::multieko2::adresar::{AdresarResponse, GetAdresarRequest}; -use crate::proto::multieko2::common::PositionRequest; +use common::proto::multieko2::adresar::{AdresarResponse, GetAdresarRequest}; +use common::proto::multieko2::common::PositionRequest; use super::get_adresar; pub async fn get_adresar_by_position( diff --git a/src/adresar/handlers/get_adresar_count.rs b/server/src/adresar/handlers/get_adresar_count.rs similarity index 88% rename from src/adresar/handlers/get_adresar_count.rs rename to server/src/adresar/handlers/get_adresar_count.rs index 14bace6..3ce0819 100644 --- a/src/adresar/handlers/get_adresar_count.rs +++ b/server/src/adresar/handlers/get_adresar_count.rs @@ -1,7 +1,7 @@ // src/adresar/handlers/get_adresar_count.rs use tonic::Status; use sqlx::PgPool; -use crate::proto::multieko2::common::{CountResponse, Empty}; +use common::proto::multieko2::common::{CountResponse, Empty}; pub async fn get_adresar_count( db_pool: &PgPool, diff --git a/src/adresar/handlers/post_adresar.rs b/server/src/adresar/handlers/post_adresar.rs similarity index 96% rename from src/adresar/handlers/post_adresar.rs rename to server/src/adresar/handlers/post_adresar.rs index cb5826b..4e1d92b 100644 --- a/src/adresar/handlers/post_adresar.rs +++ b/server/src/adresar/handlers/post_adresar.rs @@ -2,7 +2,7 @@ use tonic::Status; use sqlx::PgPool; use crate::adresar::models::Adresar; -use crate::proto::multieko2::adresar::{PostAdresarRequest, AdresarResponse}; +use common::proto::multieko2::adresar::{PostAdresarRequest, AdresarResponse}; pub async fn post_adresar( db_pool: &PgPool, diff --git a/src/adresar/handlers/put_adresar.rs b/server/src/adresar/handlers/put_adresar.rs similarity index 96% rename from src/adresar/handlers/put_adresar.rs rename to server/src/adresar/handlers/put_adresar.rs index c549bd4..96066b0 100644 --- a/src/adresar/handlers/put_adresar.rs +++ b/server/src/adresar/handlers/put_adresar.rs @@ -2,7 +2,7 @@ use tonic::Status; use sqlx::PgPool; use crate::adresar::models::Adresar; -use crate::proto::multieko2::adresar::{PutAdresarRequest, AdresarResponse}; +use common::proto::multieko2::adresar::{PutAdresarRequest, AdresarResponse}; pub async fn put_adresar( db_pool: &PgPool, diff --git a/src/adresar/mod.rs b/server/src/adresar/mod.rs similarity index 100% rename from src/adresar/mod.rs rename to server/src/adresar/mod.rs diff --git a/src/adresar/models.rs b/server/src/adresar/models.rs similarity index 100% rename from src/adresar/models.rs rename to server/src/adresar/models.rs diff --git a/src/db.rs b/server/src/db.rs similarity index 100% rename from src/db.rs rename to server/src/db.rs diff --git a/src/lib.rs b/server/src/lib.rs similarity index 79% rename from src/lib.rs rename to server/src/lib.rs index cb6703b..9558def 100644 --- a/src/lib.rs +++ b/server/src/lib.rs @@ -1,8 +1,6 @@ // src/lib.rs pub mod db; -pub mod client; pub mod server; -pub mod proto; pub mod adresar; pub mod uctovnictvo; pub mod shared; diff --git a/src/main.rs b/server/src/main.rs similarity index 84% rename from src/main.rs rename to server/src/main.rs index be3e9f8..fad82cc 100644 --- a/src/main.rs +++ b/server/src/main.rs @@ -1,7 +1,7 @@ // src/main.rs use std::env; use dotenvy::dotenv; -use multieko2::{server, client, db}; +use multieko2::db; #[tokio::main] async fn main() -> Result<(), Box> { @@ -13,7 +13,6 @@ async fn main() -> Result<(), Box> { match env::args().nth(1).as_deref() { Some("server") => server::run_server(db_pool).await?, - Some("client") => client::run_ui().await?, _ => println!("Usage: cargo run -- [server|client]"), } diff --git a/src/server/handlers.rs b/server/src/server/handlers.rs similarity index 100% rename from src/server/handlers.rs rename to server/src/server/handlers.rs diff --git a/src/server/mod.rs b/server/src/server/mod.rs similarity index 100% rename from src/server/mod.rs rename to server/src/server/mod.rs diff --git a/src/server/run.rs b/server/src/server/run.rs similarity index 73% rename from src/server/run.rs rename to server/src/server/run.rs index 81b2dae..0a52092 100644 --- a/src/server/run.rs +++ b/server/src/server/run.rs @@ -2,15 +2,15 @@ use tonic::transport::Server; use tonic_reflection::server::Builder as ReflectionBuilder; -use crate::proto::multieko2::FILE_DESCRIPTOR_SET; +use common::proto::multieko2::FILE_DESCRIPTOR_SET; use crate::server::services::{ AdresarService, UctovnictvoService, TableStructureHandler }; -use crate::proto::multieko2::adresar::adresar_server::AdresarServer; -use crate::proto::multieko2::uctovnictvo::uctovnictvo_server::UctovnictvoServer; -use crate::proto::multieko2::table_structure::table_structure_service_server::TableStructureServiceServer; +use common::proto::multieko2::adresar::adresar_server::AdresarServer; +use common::proto::multieko2::uctovnictvo::uctovnictvo_server::UctovnictvoServer; +use common::proto::multieko2::table_structure::table_structure_service_server::TableStructureServiceServer; pub async fn run_server(db_pool: sqlx::PgPool) -> Result<(), Box> { let addr = "[::1]:50051".parse()?; diff --git a/src/server/services/adresar_service.rs b/server/src/server/services/adresar_service.rs similarity index 94% rename from src/server/services/adresar_service.rs rename to server/src/server/services/adresar_service.rs index f0cf537..a0e4dcc 100644 --- a/src/server/services/adresar_service.rs +++ b/server/src/server/services/adresar_service.rs @@ -1,11 +1,11 @@ // src/server/services/adresar_service.rs use tonic::{Request, Response, Status}; -use crate::proto::multieko2::adresar::{ +use common::proto::multieko2::adresar::{ adresar_server::Adresar, PostAdresarRequest, AdresarResponse, GetAdresarRequest, PutAdresarRequest, DeleteAdresarRequest, DeleteAdresarResponse, }; -use crate::proto::multieko2::common::{Empty, CountResponse, PositionRequest}; +use common::proto::multieko2::common::{Empty, CountResponse, PositionRequest}; use crate::adresar::handlers::{ post_adresar, get_adresar, put_adresar, delete_adresar, get_adresar_count, get_adresar_by_position, diff --git a/src/server/services/mod.rs b/server/src/server/services/mod.rs similarity index 100% rename from src/server/services/mod.rs rename to server/src/server/services/mod.rs diff --git a/src/server/services/table_structure_service.rs b/server/src/server/services/table_structure_service.rs similarity index 75% rename from src/server/services/table_structure_service.rs rename to server/src/server/services/table_structure_service.rs index 1085f5a..f9722b9 100644 --- a/src/server/services/table_structure_service.rs +++ b/server/src/server/services/table_structure_service.rs @@ -1,7 +1,8 @@ // src/server/services/table_structure_service.rs use tonic::{Request, Response, Status}; -use crate::proto::multieko2::table_structure::table_structure_service_server::TableStructureService; -use crate::proto::multieko2::table_structure::TableStructureResponse; +use common::proto::multieko2::table_structure::table_structure_service_server::TableStructureService; +use common::proto::multieko2::table_structure::TableStructureResponse; +use common::proto::multieko2::common::Empty; use crate::table_structure::handlers::{ get_adresar_table_structure, get_uctovnictvo_table_structure, }; @@ -16,7 +17,7 @@ pub struct TableStructureHandler { impl TableStructureService for TableStructureHandler { async fn get_adresar_table_structure( &self, - request: Request, + request: Request, ) -> Result, Status> { let response = get_adresar_table_structure(&self.db_pool, request.into_inner()) .await?; @@ -25,7 +26,7 @@ impl TableStructureService for TableStructureHandler { async fn get_uctovnictvo_table_structure( &self, - request: Request, + request: Request, ) -> Result, Status> { let response = get_uctovnictvo_table_structure(&self.db_pool, request.into_inner()).await?; Ok(Response::new(response)) diff --git a/src/server/services/uctovnictvo_service.rs b/server/src/server/services/uctovnictvo_service.rs similarity index 93% rename from src/server/services/uctovnictvo_service.rs rename to server/src/server/services/uctovnictvo_service.rs index 64a9b63..fbf77f9 100644 --- a/src/server/services/uctovnictvo_service.rs +++ b/server/src/server/services/uctovnictvo_service.rs @@ -1,6 +1,6 @@ // src/server/services/uctovnictvo_service.rs use tonic::{Request, Response, Status}; -use crate::proto::multieko2::uctovnictvo::{ +use common::proto::multieko2::uctovnictvo::{ uctovnictvo_server::Uctovnictvo, PostUctovnictvoRequest, UctovnictvoResponse, GetUctovnictvoRequest, PutUctovnictvoRequest, }; @@ -8,7 +8,7 @@ use crate::uctovnictvo::handlers::{ post_uctovnictvo, get_uctovnictvo, get_uctovnictvo_count, get_uctovnictvo_by_position, put_uctovnictvo, }; -use crate::proto::multieko2::common::{Empty, CountResponse, PositionRequest}; +use common::proto::multieko2::common::{Empty, CountResponse, PositionRequest}; use sqlx::PgPool; #[derive(Debug)] diff --git a/src/shared/date_utils.rs b/server/src/shared/date_utils.rs similarity index 100% rename from src/shared/date_utils.rs rename to server/src/shared/date_utils.rs diff --git a/src/shared/mod.rs b/server/src/shared/mod.rs similarity index 100% rename from src/shared/mod.rs rename to server/src/shared/mod.rs diff --git a/src/table_structure/docs/response.txt b/server/src/table_structure/docs/response.txt similarity index 100% rename from src/table_structure/docs/response.txt rename to server/src/table_structure/docs/response.txt diff --git a/src/table_structure/handlers.rs b/server/src/table_structure/handlers.rs similarity index 100% rename from src/table_structure/handlers.rs rename to server/src/table_structure/handlers.rs diff --git a/src/table_structure/handlers/table_structure.rs b/server/src/table_structure/handlers/table_structure.rs similarity index 99% rename from src/table_structure/handlers/table_structure.rs rename to server/src/table_structure/handlers/table_structure.rs index c653e6c..fdcd9c5 100644 --- a/src/table_structure/handlers/table_structure.rs +++ b/server/src/table_structure/handlers/table_structure.rs @@ -1,7 +1,7 @@ // src/table_structure/handlers/table_structure.rs use tonic::Status; use sqlx::PgPool; -use crate::proto::multieko2::{ +use common::proto::multieko2::{ table_structure::{TableStructureResponse, TableColumn}, common::Empty }; diff --git a/src/table_structure/mod.rs b/server/src/table_structure/mod.rs similarity index 100% rename from src/table_structure/mod.rs rename to server/src/table_structure/mod.rs diff --git a/src/uctovnictvo/docs/example.txt b/server/src/uctovnictvo/docs/example.txt similarity index 100% rename from src/uctovnictvo/docs/example.txt rename to server/src/uctovnictvo/docs/example.txt diff --git a/src/uctovnictvo/docs/get_examples.txt b/server/src/uctovnictvo/docs/get_examples.txt similarity index 100% rename from src/uctovnictvo/docs/get_examples.txt rename to server/src/uctovnictvo/docs/get_examples.txt diff --git a/src/uctovnictvo/handlers.rs b/server/src/uctovnictvo/handlers.rs similarity index 100% rename from src/uctovnictvo/handlers.rs rename to server/src/uctovnictvo/handlers.rs diff --git a/src/uctovnictvo/handlers/get_uctovnictvo.rs b/server/src/uctovnictvo/handlers/get_uctovnictvo.rs similarity index 94% rename from src/uctovnictvo/handlers/get_uctovnictvo.rs rename to server/src/uctovnictvo/handlers/get_uctovnictvo.rs index 474a3e1..8264c4c 100644 --- a/src/uctovnictvo/handlers/get_uctovnictvo.rs +++ b/server/src/uctovnictvo/handlers/get_uctovnictvo.rs @@ -2,7 +2,7 @@ use tonic::Status; use sqlx::PgPool; use crate::uctovnictvo::models::Uctovnictvo; -use crate::proto::multieko2::uctovnictvo::{GetUctovnictvoRequest, UctovnictvoResponse}; +use common::proto::multieko2::uctovnictvo::{GetUctovnictvoRequest, UctovnictvoResponse}; pub async fn get_uctovnictvo( db_pool: &PgPool, diff --git a/src/uctovnictvo/handlers/get_uctovnictvo_by_position.rs b/server/src/uctovnictvo/handlers/get_uctovnictvo_by_position.rs similarity index 77% rename from src/uctovnictvo/handlers/get_uctovnictvo_by_position.rs rename to server/src/uctovnictvo/handlers/get_uctovnictvo_by_position.rs index aabadd1..31560c1 100644 --- a/src/uctovnictvo/handlers/get_uctovnictvo_by_position.rs +++ b/server/src/uctovnictvo/handlers/get_uctovnictvo_by_position.rs @@ -1,13 +1,13 @@ // src/uctovnictvo/handlers/get_uctovnictvo_by_position.rs use tonic::Status; use sqlx::PgPool; -use crate::proto::multieko2::common::PositionRequest; +use common::proto::multieko2::common::PositionRequest; use super::get_uctovnictvo; pub async fn get_uctovnictvo_by_position( db_pool: &PgPool, request: PositionRequest, -) -> Result { +) -> Result { if request.position < 1 { return Err(Status::invalid_argument("Position must be at least 1")); } @@ -30,5 +30,5 @@ pub async fn get_uctovnictvo_by_position( .ok_or_else(|| Status::not_found("Position out of bounds"))?; // Now fetch the complete record using the existing get_uctovnictvo function - get_uctovnictvo(db_pool, crate::proto::multieko2::uctovnictvo::GetUctovnictvoRequest { id }).await + get_uctovnictvo(db_pool, common::proto::multieko2::uctovnictvo::GetUctovnictvoRequest { id }).await } diff --git a/src/uctovnictvo/handlers/get_uctovnictvo_count.rs b/server/src/uctovnictvo/handlers/get_uctovnictvo_count.rs similarity index 89% rename from src/uctovnictvo/handlers/get_uctovnictvo_count.rs rename to server/src/uctovnictvo/handlers/get_uctovnictvo_count.rs index a4e5607..b36461a 100644 --- a/src/uctovnictvo/handlers/get_uctovnictvo_count.rs +++ b/server/src/uctovnictvo/handlers/get_uctovnictvo_count.rs @@ -1,7 +1,7 @@ // src/uctovnictvo/handlers/get_uctovnictvo_count.rs use tonic::Status; use sqlx::PgPool; -use crate::proto::multieko2::common::{CountResponse, Empty}; +use common::proto::multieko2::common::{CountResponse, Empty}; pub async fn get_uctovnictvo_count( db_pool: &PgPool, diff --git a/src/uctovnictvo/handlers/post_uctovnictvo.rs b/server/src/uctovnictvo/handlers/post_uctovnictvo.rs similarity index 96% rename from src/uctovnictvo/handlers/post_uctovnictvo.rs rename to server/src/uctovnictvo/handlers/post_uctovnictvo.rs index 561ce3e..3be9202 100644 --- a/src/uctovnictvo/handlers/post_uctovnictvo.rs +++ b/server/src/uctovnictvo/handlers/post_uctovnictvo.rs @@ -2,7 +2,7 @@ use tonic::Status; use sqlx::PgPool; use crate::uctovnictvo::models::Uctovnictvo; -use crate::proto::multieko2::uctovnictvo::{PostUctovnictvoRequest, UctovnictvoResponse}; +use common::proto::multieko2::uctovnictvo::{PostUctovnictvoRequest, UctovnictvoResponse}; use crate::shared::date_utils::parse_date_with_multiple_formats; // Import from shared module pub async fn post_uctovnictvo( diff --git a/src/uctovnictvo/handlers/put_uctovnictvo.rs b/server/src/uctovnictvo/handlers/put_uctovnictvo.rs similarity index 96% rename from src/uctovnictvo/handlers/put_uctovnictvo.rs rename to server/src/uctovnictvo/handlers/put_uctovnictvo.rs index 2f43f90..49df6f2 100644 --- a/src/uctovnictvo/handlers/put_uctovnictvo.rs +++ b/server/src/uctovnictvo/handlers/put_uctovnictvo.rs @@ -2,7 +2,7 @@ use tonic::Status; use sqlx::PgPool; use crate::uctovnictvo::models::Uctovnictvo; -use crate::proto::multieko2::uctovnictvo::{PutUctovnictvoRequest, UctovnictvoResponse}; +use common::proto::multieko2::uctovnictvo::{PutUctovnictvoRequest, UctovnictvoResponse}; use crate::shared::date_utils::parse_date_with_multiple_formats; // Import from shared module pub async fn put_uctovnictvo( diff --git a/src/uctovnictvo/mod.rs b/server/src/uctovnictvo/mod.rs similarity index 100% rename from src/uctovnictvo/mod.rs rename to server/src/uctovnictvo/mod.rs diff --git a/src/uctovnictvo/models.rs b/server/src/uctovnictvo/models.rs similarity index 100% rename from src/uctovnictvo/models.rs rename to server/src/uctovnictvo/models.rs diff --git a/src/common/mod.rs b/src/common/mod.rs deleted file mode 100644 index e69de29..0000000 diff --git a/src/proto/descriptor.bin b/src/proto/descriptor.bin deleted file mode 100644 index 3dc24d74ef020453e2de9fd66fb4a422b9f6d137..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10697 zcmeHN$#NUX5p8rgfkt5?8UP7ETtILgiJM4@)MAeoYNezZiL=CnBOD3{1ZOZ@Koh`( zHFx`He}PZF`vdIoKlle64j+8-!Drw6vMMXF3>jnDbDR^Ao%JfKvh#Iky{7t?tCIEB z$w}*U_3XUWX@#RF-Q!NPan#yaHP@>#HS*}>tn;oquTs0M?rCSg(LQUPwi{tyjnwHv zF;a;vdHcqwuBgnbR=e40wodmOzvwpFov^HeGrq)Q#oqfzL`6eC;zZZfl!_!nFXDvd zd_}Kjt$%4s1uEi(p6irUT)DmzdcHHNl)|3~eg`Ri89zsytNL<;eg_4WP`)2=F@B`D zq>^fcj1jUXtwjT;X07GHT3FPxAzsv3)3do46b;7pY%a|fEw5+<49pfSPg{!yR!k)L zFkAH6^4qB1(Wd%ipbDMZ+vCQYcIUiX?{v=_ocdBP^+N;71NW%yr z6|1+7yCI>AJjUv zH=TE9jiQTtAKwq?!l$sqX_aWU-<)=jk7eTG6Gn# zFvc(tGbJz=u#_9+NrYf>(&A+ zcjvV{Jbt~TQZ-Zg{Lsku_|1;Nhei3~hfQ@>WqT~L&*`*sn+N=a#;@vv%0FxzH#!Yw z+hyba;;InOd`n6@4DW}-=J`pDA0EaC5#;Dwer(`ZII6sZ^SXXe#P{hZy;r)&&3a8g z7~=cJpmAsIdT~TQZ|EnDJHhLvRgCIu#-JxwyHo2FWBQ{0O(WmdPLFEEz>L%ejqKJN zonqXKq~GC~infoAYX>JqrLVF@(VO*FF`+Ng&#Z{fyPX}o`Y@HTU z#>1w}-Yus4X7AGMhqYf8GiG-Dtp3$i8Ob`oZ-;IV?aJiWJc9@FOV8c-eqVm+Av>I3 zlgq*Unp_U%*Q9bNzb2JK`8BCD$(H<@OzK=q22MDYL-{qC9L_Iik<;CuUz0|gZkfHy zsWh`oen)%x{hO<@ue!q(`(uW6LH{5bzOD*G4-YP5(4*b0*BfnWQm8wy=Em=R72~20 zzfg(3M@l%~_X6h!-D;noA35df1;d7E^tn>KM_)L10ix%A&v|X}{_xsHIR;30K z87^M1WXv$P*k)6y&zxLLBbG1MfL`Al_qf7iak z0SVCU@XH?W>7cM^Exf0Ljr+aVd)&WoU*Uko1Ko|FE1&~RJU?%JfW_DEG7K&yFlu6y zz+CbPj9MBcFc=B{CC^CvO5n(27U=<&7{6vM8oB+PqoMmt`j6S=1D3?u#=v~Qk|n!H zAF$;5LxxeO<-g*ABY>rX32OnCn%c4!V5z$w>8244)Tk5oI?~agMAP}Yfy(+>f{=m9 zvwqxKn4CQ9!*tmU9rs);*3Ua*y&g1=CCC}Cz|)x?w7}EB!gQ1unhqAGEAVt~=og(O zGaaS97?kyN`jA)hO-E=Bc_rWU%djx8lo-|1nL}PFmuDDUW#9Clu1hU#Szy%cl@q2D zh7YSKb0_T5J-*`W`to4_c12*ctSgB$N2B|HB^z=y7!$HcYH23~M%6GOi}YxuEE4yB zQlj~QO$v;vVN#;e{hyR*7&s--Mzm#9Le(%O(MAB9l4v+xO#69We-yB3i53NHI+3wH zz@|fUrf}U@=v5?I46us8Vt`d7S`4s?L<>T1Mxq6P%?K<2Y(}C5fXzs>c<5Dqa};si zIAB$Q#R01(OrgRDST%2sA})GgZ&soyz-9%e0GpLeD!^v5c5jK$oAZmj?F3+R0!sik zm#`I-0Bo*cg$F1k^8!l(HZQOwVDkb?0yZzOROl_p-co=q2rLEIg6u5?*n;dW9eRth zw=`gj0!st7D0@o-wurqEKfTbu>fAAeq7uBystKf<(7VR`gn{Xm6-tp zuvLN4ZdQ5E@X<(ShUbD%YqCfp)SAGEP;0VCBGj5J5(C#I8WCz;U__{OiAIE4muMi= zb%{oVx-Kvx)OCp#1?;*+1EDtfetIquYC~W|s10TYe1L5*GdvfB+LUNSs7-+pp*AHN z5o%MSflyllBSLKnj0m+Q(TGr6IM0~d4MN@ETJ>Ba)D3|Vp>A-k!Uxz5u2s(kp|)jj zM5t|n5uvsvlSHU(=Aq|;P&-U07=Y~vj0m;Egn|#S9VV3Lf>1XFMufU4Fe21Vff1o@ z3Jiq0C3_=6-4YlP>Xz({2z5*LmI=MvvbPLiw*{5~?6&MJ1K4fmp&$A`bv`mYq!Roo zzjl4%;fKsa7?|!u<{>N${E&GF3)6kbJoJe)clmz80PHTW0v7qW3}69vm&*Vzv(UT8 zJcI$*J%Q1b_n3$90d|jh=#z1unE?Z^`vM~#-se5TMoy&_5_?wE# z;^TpprdbRu^u)kE=b#{1{e!E<=;Yj|Z1d?WoK%X>Pj5sAjPsRe2c-Mg-yF0^9_w1& zzy8qJBu3#IK=*`&JYyKhAvCh?xzYLYsi6MY*aT_4ZP&hHP0twNgo@+KNaLW{KC;SQ z??PBm(fS)~uFLw~NFDp=lBjrc!0H};k$}-WXqen{k?AhVo)POV$R4YoI+cUjGrHY{ z*<&HJKYK>I8_J$Z(S_MFNxC3=M#SUn{n=Fo=pF+JG+zaW#kL>w$JIBGzeQDmnDYJU z+xV@o5`DwMWBnbr9~rLn2{7Hhr^m&QgYwl&hWAD3`&yPBTxPg@33_mt6@K0)*2gM0 zILZGjST*%0#lCI5pJ??yYyVoM2ib6Go(6~g4|&@Ad(H@DKZ&SW5z0y|l=a{LA+c<# zUo7JfU{NQjUtszJSk!#ky^)iaK&2WoBY69fW^0-(s=@tz)=1d?4s6D1r=)n zrm8osMI(1VXBZmEp0Gx(V?q{53RyxHNsVLzi=?wJq^`76Ht%|Rg{S*JzGnOqMPjKd zGaz+kl#xeFsxsq6eHcOpLT^-H)N_w=#{n1l5*9|O8U?Jbg*7ZN>ldn@S3YYuDtMnZ zPrs}jw$3Z<=E)hptu;IEmMbv3@P659eR<6Pgz&a|xcX_6zN*zu&NSd{qtj`eSMY9c zRKBX69vovP`_Y(s`K&C5mYU@b)X}|smOD^=3qsii_44?P%&DLo63Q;9mk(w0xCJ@x zj~thJ`JBM$hU6p~-GZD%!@#^mqh3BQFzUbZ5{-KKyhKAUU-0cGaO&j?0;68Oz&)Yk zQZHY~n|~~ENTeF$;|&bJ#so&a{1_i^-~()ok2enW^5fir!T@YsVARWxbK?phVB`D+ z+i}s$7iDkM%NGSky?ilY6hsUJtT<-N2)%qs_C~$Dl`iYbB7{8P*U_^^s8zA+IxKu!yc ziq5KsZ~->W_Y)Ri(*lEG)x(HBKw9+>7GPFAgheB{dLndyoRMf$bXGlt3$Pi9MnyLx z(J-*ewHk4$=&X7O3$QBJDlEXN5)DN+E77Rvta=!6spw`U8Wr8FL_^Wd@%@bGqO{g!Lw)$0ks~*A!m{kv57qz+}(Wq9fdI%SyZAdh#)eVV;THWOP2}vI?s~*Av zY?Esh7GRrPt1i{*7S}2az^r-*3$QJ&Rak&+ajim}C%w?>>Qt*%J%kIe8(gbK#lOL| zs#W}L*&EfWRS)3;Y@2Hp7NTu)t-4gJJF+*bRjVGt1=tSPDlEWuxK{D@yX~MWqyJr` gyL+2!RSV>I1_bguTy#btzr(d^1oAtXQ7Z`i2Ln