diff --git a/Cargo.lock b/Cargo.lock index 85400386..f6106008 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3,4542 +3,1496 @@ version = 3 [[package]] -name = "actix-4-jwt-auth" -version = "1.2.3" +name = "addr2line" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c6a62fe5ef8b38a161d5f9a3fd119cbf374cf5a6386044d0d8fbde7f6526259" +checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678" dependencies = [ - "actix-web", - "awc", - "biscuit", - "futures", - "futures-core", - "futures-util", - "serde", - "serde_derive", - "serde_json", - "thiserror", + "gimli", ] [[package]] -name = "actix-codec" -version = "0.5.2" +name = "adler" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f7b0a21988c1bf877cf4759ef5ddaac04c1c9fe808c9142ecb78ba97d97a28a" -dependencies = [ - "bitflags 2.6.0", - "bytes", - "futures-core", - "futures-sink", - "memchr", - "pin-project-lite", - "tokio", - "tokio-util", - "tracing", -] +checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] -name = "actix-http" -version = "3.8.0" +name = "aes" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ae682f693a9cd7b058f2b0b5d9a6d7728a8555779bedbbc35dd88528611d020" +checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" dependencies = [ - "actix-codec", - "actix-rt", - "actix-service", - "actix-tls", - "actix-utils", - "ahash 0.8.11", - "base64 0.22.1", - "bitflags 2.6.0", - "brotli", - "bytes", - "bytestring", - "derive_more", - "encoding_rs", - "flate2", - "futures-core", - "h2", - "http 0.2.12", - "httparse", - "httpdate", - "itoa", - "language-tags", - "local-channel", - "mime", - "percent-encoding", - "pin-project-lite", - "rand", - "sha1", - "smallvec", - "tokio", - "tokio-util", - "tracing", - "zstd 0.13.2", + "cfg-if", + "cipher", + "cpufeatures", ] [[package]] -name = "actix-macros" -version = "0.2.4" +name = "ahash" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e01ed3140b2f8d422c68afa1ed2e85d996ea619c988ac834d255db32138655cb" +checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" dependencies = [ - "quote", - "syn 2.0.71", + "getrandom", + "once_cell", + "version_check", ] [[package]] -name = "actix-multipart" -version = "0.6.2" +name = "aho-corasick" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d974dd6c4f78d102d057c672dcf6faa618fafa9df91d44f9c466688fc1275a3a" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" dependencies = [ - "actix-multipart-derive", - "actix-utils", - "actix-web", - "bytes", - "derive_more", - "futures-core", - "futures-util", - "httparse", - "local-waker", - "log", "memchr", - "mime", - "rand", - "serde", - "serde_json", - "serde_plain", - "tempfile", - "tokio", ] [[package]] -name = "actix-multipart-derive" -version = "0.6.1" +name = "android-tzdata" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a0a77f836d869f700e5b47ac7c3c8b9c8bc82e4aec861954c6198abee3ebd4d" -dependencies = [ - "darling", - "parse-size", - "proc-macro2", - "quote", - "syn 2.0.71", -] +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" [[package]] -name = "actix-router" -version = "0.5.3" +name = "android_system_properties" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13d324164c51f63867b57e73ba5936ea151b8a41a1d23d1031eeb9f70d0236f8" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" dependencies = [ - "bytestring", - "cfg-if", - "http 0.2.12", - "regex", - "regex-lite", - "serde", - "tracing", + "libc", ] [[package]] -name = "actix-rt" -version = "2.10.0" +name = "anyhow" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24eda4e2a6e042aa4e55ac438a2ae052d3b5da0ecf83d7411e1a368946925208" -dependencies = [ - "futures-core", - "tokio", -] +checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] -name = "actix-server" -version = "2.4.0" +name = "arrayvec" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b02303ce8d4e8be5b855af6cf3c3a08f3eff26880faad82bab679c22d3650cb5" -dependencies = [ - "actix-rt", - "actix-service", - "actix-utils", - "futures-core", - "futures-util", - "mio", - "socket2 0.5.7", - "tokio", - "tracing", -] +checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" [[package]] -name = "actix-service" -version = "2.0.2" +name = "autocfg" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b894941f818cfdc7ccc4b9e60fa7e53b5042a2e8567270f9147d5591893373a" -dependencies = [ - "futures-core", - "paste", - "pin-project-lite", -] +checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] -name = "actix-tls" -version = "3.4.0" +name = "backtrace" +version = "0.3.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac453898d866cdbecdbc2334fe1738c747b4eba14a677261f2b768ba05329389" +checksum = "5cc23269a4f8976d0a4d2e7109211a419fe30e8d88d677cd60b6bc79c5732e0a" dependencies = [ - "actix-rt", - "actix-service", - "actix-utils", - "futures-core", - "http 0.2.12", - "http 1.1.0", - "impl-more", - "pin-project-lite", - "tokio", - "tokio-rustls 0.23.4", - "tokio-util", - "tracing", - "webpki-roots 0.22.6", + "addr2line", + "cc", + "cfg-if", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", ] [[package]] -name = "actix-utils" -version = "3.0.1" +name = "base64" +version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88a1dcdff1466e3c2488e1cb5c36a71822750ad43839937f85d2f4d9f8b705d8" -dependencies = [ - "local-waker", - "pin-project-lite", -] +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] -name = "actix-web" -version = "4.8.0" +name = "base64ct" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1988c02af8d2b718c05bc4aeb6a66395b7cdf32858c2c71131e5637a8c05a9ff" -dependencies = [ - "actix-codec", - "actix-http", - "actix-macros", - "actix-router", - "actix-rt", - "actix-server", - "actix-service", - "actix-tls", - "actix-utils", - "actix-web-codegen", - "ahash 0.8.11", - "bytes", - "bytestring", - "cfg-if", - "cookie", - "derive_more", - "encoding_rs", - "futures-core", - "futures-util", - "itoa", - "language-tags", - "log", - "mime", - "once_cell", - "pin-project-lite", - "regex", - "regex-lite", - "serde", - "serde_json", - "serde_urlencoded", - "smallvec", - "socket2 0.5.7", - "time", - "url", -] +checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] -name = "actix-web-codegen" -version = "4.3.0" +name = "bitflags" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f591380e2e68490b5dfaf1dd1aa0ebe78d84ba7067078512b4ea6e4492d622b8" -dependencies = [ - "actix-router", - "proc-macro2", - "quote", - "syn 2.0.71", -] +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] -name = "actix-web-httpauth" -version = "0.8.2" +name = "bitflags" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "456348ed9dcd72a13a1f4a660449fafdecee9ac8205552e286809eb5b0b29bd3" -dependencies = [ - "actix-utils", - "actix-web", - "base64 0.22.1", - "futures-core", - "futures-util", - "log", - "pin-project-lite", -] +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" [[package]] -name = "addr2line" -version = "0.22.0" +name = "bitvec" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678" +checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" dependencies = [ - "gimli", + "funty", + "radium", + "tap", + "wyz", ] [[package]] -name = "adler" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" - -[[package]] -name = "aes" -version = "0.8.4" +name = "block-buffer" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ - "cfg-if", - "cipher", - "cpufeatures", + "generic-array", ] [[package]] -name = "ahash" -version = "0.7.8" +name = "borsh" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" +checksum = "a6362ed55def622cddc70a4746a68554d7b687713770de539e59a739b249f8ed" dependencies = [ - "getrandom", - "once_cell", - "version_check", + "borsh-derive", + "cfg_aliases", ] [[package]] -name = "ahash" -version = "0.8.11" +name = "borsh-derive" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" +checksum = "c3ef8005764f53cd4dca619f5bf64cafd4664dada50ece25e4d81de54c80cc0b" dependencies = [ - "cfg-if", - "getrandom", "once_cell", - "version_check", - "zerocopy", + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.71", + "syn_derive", ] [[package]] -name = "aho-corasick" -version = "1.1.3" +name = "bstr" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" +checksum = "05efc5cfd9110c8416e471df0e96702d58690178e206e61b7173706673c93706" dependencies = [ "memchr", + "serde", ] [[package]] -name = "aliasable" -version = "0.1.3" +name = "bumpalo" +version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "250f629c0161ad8107cf89319e990051fae62832fd343083bea452d93e2205fd" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] -name = "alloc-no-stdlib" -version = "2.0.4" +name = "bytecheck" +version = "0.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" +checksum = "23cdc57ce23ac53c931e88a43d06d070a6fd142f2617be5855eb75efc9beb1c2" +dependencies = [ + "bytecheck_derive", + "ptr_meta", + "simdutf8", +] [[package]] -name = "alloc-stdlib" -version = "0.2.2" +name = "bytecheck_derive" +version = "0.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" +checksum = "3db406d29fbcd95542e92559bed4d8ad92636d1ca8b3b72ede10b4bcc010e659" dependencies = [ - "alloc-no-stdlib", + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] -name = "allocator-api2" -version = "0.2.18" +name = "byteorder" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] -name = "android-tzdata" -version = "0.1.1" +name = "bytes" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" +checksum = "a12916984aab3fa6e39d655a33e09c0071eb36d6ab3aea5c2d78551f1df6d952" [[package]] -name = "android_system_properties" -version = "0.1.5" +name = "bzip2" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" dependencies = [ + "bzip2-sys", "libc", ] [[package]] -name = "anstream" -version = "0.6.14" +name = "bzip2-sys" +version = "0.1.11+1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418c75fa768af9c03be99d17643f93f79bbba589895012a80e3452a19ddda15b" +checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" dependencies = [ - "anstyle", - "anstyle-parse", - "anstyle-query", - "anstyle-wincon", - "colorchoice", - "is_terminal_polyfill", - "utf8parse", + "cc", + "libc", + "pkg-config", ] [[package]] -name = "anstyle" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "038dfcf04a5feb68e9c60b21c9625a54c2c0616e79b72b0fd87075a056ae1d1b" - -[[package]] -name = "anstyle-parse" -version = "0.2.4" +name = "cc" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c03a11a9034d92058ceb6ee011ce58af4a9bf61491aa7e1e59ecd24bd40d22d4" +checksum = "2aba8f4e9906c7ce3c73463f62a7f0c65183ada1a2d47e397cc8810827f9694f" dependencies = [ - "utf8parse", + "jobserver", + "libc", ] [[package]] -name = "anstyle-query" -version = "1.1.0" +name = "cfg-if" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad186efb764318d35165f1758e7dcef3b10628e26d41a44bc5550652e6804391" -dependencies = [ - "windows-sys 0.52.0", -] +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] -name = "anstyle-wincon" -version = "3.0.3" +name = "cfg_aliases" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61a38449feb7068f52bb06c12759005cf459ee52bb4adc1d5a7c4322d716fb19" -dependencies = [ - "anstyle", - "windows-sys 0.52.0", -] +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] -name = "anyhow" -version = "1.0.86" +name = "chrono" +version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" +checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" +dependencies = [ + "android-tzdata", + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-targets 0.52.6", +] [[package]] -name = "arrayvec" -version = "0.7.4" +name = "chrono-tz" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" +checksum = "93698b29de5e97ad0ae26447b344c482a7284c737d9ddc5f9e52b74a336671bb" +dependencies = [ + "chrono", + "chrono-tz-build", + "phf", +] [[package]] -name = "async-attributes" -version = "1.1.2" +name = "chrono-tz-build" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3203e79f4dd9bdda415ed03cf14dae5a2bf775c683a00f94e9cd1faf0f596e5" +checksum = "0c088aee841df9c3041febbb73934cfc39708749bf96dc827e3359cd39ef11b1" dependencies = [ - "quote", - "syn 1.0.109", + "parse-zoneinfo", + "phf", + "phf_codegen", ] [[package]] -name = "async-channel" -version = "1.9.0" +name = "cipher" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ - "concurrent-queue", - "event-listener 2.5.3", - "futures-core", + "crypto-common", + "inout", ] [[package]] -name = "async-channel" -version = "2.3.1" +name = "constant_time_eq" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89b47800b0be77592da0afd425cc03468052844aff33b84e33cc696f64e77b6a" -dependencies = [ - "concurrent-queue", - "event-listener-strategy", - "futures-core", - "pin-project-lite", -] +checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" [[package]] -name = "async-executor" -version = "1.13.0" +name = "core-foundation" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7ebdfa2ebdab6b1760375fa7d6f382b9f486eac35fc994625a00e89280bdbb7" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" dependencies = [ - "async-task", - "concurrent-queue", - "fastrand 2.1.0", - "futures-lite 2.3.0", - "slab", + "core-foundation-sys", + "libc", ] [[package]] -name = "async-global-executor" -version = "2.4.1" +name = "core-foundation-sys" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05b1b633a2115cd122d73b955eadd9916c18c8f510ec9cd1686404c60ad1c29c" -dependencies = [ - "async-channel 2.3.1", - "async-executor", - "async-io 2.3.3", - "async-lock 3.4.0", - "blocking", - "futures-lite 2.3.0", - "once_cell", - "tokio", -] +checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" [[package]] -name = "async-io" -version = "1.13.0" +name = "cpufeatures" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af" +checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" dependencies = [ - "async-lock 2.8.0", - "autocfg", - "cfg-if", - "concurrent-queue", - "futures-lite 1.13.0", - "log", - "parking", - "polling 2.8.0", - "rustix 0.37.27", - "slab", - "socket2 0.4.10", - "waker-fn", + "libc", ] [[package]] -name = "async-io" -version = "2.3.3" +name = "crc32fast" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d6baa8f0178795da0e71bc42c9e5d13261aac7ee549853162e66a241ba17964" +checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" dependencies = [ - "async-lock 3.4.0", "cfg-if", - "concurrent-queue", - "futures-io", - "futures-lite 2.3.0", - "parking", - "polling 3.7.2", - "rustix 0.38.34", - "slab", - "tracing", - "windows-sys 0.52.0", ] [[package]] -name = "async-lock" -version = "2.8.0" +name = "crossbeam-deque" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "287272293e9d8c41773cec55e365490fe034813a2f172f502d6ddcf75b2f582b" +checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" dependencies = [ - "event-listener 2.5.3", + "crossbeam-epoch", + "crossbeam-utils", ] [[package]] -name = "async-lock" -version = "3.4.0" +name = "crossbeam-epoch" +version = "0.9.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" dependencies = [ - "event-listener 5.3.1", - "event-listener-strategy", - "pin-project-lite", + "crossbeam-utils", ] [[package]] -name = "async-recursion" -version = "1.1.1" +name = "crossbeam-utils" +version = "0.8.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.71", -] +checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" [[package]] -name = "async-std" -version = "1.12.0" +name = "crypto-common" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62565bb4402e926b29953c785397c6dc0391b7b446e45008b0049eb43cec6f5d" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ - "async-attributes", - "async-channel 1.9.0", - "async-global-executor", - "async-io 1.13.0", - "async-lock 2.8.0", - "crossbeam-utils", - "futures-channel", - "futures-core", - "futures-io", - "futures-lite 1.13.0", - "gloo-timers", - "kv-log-macro", - "log", - "memchr", - "once_cell", - "pin-project-lite", - "pin-utils", - "slab", - "wasm-bindgen-futures", + "generic-array", + "typenum", ] [[package]] -name = "async-stream" -version = "0.3.5" +name = "dashmap" +version = "5.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd56dd203fef61ac097dd65721a419ddccb106b2d2b70ba60a6b529f03961a51" +checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" dependencies = [ - "async-stream-impl", - "futures-core", - "pin-project-lite", + "cfg-if", + "hashbrown 0.14.5", + "lock_api", + "once_cell", + "parking_lot_core", ] [[package]] -name = "async-stream-impl" -version = "0.3.5" +name = "deranged" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" +checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.71", + "powerfmt", ] [[package]] -name = "async-task" -version = "4.7.1" +name = "deunicode" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" +checksum = "339544cc9e2c4dc3fc7149fd630c5f22263a4fdf18a98afd0075784968b5cf00" [[package]] -name = "async-trait" -version = "0.1.81" +name = "digest" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e0c28dcc82d7c8ead5cb13beb15405b57b8546e93215673ff8ca0349a028107" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.71", + "block-buffer", + "crypto-common", + "subtle", ] [[package]] -name = "atoi" -version = "2.0.0" +name = "encoding_rs" +version = "0.8.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f28d99ec8bfea296261ca1af174f24225171fea9664ba9003cbebee704810528" +checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59" dependencies = [ - "num-traits", + "cfg-if", ] [[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.3.0" +name = "equivalent" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] -name = "awc" -version = "3.5.0" +name = "errno" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe6b67e44fb95d1dc9467e3930383e115f9b4ed60ca689db41409284e967a12d" +checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" dependencies = [ - "actix-codec", - "actix-http", - "actix-rt", - "actix-service", - "actix-tls", - "actix-utils", - "base64 0.22.1", - "bytes", - "cfg-if", - "cookie", - "derive_more", - "futures-core", - "futures-util", - "h2", - "http 0.2.12", - "itoa", - "log", - "mime", - "percent-encoding", - "pin-project-lite", - "rand", - "rustls 0.20.9", - "serde", - "serde_json", - "serde_urlencoded", - "tokio", + "libc", + "windows-sys 0.52.0", ] [[package]] -name = "aws-config" -version = "1.5.4" +name = "fastrand" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "caf6cfe2881cb1fcbba9ae946fb9a6480d3b7a714ca84c74925014a89ef3387a" -dependencies = [ - "aws-credential-types", - "aws-runtime", - "aws-sdk-sso", - "aws-sdk-ssooidc", - "aws-sdk-sts", - "aws-smithy-async", - "aws-smithy-http", - "aws-smithy-json", - "aws-smithy-runtime", - "aws-smithy-runtime-api", - "aws-smithy-types", - "aws-types", - "bytes", - "fastrand 2.1.0", - "hex", - "http 0.2.12", - "hyper 0.14.30", - "ring 0.17.8", - "time", - "tokio", - "tracing", - "url", - "zeroize", -] +checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" [[package]] -name = "aws-credential-types" -version = "1.2.0" +name = "flate2" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e16838e6c9e12125face1c1eff1343c75e3ff540de98ff7ebd61874a89bcfeb9" +checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae" dependencies = [ - "aws-smithy-async", - "aws-smithy-runtime-api", - "aws-smithy-types", - "zeroize", + "crc32fast", + "miniz_oxide", ] [[package]] -name = "aws-runtime" -version = "1.3.1" +name = "fnv" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87c5f920ffd1e0526ec9e70e50bf444db50b204395a0fa7016bbf9e31ea1698f" -dependencies = [ - "aws-credential-types", - "aws-sigv4", - "aws-smithy-async", - "aws-smithy-eventstream", - "aws-smithy-http", - "aws-smithy-runtime-api", - "aws-smithy-types", - "aws-types", - "bytes", - "fastrand 2.1.0", - "http 0.2.12", - "http-body 0.4.6", - "percent-encoding", - "pin-project-lite", - "tracing", - "uuid", -] +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] -name = "aws-sdk-s3" -version = "1.41.0" +name = "foreign-types" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "605ea81e6d88d9afdfb16369e809c037e1b08c937452ee475eaa72c4233d9685" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" dependencies = [ - "ahash 0.8.11", - "aws-credential-types", - "aws-runtime", - "aws-sigv4", - "aws-smithy-async", - "aws-smithy-checksums", - "aws-smithy-eventstream", - "aws-smithy-http", - "aws-smithy-json", - "aws-smithy-runtime", - "aws-smithy-runtime-api", - "aws-smithy-types", - "aws-smithy-xml", - "aws-types", - "bytes", - "fastrand 2.1.0", - "hex", - "hmac", - "http 0.2.12", - "http-body 0.4.6", - "lru", - "once_cell", - "percent-encoding", - "regex-lite", - "sha2", - "tracing", - "url", + "foreign-types-shared", ] [[package]] -name = "aws-sdk-sso" -version = "1.35.0" +name = "foreign-types-shared" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc3ef4ee9cdd19ec6e8b10d963b79637844bbf41c31177b77a188eaa941e69f7" -dependencies = [ - "aws-credential-types", - "aws-runtime", - "aws-smithy-async", - "aws-smithy-http", - "aws-smithy-json", - "aws-smithy-runtime", - "aws-smithy-runtime-api", - "aws-smithy-types", - "aws-types", - "bytes", - "http 0.2.12", - "once_cell", - "regex-lite", - "tracing", -] +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] -name = "aws-sdk-ssooidc" -version = "1.36.0" +name = "form_urlencoded" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "527f3da450ea1f09f95155dba6153bd0d83fe0923344a12e1944dfa5d0b32064" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" dependencies = [ - "aws-credential-types", - "aws-runtime", - "aws-smithy-async", - "aws-smithy-http", - "aws-smithy-json", - "aws-smithy-runtime", - "aws-smithy-runtime-api", - "aws-smithy-types", - "aws-types", - "bytes", - "http 0.2.12", - "once_cell", - "regex-lite", - "tracing", + "percent-encoding", ] [[package]] -name = "aws-sdk-sts" -version = "1.35.0" +name = "funty" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94316606a4aa2cb7a302388411b8776b3fbd254e8506e2dc43918286d8212e9b" -dependencies = [ - "aws-credential-types", - "aws-runtime", - "aws-smithy-async", - "aws-smithy-http", - "aws-smithy-json", - "aws-smithy-query", - "aws-smithy-runtime", - "aws-smithy-runtime-api", - "aws-smithy-types", - "aws-smithy-xml", - "aws-types", - "http 0.2.12", - "once_cell", - "regex-lite", - "tracing", -] +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] -name = "aws-sigv4" -version = "1.2.3" +name = "futures" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5df1b0fa6be58efe9d4ccc257df0a53b89cd8909e86591a13ca54817c87517be" +checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" dependencies = [ - "aws-credential-types", - "aws-smithy-eventstream", - "aws-smithy-http", - "aws-smithy-runtime-api", - "aws-smithy-types", - "bytes", - "crypto-bigint 0.5.5", - "form_urlencoded", - "hex", - "hmac", - "http 0.2.12", - "http 1.1.0", - "once_cell", - "p256", - "percent-encoding", - "ring 0.17.8", - "sha2", - "subtle", - "time", - "tracing", - "zeroize", + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", ] [[package]] -name = "aws-smithy-async" -version = "1.2.1" +name = "futures-channel" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62220bc6e97f946ddd51b5f1361f78996e704677afc518a4ff66b7a72ea1378c" +checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" dependencies = [ - "futures-util", - "pin-project-lite", - "tokio", + "futures-core", + "futures-sink", ] [[package]] -name = "aws-smithy-checksums" -version = "0.60.11" +name = "futures-core" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48c4134cf3adaeacff34d588dbe814200357b0c466d730cf1c0d8054384a2de4" -dependencies = [ - "aws-smithy-http", - "aws-smithy-types", - "bytes", - "crc32c", - "crc32fast", - "hex", - "http 0.2.12", - "http-body 0.4.6", - "md-5", - "pin-project-lite", - "sha1", - "sha2", - "tracing", -] +checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" [[package]] -name = "aws-smithy-eventstream" -version = "0.60.4" +name = "futures-executor" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6363078f927f612b970edf9d1903ef5cef9a64d1e8423525ebb1f0a1633c858" +checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" dependencies = [ - "aws-smithy-types", - "bytes", - "crc32fast", + "futures-core", + "futures-task", + "futures-util", ] [[package]] -name = "aws-smithy-http" -version = "0.60.9" +name = "futures-io" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" + +[[package]] +name = "futures-sink" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" + +[[package]] +name = "futures-task" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9cd0ae3d97daa0a2bf377a4d8e8e1362cae590c4a1aad0d40058ebca18eb91e" +checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" + +[[package]] +name = "futures-util" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ - "aws-smithy-eventstream", - "aws-smithy-runtime-api", - "aws-smithy-types", - "bytes", - "bytes-utils", + "futures-channel", "futures-core", - "http 0.2.12", - "http-body 0.4.6", - "once_cell", - "percent-encoding", + "futures-io", + "futures-sink", + "futures-task", + "memchr", "pin-project-lite", "pin-utils", - "tracing", + "slab", ] [[package]] -name = "aws-smithy-json" -version = "0.60.7" +name = "generic-array" +version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4683df9469ef09468dad3473d129960119a0d3593617542b7d52086c8486f2d6" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ - "aws-smithy-types", + "typenum", + "version_check", ] [[package]] -name = "aws-smithy-query" -version = "0.60.7" +name = "getrandom" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2fbd61ceb3fe8a1cb7352e42689cec5335833cd9f94103a61e98f9bb61c64bb" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ - "aws-smithy-types", - "urlencoding", + "cfg-if", + "libc", + "wasi", ] [[package]] -name = "aws-smithy-runtime" -version = "1.6.2" +name = "gimli" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd" + +[[package]] +name = "globset" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce87155eba55e11768b8c1afa607f3e864ae82f03caf63258b37455b0ad02537" +checksum = "57da3b9b5b85bd66f31093f8c408b90a74431672542466497dcbdfdc02034be1" dependencies = [ - "aws-smithy-async", - "aws-smithy-http", - "aws-smithy-runtime-api", - "aws-smithy-types", - "bytes", - "fastrand 2.1.0", - "h2", - "http 0.2.12", - "http-body 0.4.6", - "http-body 1.0.1", - "httparse", - "hyper 0.14.30", - "hyper-rustls 0.24.2", - "once_cell", - "pin-project-lite", - "pin-utils", - "rustls 0.21.12", - "tokio", - "tracing", + "aho-corasick", + "bstr", + "log", + "regex-automata", + "regex-syntax", ] [[package]] -name = "aws-smithy-runtime-api" -version = "1.7.1" +name = "globwalk" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30819352ed0a04ecf6a2f3477e344d2d1ba33d43e0f09ad9047c12e0d923616f" +checksum = "0bf760ebf69878d9fd8f110c89703d90ce35095324d1f1edcb595c63945ee757" dependencies = [ - "aws-smithy-async", - "aws-smithy-types", - "bytes", - "http 0.2.12", - "http 1.1.0", - "pin-project-lite", - "tokio", - "tracing", - "zeroize", + "bitflags 2.6.0", + "ignore", + "walkdir", ] [[package]] -name = "aws-smithy-types" -version = "1.2.0" +name = "h2" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfe321a6b21f5d8eabd0ade9c55d3d0335f3c3157fc2b3e87f05f34b539e4df5" +checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" dependencies = [ - "base64-simd", "bytes", - "bytes-utils", + "fnv", "futures-core", - "http 0.2.12", - "http 1.1.0", - "http-body 0.4.6", - "http-body 1.0.1", - "http-body-util", - "itoa", - "num-integer", - "pin-project-lite", - "pin-utils", - "ryu", - "serde", - "time", + "futures-sink", + "futures-util", + "http", + "indexmap", + "slab", "tokio", "tokio-util", + "tracing", ] [[package]] -name = "aws-smithy-xml" -version = "0.60.8" +name = "hashbrown" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d123fbc2a4adc3c301652ba8e149bf4bc1d1725affb9784eb20c953ace06bf55" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" dependencies = [ - "xmlparser", + "ahash", ] [[package]] -name = "aws-types" -version = "1.3.3" +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "hmac" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5221b91b3e441e6675310829fd8984801b772cb1546ef6c0e54dec9f1ac13fef" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ - "aws-credential-types", - "aws-smithy-async", - "aws-smithy-runtime-api", - "aws-smithy-types", - "rustc_version", - "tracing", + "digest", ] [[package]] -name = "backtrace" -version = "0.3.73" +name = "http" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cc23269a4f8976d0a4d2e7109211a419fe30e8d88d677cd60b6bc79c5732e0a" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" dependencies = [ - "addr2line", - "cc", - "cfg-if", - "libc", - "miniz_oxide", - "object", - "rustc-demangle", + "bytes", + "fnv", + "itoa", ] [[package]] -name = "base16ct" -version = "0.1.1" +name = "http-body" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" +dependencies = [ + "bytes", + "http", + "pin-project-lite", +] [[package]] -name = "base64" -version = "0.21.7" +name = "httparse" +version = "1.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" +checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" [[package]] -name = "base64" -version = "0.22.1" +name = "httpdate" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] -name = "base64-simd" -version = "0.8.0" +name = "humansize" +version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "339abbe78e73178762e23bea9dfd08e697eb3f3301cd4be981c0f78ba5859195" +checksum = "6cb51c9a029ddc91b07a787f1d86b53ccfa49b0e86688c946ebe8d3555685dd7" dependencies = [ - "outref", - "vsimd", + "libm", ] [[package]] -name = "base64ct" -version = "1.6.0" +name = "hyper" +version = "0.14.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" +checksum = "a152ddd61dfaec7273fe8419ab357f33aee0d914c5f4efbf0d96fa749eea5ec9" +dependencies = [ + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", + "want", +] [[package]] -name = "bigdecimal" -version = "0.3.1" +name = "hyper-tls" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6773ddc0eafc0e509fb60e48dff7f450f8e674a0686ae8605e8d9901bd5eefa" +checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" dependencies = [ - "num-bigint", - "num-integer", - "num-traits", + "bytes", + "hyper", + "native-tls", + "tokio", + "tokio-native-tls", ] [[package]] -name = "biscuit" -version = "0.7.0" +name = "iana-time-zone" +version = "0.1.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e28fc7c56c61743a01d0d1b73e4fed68b8a4f032ea3a2d4bb8c6520a33fc05a" +checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" dependencies = [ - "chrono", - "data-encoding", - "num-bigint", - "num-traits", - "once_cell", - "ring 0.17.8", - "serde", - "serde_json", + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "windows-core", ] [[package]] -name = "bitflags" -version = "1.3.2" +name = "iana-time-zone-haiku" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] [[package]] -name = "bitflags" -version = "2.6.0" +name = "idna" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -dependencies = [ - "serde", -] - -[[package]] -name = "bitvec" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" -dependencies = [ - "funty", - "radium", - "tap", - "wyz", -] - -[[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 = "blocking" -version = "1.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "703f41c54fc768e63e091340b424302bb1c29ef4aa0c7f10fe849dfb114d29ea" -dependencies = [ - "async-channel 2.3.1", - "async-task", - "futures-io", - "futures-lite 2.3.0", - "piper", -] - -[[package]] -name = "borsh" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6362ed55def622cddc70a4746a68554d7b687713770de539e59a739b249f8ed" -dependencies = [ - "borsh-derive", - "cfg_aliases", -] - -[[package]] -name = "borsh-derive" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3ef8005764f53cd4dca619f5bf64cafd4664dada50ece25e4d81de54c80cc0b" -dependencies = [ - "once_cell", - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 2.0.71", - "syn_derive", -] - -[[package]] -name = "brotli" -version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74f7971dbd9326d58187408ab83117d8ac1bb9c17b085fdacd1cf2f598719b6b" -dependencies = [ - "alloc-no-stdlib", - "alloc-stdlib", - "brotli-decompressor", -] - -[[package]] -name = "brotli-decompressor" -version = "4.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a45bd2e4095a8b518033b128020dd4a55aab1c0a381ba4404a472630f4bc362" -dependencies = [ - "alloc-no-stdlib", - "alloc-stdlib", -] - -[[package]] -name = "bstr" -version = "1.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05efc5cfd9110c8416e471df0e96702d58690178e206e61b7173706673c93706" -dependencies = [ - "memchr", - "serde", -] - -[[package]] -name = "bumpalo" -version = "3.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" - -[[package]] -name = "bytecheck" -version = "0.6.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23cdc57ce23ac53c931e88a43d06d070a6fd142f2617be5855eb75efc9beb1c2" -dependencies = [ - "bytecheck_derive", - "ptr_meta", - "simdutf8", -] - -[[package]] -name = "bytecheck_derive" -version = "0.6.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3db406d29fbcd95542e92559bed4d8ad92636d1ca8b3b72ede10b4bcc010e659" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "byteorder" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" - -[[package]] -name = "bytes" -version = "1.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a12916984aab3fa6e39d655a33e09c0071eb36d6ab3aea5c2d78551f1df6d952" - -[[package]] -name = "bytes-utils" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dafe3a8757b027e2be6e4e5601ed563c55989fcf1546e933c66c8eb3a058d35" -dependencies = [ - "bytes", - "either", -] - -[[package]] -name = "bytestring" -version = "1.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74d80203ea6b29df88012294f62733de21cfeab47f17b41af3a38bc30a03ee72" -dependencies = [ - "bytes", -] - -[[package]] -name = "bzip2" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" -dependencies = [ - "bzip2-sys", - "libc", -] - -[[package]] -name = "bzip2-sys" -version = "0.1.11+1.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" -dependencies = [ - "cc", - "libc", - "pkg-config", -] - -[[package]] -name = "cc" -version = "1.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2aba8f4e9906c7ce3c73463f62a7f0c65183ada1a2d47e397cc8810827f9694f" -dependencies = [ - "jobserver", - "libc", -] - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "cfg_aliases" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" - -[[package]] -name = "chrono" -version = "0.4.38" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" -dependencies = [ - "android-tzdata", - "iana-time-zone", - "js-sys", - "num-traits", - "serde", - "wasm-bindgen", - "windows-targets 0.52.6", -] - -[[package]] -name = "chrono-tz" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93698b29de5e97ad0ae26447b344c482a7284c737d9ddc5f9e52b74a336671bb" -dependencies = [ - "chrono", - "chrono-tz-build", - "phf", -] - -[[package]] -name = "chrono-tz-build" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c088aee841df9c3041febbb73934cfc39708749bf96dc827e3359cd39ef11b1" -dependencies = [ - "parse-zoneinfo", - "phf", - "phf_codegen", -] - -[[package]] -name = "cipher" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" -dependencies = [ - "crypto-common", - "inout", -] - -[[package]] -name = "clap" -version = "4.5.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64acc1846d54c1fe936a78dc189c34e28d3f5afc348403f28ecf53660b9b8462" -dependencies = [ - "clap_builder", - "clap_derive", -] - -[[package]] -name = "clap_builder" -version = "4.5.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fb8393d67ba2e7bfaf28a23458e4e2b543cc73a99595511eb207fdb8aede942" -dependencies = [ - "anstream", - "anstyle", - "clap_lex", - "strsim", -] - -[[package]] -name = "clap_derive" -version = "4.5.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bac35c6dafb060fd4d275d9a4ffae97917c13a6327903a8be2153cd964f7085" -dependencies = [ - "heck 0.5.0", - "proc-macro2", - "quote", - "syn 2.0.71", -] - -[[package]] -name = "clap_lex" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70" - -[[package]] -name = "colorchoice" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422" - -[[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 = "const-oid" -version = "0.9.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" - -[[package]] -name = "constant_time_eq" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" - -[[package]] -name = "convert_case" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" - -[[package]] -name = "cookie" -version = "0.16.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e859cd57d0710d9e06c381b550c06e76992472a8c6d527aecd2fc673dcc231fb" -dependencies = [ - "percent-encoding", - "time", - "version_check", -] - -[[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.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" - -[[package]] -name = "cpufeatures" -version = "0.2.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" -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 = "crc32c" -version = "0.6.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a47af21622d091a8f0fb295b88bc886ac74efcc613efc19f5d0b21de5c89e47" -dependencies = [ - "rustc_version", -] - -[[package]] -name = "crc32fast" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "crossbeam-deque" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" -dependencies = [ - "crossbeam-epoch", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.9.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-queue" -version = "0.3.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df0346b5d5e76ac2fe4e327c5fd1118d6be7c51dfb18f9b7922923f287471e35" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-utils" -version = "0.8.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" - -[[package]] -name = "crypto-bigint" -version = "0.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef2b4b23cddf68b89b8f8069890e8c270d54e2d5fe1b143820234805e4cb17ef" -dependencies = [ - "generic-array", - "rand_core", - "subtle", - "zeroize", -] - -[[package]] -name = "crypto-bigint" -version = "0.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" -dependencies = [ - "rand_core", - "subtle", -] - -[[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 2.0.71", -] - -[[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 2.0.71", -] - -[[package]] -name = "dashmap" -version = "5.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" -dependencies = [ - "cfg-if", - "hashbrown 0.14.5", - "lock_api", - "once_cell", - "parking_lot_core 0.9.10", -] - -[[package]] -name = "data-encoding" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" - -[[package]] -name = "der" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1a467a65c5e759bce6e65eaf91cc29f466cdc57cb65777bd646872a8a1fd4de" -dependencies = [ - "const-oid", - "zeroize", -] - -[[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 = "derivative" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "derive_more" -version = "0.99.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce" -dependencies = [ - "convert_case", - "proc-macro2", - "quote", - "rustc_version", - "syn 2.0.71", -] - -[[package]] -name = "deunicode" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "339544cc9e2c4dc3fc7149fd630c5f22263a4fdf18a98afd0075784968b5cf00" - -[[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 = "5.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225" -dependencies = [ - "dirs-sys", -] - -[[package]] -name = "dirs-sys" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" -dependencies = [ - "libc", - "option-ext", - "redox_users", - "windows-sys 0.48.0", -] - -[[package]] -name = "dotenvy" -version = "0.15.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" - -[[package]] -name = "ecdsa" -version = "0.14.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "413301934810f597c1d19ca71c8710e99a3f1ba28a0d2ebc01551a2daeea3c5c" -dependencies = [ - "der 0.6.1", - "elliptic-curve", - "rfc6979", - "signature 1.6.4", -] - -[[package]] -name = "either" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" -dependencies = [ - "serde", -] - -[[package]] -name = "elliptic-curve" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7bb888ab5300a19b8e5bceef25ac745ad065f3c9f7efc6de1b91958110891d3" -dependencies = [ - "base16ct", - "crypto-bigint 0.4.9", - "der 0.6.1", - "digest", - "ff", - "generic-array", - "group", - "pkcs8 0.9.0", - "rand_core", - "sec1", - "subtle", - "zeroize", -] - -[[package]] -name = "encoding_rs" -version = "0.8.34" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "env_logger" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580" -dependencies = [ - "humantime", - "is-terminal", - "log", - "regex", - "termcolor", -] - -[[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.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" -dependencies = [ - "libc", - "windows-sys 0.52.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 = "2.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" - -[[package]] -name = "event-listener" -version = "5.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba" -dependencies = [ - "concurrent-queue", - "parking", - "pin-project-lite", -] - -[[package]] -name = "event-listener-strategy" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1" -dependencies = [ - "event-listener 5.3.1", - "pin-project-lite", -] - -[[package]] -name = "fastrand" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" -dependencies = [ - "instant", -] - -[[package]] -name = "fastrand" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" - -[[package]] -name = "ff" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d013fc25338cc558c5c2cfbad646908fb23591e2404481826742b651c9af7160" -dependencies = [ - "rand_core", - "subtle", -] - -[[package]] -name = "filetime" -version = "0.2.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall 0.4.1", - "windows-sys 0.52.0", -] - -[[package]] -name = "flate2" -version = "1.0.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae" -dependencies = [ - "crc32fast", - "miniz_oxide", -] - -[[package]] -name = "flume" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55ac459de2512911e4b674ce33cf20befaba382d05b62b008afc1c8b57cbf181" -dependencies = [ - "futures-core", - "futures-sink", - "spin 0.9.8", -] - -[[package]] -name = "fnv" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" - -[[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 = "funty" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" - -[[package]] -name = "futures" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-channel" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" -dependencies = [ - "futures-core", - "futures-sink", -] - -[[package]] -name = "futures-core" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" - -[[package]] -name = "futures-executor" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" -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 0.12.3", -] - -[[package]] -name = "futures-io" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" - -[[package]] -name = "futures-lite" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce" -dependencies = [ - "fastrand 1.9.0", - "futures-core", - "futures-io", - "memchr", - "parking", - "pin-project-lite", - "waker-fn", -] - -[[package]] -name = "futures-lite" -version = "2.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5" -dependencies = [ - "fastrand 2.1.0", - "futures-core", - "futures-io", - "parking", - "pin-project-lite", -] - -[[package]] -name = "futures-macro" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.71", -] - -[[package]] -name = "futures-sink" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" - -[[package]] -name = "futures-task" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" - -[[package]] -name = "futures-util" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" -dependencies = [ - "futures-channel", - "futures-core", - "futures-io", - "futures-macro", - "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", - "js-sys", - "libc", - "wasi", - "wasm-bindgen", -] - -[[package]] -name = "gimli" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd" - -[[package]] -name = "glob" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" - -[[package]] -name = "globset" -version = "0.4.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57da3b9b5b85bd66f31093f8c408b90a74431672542466497dcbdfdc02034be1" -dependencies = [ - "aho-corasick", - "bstr", - "log", - "regex-automata 0.4.7", - "regex-syntax 0.8.4", -] - -[[package]] -name = "globwalk" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bf760ebf69878d9fd8f110c89703d90ce35095324d1f1edcb595c63945ee757" -dependencies = [ - "bitflags 2.6.0", - "ignore", - "walkdir", -] - -[[package]] -name = "gloo-timers" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b995a66bb87bebce9a0f4a95aed01daca4872c050bfcb21653361c03bc35e5c" -dependencies = [ - "futures-channel", - "futures-core", - "js-sys", - "wasm-bindgen", -] - -[[package]] -name = "group" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dfbfb3a6cfbd390d5c9564ab283a0349b9b9fcd46a706c1eb10e0db70bfbac7" -dependencies = [ - "ff", - "rand_core", - "subtle", -] - -[[package]] -name = "h2" -version = "0.3.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" -dependencies = [ - "bytes", - "fnv", - "futures-core", - "futures-sink", - "futures-util", - "http 0.2.12", - "indexmap", - "slab", - "tokio", - "tokio-util", - "tracing", -] - -[[package]] -name = "hashbrown" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" -dependencies = [ - "ahash 0.7.8", -] - -[[package]] -name = "hashbrown" -version = "0.14.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" -dependencies = [ - "ahash 0.8.11", - "allocator-api2", -] - -[[package]] -name = "hashlink" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7" -dependencies = [ - "hashbrown 0.14.5", -] - -[[package]] -name = "heck" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" -dependencies = [ - "unicode-segmentation", -] - -[[package]] -name = "heck" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" - -[[package]] -name = "hermit-abi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" - -[[package]] -name = "hermit-abi" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc" - -[[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.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" -dependencies = [ - "windows-sys 0.52.0", -] - -[[package]] -name = "http" -version = "0.2.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" -dependencies = [ - "bytes", - "fnv", - "itoa", -] - -[[package]] -name = "http" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258" -dependencies = [ - "bytes", - "fnv", - "itoa", -] - -[[package]] -name = "http-body" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" -dependencies = [ - "bytes", - "http 0.2.12", - "pin-project-lite", -] - -[[package]] -name = "http-body" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" -dependencies = [ - "bytes", - "http 1.1.0", -] - -[[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 1.1.0", - "http-body 1.0.1", - "pin-project-lite", -] - -[[package]] -name = "httparse" -version = "1.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" - -[[package]] -name = "httpdate" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" - -[[package]] -name = "human_bytes" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91f255a4535024abf7640cb288260811fc14794f62b063652ed349f9a6c2348e" - -[[package]] -name = "humansize" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6cb51c9a029ddc91b07a787f1d86b53ccfa49b0e86688c946ebe8d3555685dd7" -dependencies = [ - "libm", -] - -[[package]] -name = "humantime" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" - -[[package]] -name = "hyper" -version = "0.14.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a152ddd61dfaec7273fe8419ab357f33aee0d914c5f4efbf0d96fa749eea5ec9" -dependencies = [ - "bytes", - "futures-channel", - "futures-core", - "futures-util", - "h2", - "http 0.2.12", - "http-body 0.4.6", - "httparse", - "httpdate", - "itoa", - "pin-project-lite", - "socket2 0.5.7", - "tokio", - "tower-service", - "tracing", - "want", -] - -[[package]] -name = "hyper" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05" -dependencies = [ - "bytes", - "futures-channel", - "futures-util", - "http 1.1.0", - "http-body 1.0.1", - "httparse", - "itoa", - "pin-project-lite", - "smallvec", - "tokio", - "want", -] - -[[package]] -name = "hyper-rustls" -version = "0.24.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" -dependencies = [ - "futures-util", - "http 0.2.12", - "hyper 0.14.30", - "log", - "rustls 0.21.12", - "rustls-native-certs 0.6.3", - "tokio", - "tokio-rustls 0.24.1", -] - -[[package]] -name = "hyper-rustls" -version = "0.27.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ee4be2c948921a1a5320b629c4193916ed787a7f7f293fd3f7f5a6c9de74155" -dependencies = [ - "futures-util", - "http 1.1.0", - "hyper 1.4.1", - "hyper-util", - "rustls 0.23.11", - "rustls-native-certs 0.7.1", - "rustls-pki-types", - "tokio", - "tokio-rustls 0.26.0", - "tower-service", -] - -[[package]] -name = "hyper-tls" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" -dependencies = [ - "bytes", - "hyper 0.14.30", - "native-tls", - "tokio", - "tokio-native-tls", -] - -[[package]] -name = "hyper-util" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ab92f4f49ee4fb4f997c784b7a2e0fa70050211e0b6a287f898c3c9785ca956" -dependencies = [ - "bytes", - "futures-channel", - "futures-util", - "http 1.1.0", - "http-body 1.0.1", - "hyper 1.4.1", - "pin-project-lite", - "socket2 0.5.7", - "tokio", - "tower", - "tower-service", - "tracing", -] - -[[package]] -name = "iana-time-zone" -version = "0.1.60" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" -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 = "ident_case" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" - -[[package]] -name = "idna" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" -dependencies = [ - "unicode-bidi", - "unicode-normalization", -] - -[[package]] -name = "ignore" -version = "0.4.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b46810df39e66e925525d6e38ce1e7f6e1d208f72dc39757880fcb66e2c58af1" -dependencies = [ - "crossbeam-deque", - "globset", - "log", - "memchr", - "regex-automata 0.4.7", - "same-file", - "walkdir", - "winapi-util", -] - -[[package]] -name = "impl-more" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "206ca75c9c03ba3d4ace2460e57b189f39f43de612c2f85836e65c929701bb2d" - -[[package]] -name = "indexmap" -version = "2.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" -dependencies = [ - "equivalent", - "hashbrown 0.14.5", - "serde", -] - -[[package]] -name = "inherent" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0122b7114117e64a63ac49f752a5ca4624d534c7b1c7de796ac196381cd2d947" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.71", -] - -[[package]] -name = "inout" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" -dependencies = [ - "generic-array", -] - -[[package]] -name = "instant" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" -dependencies = [ - "cfg-if", - "js-sys", - "wasm-bindgen", - "web-sys", -] - -[[package]] -name = "io-lifetimes" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" -dependencies = [ - "hermit-abi 0.3.9", - "libc", - "windows-sys 0.48.0", -] - -[[package]] -name = "ipnet" -version = "2.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" - -[[package]] -name = "is-terminal" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b" -dependencies = [ - "hermit-abi 0.3.9", - "libc", - "windows-sys 0.52.0", -] - -[[package]] -name = "is_terminal_polyfill" -version = "1.70.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800" - -[[package]] -name = "itoa" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" - -[[package]] -name = "jobserver" -version = "0.1.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e" -dependencies = [ - "libc", -] - -[[package]] -name = "js-sys" -version = "0.3.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" -dependencies = [ - "wasm-bindgen", -] - -[[package]] -name = "kv-log-macro" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f" -dependencies = [ - "log", -] - -[[package]] -name = "language-tags" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4345964bb142484797b161f473a503a434de77149dd8c7427788c6e13379388" - -[[package]] -name = "lazy_static" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" -dependencies = [ - "spin 0.9.8", -] - -[[package]] -name = "libc" -version = "0.2.155" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" - -[[package]] -name = "libm" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" - -[[package]] -name = "libredox" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" -dependencies = [ - "bitflags 2.6.0", - "libc", -] - -[[package]] -name = "libsqlite3-sys" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4e226dcd58b4be396f7bd3c20da8fdee2911400705297ba7d2d7cc2c30f716" -dependencies = [ - "cc", - "pkg-config", - "vcpkg", -] - -[[package]] -name = "linux-raw-sys" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" - -[[package]] -name = "linux-raw-sys" -version = "0.4.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" - -[[package]] -name = "local-channel" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6cbc85e69b8df4b8bb8b89ec634e7189099cea8927a276b7384ce5488e53ec8" -dependencies = [ - "futures-core", - "futures-sink", - "local-waker", -] - -[[package]] -name = "local-waker" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d873d7c67ce09b42110d801813efbc9364414e356be9935700d368351657487" - -[[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.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" -dependencies = [ - "value-bag", -] - -[[package]] -name = "lru" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3262e75e648fce39813cb56ac41f3c3e3f65217ebf3844d818d1f9398cfb0dc" -dependencies = [ - "hashbrown 0.14.5", -] - -[[package]] -name = "matchers" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" -dependencies = [ - "regex-automata 0.1.10", -] - -[[package]] -name = "matchit" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" - -[[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 = "md5" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771" - -[[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 = "mime_guess" -version = "2.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" -dependencies = [ - "mime", - "unicase", -] - -[[package]] -name = "minimal-lexical" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" - -[[package]] -name = "minio" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77a322ca30e1a0b771b1158a950a71e2edcc31cd99ed593fa707493cdff8f2dd" -dependencies = [ - "async-recursion", - "async-std", - "base64 0.21.7", - "byteorder", - "bytes", - "chrono", - "crc", - "dashmap", - "derivative", - "futures-core", - "futures-util", - "hex", - "hmac", - "http 0.2.12", - "hyper 0.14.30", - "lazy_static", - "md5", - "multimap", - "os_info", - "rand", - "regex", - "reqwest 0.11.27", - "serde", - "serde_json", - "sha2", - "tokio", - "urlencoding", - "xmltree", -] - -[[package]] -name = "miniz_oxide" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08" -dependencies = [ - "adler", -] - -[[package]] -name = "mio" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" -dependencies = [ - "libc", - "log", - "wasi", - "windows-sys 0.48.0", -] - -[[package]] -name = "multimap" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1a5d38b9b352dbd913288736af36af41c48d61b1a8cd34bcecd727561b7d511" -dependencies = [ - "serde", -] - -[[package]] -name = "native-tls" -version = "0.2.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8614eb2c83d59d1c8cc974dd3f920198647674a0a035e1af1fa58707e317466" -dependencies = [ - "libc", - "log", - "openssl", - "openssl-probe", - "openssl-sys", - "schannel", - "security-framework", - "security-framework-sys", - "tempfile", -] - -[[package]] -name = "nom" -version = "7.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" -dependencies = [ - "memchr", - "minimal-lexical", -] - -[[package]] -name = "num-bigint" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" -dependencies = [ - "num-integer", - "num-traits", -] - -[[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-format" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" -dependencies = [ - "arrayvec", - "itoa", -] - -[[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 = "num_cpus" -version = "1.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" -dependencies = [ - "hermit-abi 0.3.9", - "libc", -] - -[[package]] -name = "object" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "081b846d1d56ddfc18fdf1a922e4f6e07a11768ea1b92dec44e42b72712ccfce" -dependencies = [ - "memchr", -] - -[[package]] -name = "once_cell" -version = "1.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" - -[[package]] -name = "openssl" -version = "0.10.65" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2823eb4c6453ed64055057ea8bd416eda38c71018723869dd043a3b1186115e" -dependencies = [ - "bitflags 2.6.0", - "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 2.0.71", -] - -[[package]] -name = "openssl-probe" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" - -[[package]] -name = "openssl-sys" -version = "0.9.103" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6" -dependencies = [ - "cc", - "libc", - "pkg-config", - "vcpkg", -] - -[[package]] -name = "openubl-api" -version = "0.1.0" -dependencies = [ - "anyhow", - "async-trait", - "openubl-common", - "openubl-entity", - "openubl-migration", - "openubl-storage", - "sea-orm", - "sea-query", - "serde", - "serde_json", - "thiserror", - "xsender", -] - -[[package]] -name = "openubl-cli" -version = "0.1.0" -dependencies = [ - "actix-web", - "anyhow", - "clap", - "log", - "openubl-server", - "postgresql_embedded", - "tokio", -] - -[[package]] -name = "openubl-common" -version = "0.1.0" -dependencies = [ - "clap", -] - -[[package]] -name = "openubl-entity" -version = "0.1.0" -dependencies = [ - "sea-orm", -] - -[[package]] -name = "openubl-migration" -version = "0.1.0" -dependencies = [ - "async-std", - "sea-orm-migration", -] - -[[package]] -name = "openubl-server" -version = "0.1.0" -dependencies = [ - "actix-4-jwt-auth", - "actix-multipart", - "actix-web", - "actix-web-httpauth", - "anyhow", - "clap", - "env_logger", - "minio", - "openubl-api", - "openubl-common", - "openubl-entity", - "openubl-storage", - "sea-orm", - "serde", - "thiserror", - "utoipa", - "utoipa-swagger-ui", - "xbuilder", - "xsender", -] - -[[package]] -name = "openubl-signature" -version = "0.1.0" -dependencies = [ - "anyhow", - "thiserror", -] - -[[package]] -name = "openubl-storage" -version = "0.1.0" -dependencies = [ - "anyhow", - "aws-config", - "aws-sdk-s3", - "aws-smithy-runtime", - "aws-smithy-runtime-api", - "clap", - "minio", - "reqwest 0.11.27", - "serde", - "tempfile", - "thiserror", - "tokio", - "uuid", - "zip", -] - -[[package]] -name = "option-ext" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" - -[[package]] -name = "ordered-float" -version = "3.9.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1e1c390732d15f1d48471625cd92d154e66db2c56645e29a9cd26f4699f72dc" -dependencies = [ - "num-traits", -] - -[[package]] -name = "os_info" -version = "3.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae99c7fa6dd38c7cafe1ec085e804f8f555a2f8659b0dbe03f1f9963a9b51092" -dependencies = [ - "log", - "serde", - "windows-sys 0.52.0", -] - -[[package]] -name = "ouroboros" -version = "0.17.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2ba07320d39dfea882faa70554b4bd342a5f273ed59ba7c1c6b4c840492c954" -dependencies = [ - "aliasable", - "ouroboros_macro", - "static_assertions", -] - -[[package]] -name = "ouroboros_macro" -version = "0.17.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec4c6225c69b4ca778c0aea097321a64c421cf4577b331c61b229267edabb6f8" -dependencies = [ - "heck 0.4.1", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 2.0.71", -] - -[[package]] -name = "outref" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4030760ffd992bef45b0ae3f10ce1aba99e33464c90d14dd7c039884963ddc7a" - -[[package]] -name = "p256" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51f44edd08f51e2ade572f141051021c5af22677e42b7dd28a88155151c33594" -dependencies = [ - "ecdsa", - "elliptic-curve", - "sha2", -] - -[[package]] -name = "parking" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae" - -[[package]] -name = "parking_lot" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" -dependencies = [ - "instant", - "lock_api", - "parking_lot_core 0.8.6", -] - -[[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 0.9.10", -] - -[[package]] -name = "parking_lot_core" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc" -dependencies = [ - "cfg-if", - "instant", - "libc", - "redox_syscall 0.2.16", - "smallvec", - "winapi", -] - -[[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 0.5.3", - "smallvec", - "windows-targets 0.52.6", -] - -[[package]] -name = "parse-size" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "944553dd59c802559559161f9816429058b869003836120e262e8caec061b7ae" - -[[package]] -name = "parse-zoneinfo" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f2a05b18d44e2957b88f96ba460715e295bc1d7510468a2f3d3b44535d26c24" -dependencies = [ - "regex", -] - -[[package]] -name = "password-hash" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7676374caaee8a325c9e7a2ae557f216c5563a171d6997b0ef8a65af35147700" -dependencies = [ - "base64ct", - "rand_core", - "subtle", -] - -[[package]] -name = "paste" -version = "1.0.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" - -[[package]] -name = "pbkdf2" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" -dependencies = [ - "digest", - "hmac", - "password-hash", - "sha2", -] - -[[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 = "pest" -version = "2.7.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd53dff83f26735fdc1ca837098ccf133605d794cdae66acfc2bfac3ec809d95" -dependencies = [ - "memchr", - "thiserror", - "ucd-trie", -] - -[[package]] -name = "pest_derive" -version = "2.7.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a548d2beca6773b1c244554d36fcf8548a8a58e74156968211567250e48e49a" -dependencies = [ - "pest", - "pest_generator", -] - -[[package]] -name = "pest_generator" -version = "2.7.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c93a82e8d145725dcbaf44e5ea887c8a869efdcc28706df2d08c69e17077183" -dependencies = [ - "pest", - "pest_meta", - "proc-macro2", - "quote", - "syn 2.0.71", -] - -[[package]] -name = "pest_meta" -version = "2.7.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a941429fea7e08bedec25e4f6785b6ffaacc6b755da98df5ef3e7dcf4a124c4f" -dependencies = [ - "once_cell", - "pest", - "sha2", -] - -[[package]] -name = "phf" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" -dependencies = [ - "phf_shared", -] - -[[package]] -name = "phf_codegen" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8d39688d359e6b34654d328e262234662d16cc0f60ec8dcbe5e718709342a5a" -dependencies = [ - "phf_generator", - "phf_shared", -] - -[[package]] -name = "phf_generator" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" -dependencies = [ - "phf_shared", - "rand", -] - -[[package]] -name = "phf_shared" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b" -dependencies = [ - "siphasher", -] - -[[package]] -name = "pin-project" -version = "1.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" -dependencies = [ - "pin-project-internal", -] - -[[package]] -name = "pin-project-internal" -version = "1.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.71", -] - -[[package]] -name = "pin-project-lite" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" - -[[package]] -name = "pin-utils" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" - -[[package]] -name = "piper" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae1d5c74c9876f070d3e8fd503d748c7d974c3e48da8f41350fa5222ef9b4391" -dependencies = [ - "atomic-waker", - "fastrand 2.1.0", - "futures-io", -] - -[[package]] -name = "pkcs1" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f" -dependencies = [ - "der 0.7.9", - "pkcs8 0.10.2", - "spki 0.7.3", -] - -[[package]] -name = "pkcs8" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9eca2c590a5f85da82668fa685c09ce2888b9430e83299debf1f34b65fd4a4ba" -dependencies = [ - "der 0.6.1", - "spki 0.6.0", -] - -[[package]] -name = "pkcs8" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" -dependencies = [ - "der 0.7.9", - "spki 0.7.3", -] - -[[package]] -name = "pkg-config" -version = "0.3.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" - -[[package]] -name = "polling" -version = "2.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b2d323e8ca7996b3e23126511a523f7e62924d93ecd5ae73b333815b0eb3dce" -dependencies = [ - "autocfg", - "bitflags 1.3.2", - "cfg-if", - "concurrent-queue", - "libc", - "log", - "pin-project-lite", - "windows-sys 0.48.0", -] - -[[package]] -name = "polling" -version = "3.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3ed00ed3fbf728b5816498ecd316d1716eecaced9c0c8d2c5a6740ca214985b" -dependencies = [ - "cfg-if", - "concurrent-queue", - "hermit-abi 0.4.0", - "pin-project-lite", - "rustix 0.38.34", - "tracing", - "windows-sys 0.52.0", -] - -[[package]] -name = "postgresql_archive" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46e5fbe4c6db9cfd2f5cec2a2debd7a251554c21e976befb0f98d300dbfd8b7c" -dependencies = [ - "anyhow", - "async-trait", - "bytes", - "flate2", - "hex", - "http 1.1.0", - "human_bytes", - "lazy_static", - "num-format", - "regex", - "reqwest 0.12.5", - "reqwest-middleware", - "reqwest-retry", - "reqwest-tracing", - "serde", - "serde_json", - "sha2", - "tar", - "target-triple", - "task-local-extensions", - "tempfile", - "thiserror", - "tracing", -] - -[[package]] -name = "postgresql_commands" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9890abe6db21a13f66073ae23d4b9c9cbca21897b5aec01930ef5bbd3d4f954a" -dependencies = [ - "anyhow", - "thiserror", - "tracing", -] - -[[package]] -name = "postgresql_embedded" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ef0577df3599630c970171b31cd9da24f11816585ab6a6dc93567d3335f63fe" -dependencies = [ - "anyhow", - "bytes", - "home", - "lazy_static", - "postgresql_archive", - "postgresql_commands", - "rand", - "tempfile", - "thiserror", - "tokio", - "tracing", - "url", -] - -[[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.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" - -[[package]] -name = "proc-macro-crate" -version = "3.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" -dependencies = [ - "toml_edit", -] - -[[package]] -name = "proc-macro-error" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" -dependencies = [ - "proc-macro-error-attr", - "proc-macro2", - "quote", - "syn 1.0.109", - "version_check", -] - -[[package]] -name = "proc-macro-error-attr" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" dependencies = [ - "proc-macro2", - "quote", - "version_check", + "unicode-bidi", + "unicode-normalization", ] [[package]] -name = "proc-macro2" -version = "1.0.86" +name = "ignore" +version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" +checksum = "b46810df39e66e925525d6e38ce1e7f6e1d208f72dc39757880fcb66e2c58af1" dependencies = [ - "unicode-ident", + "crossbeam-deque", + "globset", + "log", + "memchr", + "regex-automata", + "same-file", + "walkdir", + "winapi-util", ] [[package]] -name = "ptr_meta" -version = "0.1.4" +name = "indexmap" +version = "2.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0738ccf7ea06b608c10564b31debd4f5bc5e197fc8bfe088f68ae5ce81e7a4f1" +checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ - "ptr_meta_derive", + "equivalent", + "hashbrown 0.14.5", ] [[package]] -name = "ptr_meta_derive" -version = "0.1.4" +name = "inout" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac" +checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", + "generic-array", ] [[package]] -name = "quinn" -version = "0.11.2" +name = "ipnet" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4ceeeeabace7857413798eb1ffa1e9c905a9946a57d81fb69b4b71c4d8eb3ad" -dependencies = [ - "bytes", - "pin-project-lite", - "quinn-proto", - "quinn-udp", - "rustc-hash", - "rustls 0.23.11", - "thiserror", - "tokio", - "tracing", -] +checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" [[package]] -name = "quinn-proto" -version = "0.11.3" +name = "itoa" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddf517c03a109db8100448a4be38d498df8a210a99fe0e1b9eaf39e78c640efe" -dependencies = [ - "bytes", - "rand", - "ring 0.17.8", - "rustc-hash", - "rustls 0.23.11", - "slab", - "thiserror", - "tinyvec", - "tracing", -] +checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] -name = "quinn-udp" -version = "0.5.2" +name = "jobserver" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9096629c45860fc7fb143e125eb826b5e721e10be3263160c7d60ca832cf8c46" +checksum = "d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e" dependencies = [ "libc", - "once_cell", - "socket2 0.5.7", - "tracing", - "windows-sys 0.52.0", ] [[package]] -name = "quote" -version = "1.0.36" +name = "js-sys" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" dependencies = [ - "proc-macro2", + "wasm-bindgen", ] [[package]] -name = "radium" -version = "0.7.0" +name = "lazy_static" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] -name = "rand" -version = "0.8.5" +name = "libc" +version = "0.2.155" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" -dependencies = [ - "libc", - "rand_chacha", - "rand_core", -] +checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" [[package]] -name = "rand_chacha" -version = "0.3.1" +name = "libm" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" -dependencies = [ - "ppv-lite86", - "rand_core", -] +checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" [[package]] -name = "rand_core" -version = "0.6.4" +name = "linux-raw-sys" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" -dependencies = [ - "getrandom", -] +checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" [[package]] -name = "redox_syscall" -version = "0.2.16" +name = "lock_api" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" dependencies = [ - "bitflags 1.3.2", + "autocfg", + "scopeguard", ] [[package]] -name = "redox_syscall" -version = "0.4.1" +name = "log" +version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" -dependencies = [ - "bitflags 1.3.2", -] +checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" [[package]] -name = "redox_syscall" -version = "0.5.3" +name = "memchr" +version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4" -dependencies = [ - "bitflags 2.6.0", -] +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] -name = "redox_users" -version = "0.4.5" +name = "mime" +version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891" -dependencies = [ - "getrandom", - "libredox", - "thiserror", -] +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] -name = "regex" -version = "1.10.5" +name = "miniz_oxide" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" +checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08" dependencies = [ - "aho-corasick", - "memchr", - "regex-automata 0.4.7", - "regex-syntax 0.8.4", + "adler", ] [[package]] -name = "regex-automata" -version = "0.1.10" +name = "mio" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" dependencies = [ - "regex-syntax 0.6.29", + "libc", + "wasi", + "windows-sys 0.48.0", ] [[package]] -name = "regex-automata" -version = "0.4.7" +name = "native-tls" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" +checksum = "a8614eb2c83d59d1c8cc974dd3f920198647674a0a035e1af1fa58707e317466" dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax 0.8.4", + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", ] [[package]] -name = "regex-lite" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53a49587ad06b26609c52e423de037e7f57f20d53535d66e08c695f347df952a" - -[[package]] -name = "regex-syntax" -version = "0.6.29" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" - -[[package]] -name = "regex-syntax" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" - -[[package]] -name = "rend" -version = "0.4.2" +name = "num-conv" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71fe3824f5629716b1589be05dacd749f6aa084c87e00e016714a8cdfccc997c" -dependencies = [ - "bytecheck", -] +checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" [[package]] -name = "reqwest" -version = "0.11.27" +name = "num-traits" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" -dependencies = [ - "base64 0.21.7", - "bytes", - "encoding_rs", - "futures-core", - "futures-util", - "h2", - "http 0.2.12", - "http-body 0.4.6", - "hyper 0.14.30", - "hyper-rustls 0.24.2", - "hyper-tls", - "ipnet", - "js-sys", - "log", - "mime", - "native-tls", - "once_cell", - "percent-encoding", - "pin-project-lite", - "rustls 0.21.12", - "rustls-pemfile 1.0.4", - "serde", - "serde_json", - "serde_urlencoded", - "sync_wrapper 0.1.2", - "system-configuration", - "tokio", - "tokio-native-tls", - "tokio-rustls 0.24.1", - "tokio-util", - "tower-service", - "url", - "wasm-bindgen", - "wasm-bindgen-futures", - "wasm-streams", - "web-sys", - "webpki-roots 0.25.4", - "winreg 0.50.0", +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", ] [[package]] -name = "reqwest" -version = "0.12.5" +name = "object" +version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7d6d2a27d57148378eb5e111173f4276ad26340ecc5c49a4a2152167a2d6a37" +checksum = "081b846d1d56ddfc18fdf1a922e4f6e07a11768ea1b92dec44e42b72712ccfce" dependencies = [ - "base64 0.22.1", - "bytes", - "futures-core", - "futures-util", - "http 1.1.0", - "http-body 1.0.1", - "http-body-util", - "hyper 1.4.1", - "hyper-rustls 0.27.2", - "hyper-util", - "ipnet", - "js-sys", - "log", - "mime", - "once_cell", - "percent-encoding", - "pin-project-lite", - "quinn", - "rustls 0.23.11", - "rustls-native-certs 0.7.1", - "rustls-pemfile 2.1.2", - "rustls-pki-types", - "serde", - "serde_json", - "serde_urlencoded", - "sync_wrapper 1.0.1", - "tokio", - "tokio-rustls 0.26.0", - "tower-service", - "url", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", - "winreg 0.52.0", + "memchr", ] [[package]] -name = "reqwest-middleware" -version = "0.3.2" +name = "once_cell" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39346a33ddfe6be00cbc17a34ce996818b97b230b87229f10114693becca1268" -dependencies = [ - "anyhow", - "async-trait", - "http 1.1.0", - "reqwest 0.12.5", - "serde", - "thiserror", - "tower-service", -] +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] -name = "reqwest-retry" -version = "0.5.0" +name = "openssl" +version = "0.10.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40f342894422862af74c50e1e9601cf0931accc9c6981e5eb413c46603b616b5" +checksum = "c2823eb4c6453ed64055057ea8bd416eda38c71018723869dd043a3b1186115e" dependencies = [ - "anyhow", - "async-trait", - "chrono", - "futures", - "getrandom", - "http 1.1.0", - "hyper 1.4.1", - "parking_lot 0.11.2", - "reqwest 0.12.5", - "reqwest-middleware", - "retry-policies", - "tokio", - "tracing", - "wasm-timer", + "bitflags 2.6.0", + "cfg-if", + "foreign-types", + "libc", + "once_cell", + "openssl-macros", + "openssl-sys", ] [[package]] -name = "reqwest-tracing" -version = "0.5.2" +name = "openssl-macros" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e45dcad05dc210fdb0278d62a679eb768730af808f8cb552f810da89bdbe76d" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ - "anyhow", - "async-trait", - "getrandom", - "http 1.1.0", - "matchit", - "reqwest 0.12.5", - "reqwest-middleware", - "tracing", + "proc-macro2", + "quote", + "syn 2.0.71", ] [[package]] -name = "retry-policies" -version = "0.3.0" +name = "openssl-probe" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "493b4243e32d6eedd29f9a398896e35c6943a123b55eec97dcaee98310d25810" -dependencies = [ - "anyhow", - "chrono", - "rand", -] +checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] -name = "rfc6979" -version = "0.3.1" +name = "openssl-sys" +version = "0.9.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7743f17af12fa0b03b803ba12cd6a8d9483a587e89c69445e3909655c0b9fabb" +checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6" dependencies = [ - "crypto-bigint 0.4.9", - "hmac", - "zeroize", + "cc", + "libc", + "pkg-config", + "vcpkg", ] [[package]] -name = "ring" -version = "0.16.20" +name = "parking_lot" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" +checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" dependencies = [ - "cc", - "libc", - "once_cell", - "spin 0.5.2", - "untrusted 0.7.1", - "web-sys", - "winapi", + "lock_api", + "parking_lot_core", ] [[package]] -name = "ring" -version = "0.17.8" +name = "parking_lot_core" +version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ - "cc", "cfg-if", - "getrandom", "libc", - "spin 0.9.8", - "untrusted 0.9.0", - "windows-sys 0.52.0", + "redox_syscall", + "smallvec", + "windows-targets 0.52.6", ] [[package]] -name = "rkyv" -version = "0.7.44" +name = "parse-zoneinfo" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cba464629b3394fc4dbc6f940ff8f5b4ff5c7aef40f29166fd4ad12acbc99c0" +checksum = "1f2a05b18d44e2957b88f96ba460715e295bc1d7510468a2f3d3b44535d26c24" dependencies = [ - "bitvec", - "bytecheck", - "bytes", - "hashbrown 0.12.3", - "ptr_meta", - "rend", - "rkyv_derive", - "seahash", - "tinyvec", - "uuid", + "regex", ] [[package]] -name = "rkyv_derive" -version = "0.7.44" +name = "password-hash" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7dddfff8de25e6f62b9d64e6e432bf1c6736c57d20323e15ee10435fbda7c65" +checksum = "7676374caaee8a325c9e7a2ae557f216c5563a171d6997b0ef8a65af35147700" dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", + "base64ct", + "rand_core", + "subtle", ] [[package]] -name = "rsa" -version = "0.9.6" +name = "pbkdf2" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d0e5124fcb30e76a7e79bfee683a2746db83784b86289f6251b54b7950a0dfc" +checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" dependencies = [ - "const-oid", "digest", - "num-bigint-dig", - "num-integer", - "num-traits", - "pkcs1", - "pkcs8 0.10.2", - "rand_core", - "signature 2.2.0", - "spki 0.7.3", - "subtle", - "zeroize", + "hmac", + "password-hash", + "sha2", ] [[package]] -name = "rust-embed" -version = "8.5.0" +name = "percent-encoding" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" + +[[package]] +name = "pest" +version = "2.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa66af4a4fdd5e7ebc276f115e895611a34739a9c1c01028383d612d550953c0" +checksum = "cd53dff83f26735fdc1ca837098ccf133605d794cdae66acfc2bfac3ec809d95" dependencies = [ - "rust-embed-impl", - "rust-embed-utils", - "walkdir", + "memchr", + "thiserror", + "ucd-trie", +] + +[[package]] +name = "pest_derive" +version = "2.7.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a548d2beca6773b1c244554d36fcf8548a8a58e74156968211567250e48e49a" +dependencies = [ + "pest", + "pest_generator", ] [[package]] -name = "rust-embed-impl" -version = "8.5.0" +name = "pest_generator" +version = "2.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6125dbc8867951125eec87294137f4e9c2c96566e61bf72c45095a7c77761478" +checksum = "3c93a82e8d145725dcbaf44e5ea887c8a869efdcc28706df2d08c69e17077183" dependencies = [ + "pest", + "pest_meta", "proc-macro2", "quote", - "rust-embed-utils", - "shellexpand", "syn 2.0.71", - "walkdir", ] [[package]] -name = "rust-embed-utils" -version = "8.5.0" +name = "pest_meta" +version = "2.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e5347777e9aacb56039b0e1f28785929a8a3b709e87482e7442c72e7c12529d" +checksum = "a941429fea7e08bedec25e4f6785b6ffaacc6b755da98df5ef3e7dcf4a124c4f" dependencies = [ + "once_cell", + "pest", "sha2", - "walkdir", ] [[package]] -name = "rust_decimal" -version = "1.35.0" +name = "phf" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1790d1c4c0ca81211399e0e0af16333276f375209e71a37b67698a373db5b47a" +checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" dependencies = [ - "arrayvec", - "borsh", - "bytes", - "num-traits", + "phf_shared", +] + +[[package]] +name = "phf_codegen" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8d39688d359e6b34654d328e262234662d16cc0f60ec8dcbe5e718709342a5a" +dependencies = [ + "phf_generator", + "phf_shared", +] + +[[package]] +name = "phf_generator" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" +dependencies = [ + "phf_shared", "rand", - "rkyv", - "serde", - "serde_json", ] [[package]] -name = "rust_decimal_macros" -version = "1.35.0" +name = "phf_shared" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a05bf7103af0797dbce0667c471946b29b9eaea34652eff67324f360fec027de" +checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b" dependencies = [ - "quote", - "rust_decimal", + "siphasher", ] [[package]] -name = "rustc-demangle" -version = "0.1.24" +name = "pin-project-lite" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" +checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" [[package]] -name = "rustc-hash" -version = "1.1.0" +name = "pin-utils" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] -name = "rustc_version" -version = "0.4.0" +name = "pkg-config" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" -dependencies = [ - "semver", -] +checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" [[package]] -name = "rustix" -version = "0.37.27" +name = "powerfmt" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea8ca367a3a01fe35e6943c400addf443c0f57670e6ec51196f71a4b8762dd2" -dependencies = [ - "bitflags 1.3.2", - "errno", - "io-lifetimes", - "libc", - "linux-raw-sys 0.3.8", - "windows-sys 0.48.0", -] +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] -name = "rustix" -version = "0.38.34" +name = "ppv-lite86" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" -dependencies = [ - "bitflags 2.6.0", - "errno", - "libc", - "linux-raw-sys 0.4.14", - "windows-sys 0.52.0", -] +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] -name = "rustls" -version = "0.20.9" +name = "proc-macro-crate" +version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b80e3dec595989ea8510028f30c408a4630db12c9cbb8de34203b89d6577e99" +checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" dependencies = [ - "log", - "ring 0.16.20", - "sct", - "webpki", + "toml_edit", ] [[package]] -name = "rustls" -version = "0.21.12" +name = "proc-macro-error" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" dependencies = [ - "log", - "ring 0.17.8", - "rustls-webpki 0.101.7", - "sct", + "proc-macro-error-attr", + "proc-macro2", + "quote", + "version_check", ] [[package]] -name = "rustls" -version = "0.23.11" +name = "proc-macro-error-attr" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4828ea528154ae444e5a642dbb7d5623354030dc9822b83fd9bb79683c7399d0" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" dependencies = [ - "once_cell", - "ring 0.17.8", - "rustls-pki-types", - "rustls-webpki 0.102.5", - "subtle", - "zeroize", + "proc-macro2", + "quote", + "version_check", ] [[package]] -name = "rustls-native-certs" -version = "0.6.3" +name = "proc-macro2" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" dependencies = [ - "openssl-probe", - "rustls-pemfile 1.0.4", - "schannel", - "security-framework", + "unicode-ident", ] [[package]] -name = "rustls-native-certs" -version = "0.7.1" +name = "ptr_meta" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a88d6d420651b496bdd98684116959239430022a115c1240e6c3993be0b15fba" +checksum = "0738ccf7ea06b608c10564b31debd4f5bc5e197fc8bfe088f68ae5ce81e7a4f1" dependencies = [ - "openssl-probe", - "rustls-pemfile 2.1.2", - "rustls-pki-types", - "schannel", - "security-framework", + "ptr_meta_derive", ] [[package]] -name = "rustls-pemfile" -version = "1.0.4" +name = "ptr_meta_derive" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" +checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac" dependencies = [ - "base64 0.21.7", + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] -name = "rustls-pemfile" -version = "2.1.2" +name = "quote" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ - "base64 0.22.1", - "rustls-pki-types", + "proc-macro2", ] [[package]] -name = "rustls-pki-types" -version = "1.7.0" +name = "radium" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d" +checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" [[package]] -name = "rustls-webpki" -version = "0.101.7" +name = "rand" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ - "ring 0.17.8", - "untrusted 0.9.0", + "libc", + "rand_chacha", + "rand_core", ] [[package]] -name = "rustls-webpki" -version = "0.102.5" +name = "rand_chacha" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a6fccd794a42c2c105b513a2f62bc3fd8f3ba57a4593677ceb0bd035164d78" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ - "ring 0.17.8", - "rustls-pki-types", - "untrusted 0.9.0", + "ppv-lite86", + "rand_core", ] [[package]] -name = "ryu" -version = "1.0.18" +name = "rand_core" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom", +] [[package]] -name = "same-file" -version = "1.0.6" +name = "redox_syscall" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4" dependencies = [ - "winapi-util", + "bitflags 2.6.0", ] [[package]] -name = "schannel" -version = "0.1.23" +name = "regex" +version = "1.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" +checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" dependencies = [ - "windows-sys 0.52.0", + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", ] [[package]] -name = "scopeguard" -version = "1.2.0" +name = "regex-automata" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" +checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] [[package]] -name = "sct" -version = "0.7.1" +name = "regex-syntax" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" -dependencies = [ - "ring 0.17.8", - "untrusted 0.9.0", -] +checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" [[package]] -name = "sea-bae" -version = "0.2.0" +name = "rend" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bd3534a9978d0aa7edd2808dc1f8f31c4d0ecd31ddf71d997b3c98e9f3c9114" +checksum = "71fe3824f5629716b1589be05dacd749f6aa084c87e00e016714a8cdfccc997c" dependencies = [ - "heck 0.4.1", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 2.0.71", + "bytecheck", ] [[package]] -name = "sea-orm" -version = "0.12.15" +name = "reqwest" +version = "0.11.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8814e37dc25de54398ee62228323657520b7f29713b8e238649385dbe473ee0" +checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" dependencies = [ - "async-stream", - "async-trait", - "bigdecimal", - "chrono", - "futures", + "base64", + "bytes", + "encoding_rs", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "hyper", + "hyper-tls", + "ipnet", + "js-sys", "log", - "ouroboros", - "rust_decimal", - "sea-orm-macros", - "sea-query", - "sea-query-binder", + "mime", + "native-tls", + "once_cell", + "percent-encoding", + "pin-project-lite", + "rustls-pemfile", "serde", "serde_json", - "sqlx", - "strum", - "thiserror", - "time", - "tracing", + "serde_urlencoded", + "sync_wrapper", + "system-configuration", + "tokio", + "tokio-native-tls", + "tower-service", "url", - "uuid", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "winreg", ] [[package]] -name = "sea-orm-cli" -version = "0.12.15" +name = "rkyv" +version = "0.7.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "620bc560062ae251b1366bde43b3f1508445cab5c2c8cbdb397034638ab1b357" +checksum = "5cba464629b3394fc4dbc6f940ff8f5b4ff5c7aef40f29166fd4ad12acbc99c0" dependencies = [ - "chrono", - "clap", - "dotenvy", - "glob", - "regex", - "sea-schema", - "tracing", - "tracing-subscriber", - "url", + "bitvec", + "bytecheck", + "bytes", + "hashbrown 0.12.3", + "ptr_meta", + "rend", + "rkyv_derive", + "seahash", + "tinyvec", + "uuid", ] [[package]] -name = "sea-orm-macros" -version = "0.12.15" +name = "rkyv_derive" +version = "0.7.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e115c6b078e013aa963cc2d38c196c2c40b05f03d0ac872fe06b6e0d5265603" +checksum = "a7dddfff8de25e6f62b9d64e6e432bf1c6736c57d20323e15ee10435fbda7c65" dependencies = [ - "heck 0.4.1", "proc-macro2", "quote", - "sea-bae", - "syn 2.0.71", - "unicode-ident", + "syn 1.0.109", ] [[package]] -name = "sea-orm-migration" -version = "0.12.15" +name = "rust_decimal" +version = "1.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee8269bc6ff71afd6b78aa4333ac237a69eebd2cdb439036291e64fb4b8db23c" +checksum = "1790d1c4c0ca81211399e0e0af16333276f375209e71a37b67698a373db5b47a" dependencies = [ - "async-trait", - "clap", - "dotenvy", - "futures", - "sea-orm", - "sea-orm-cli", - "sea-schema", - "tracing", - "tracing-subscriber", + "arrayvec", + "borsh", + "bytes", + "num-traits", + "rand", + "rkyv", + "serde", + "serde_json", ] [[package]] -name = "sea-query" -version = "0.30.7" +name = "rust_decimal_macros" +version = "1.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4166a1e072292d46dc91f31617c2a1cdaf55a8be4b5c9f4bf2ba248e3ac4999b" +checksum = "a05bf7103af0797dbce0667c471946b29b9eaea34652eff67324f360fec027de" dependencies = [ - "bigdecimal", - "chrono", - "derivative", - "inherent", - "ordered-float", + "quote", "rust_decimal", - "sea-query-derive", - "serde_json", - "time", - "uuid", ] [[package]] -name = "sea-query-binder" -version = "0.5.0" +name = "rustc-demangle" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36bbb68df92e820e4d5aeb17b4acd5cc8b5d18b2c36a4dd6f4626aabfa7ab1b9" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" + +[[package]] +name = "rustix" +version = "0.38.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" dependencies = [ - "bigdecimal", - "chrono", - "rust_decimal", - "sea-query", - "serde_json", - "sqlx", - "time", - "uuid", + "bitflags 2.6.0", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.52.0", ] [[package]] -name = "sea-query-derive" -version = "0.4.1" +name = "rustls-pemfile" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25a82fcb49253abcb45cdcb2adf92956060ec0928635eb21b4f7a6d8f25ab0bc" +checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" dependencies = [ - "heck 0.4.1", - "proc-macro2", - "quote", - "syn 2.0.71", - "thiserror", + "base64", ] [[package]] -name = "sea-schema" -version = "0.14.2" +name = "ryu" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" + +[[package]] +name = "same-file" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30d148608012d25222442d1ebbfafd1228dbc5221baf4ec35596494e27a2394e" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" dependencies = [ - "futures", - "sea-query", - "sea-schema-derive", + "winapi-util", ] [[package]] -name = "sea-schema-derive" -version = "0.2.0" +name = "schannel" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6f686050f76bffc4f635cda8aea6df5548666b830b52387e8bc7de11056d11e" +checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" dependencies = [ - "heck 0.4.1", - "proc-macro2", - "quote", - "syn 1.0.109", + "windows-sys 0.52.0", ] [[package]] -name = "seahash" -version = "4.1.0" +name = "scopeguard" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] -name = "sec1" -version = "0.3.0" +name = "seahash" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3be24c1842290c45df0a7bf069e0c268a747ad05a192f2fd7dcfdbc1cba40928" -dependencies = [ - "base16ct", - "der 0.6.1", - "generic-array", - "pkcs8 0.9.0", - "subtle", - "zeroize", -] +checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" [[package]] name = "security-framework" @@ -4563,12 +1517,6 @@ dependencies = [ "libc", ] -[[package]] -name = "semver" -version = "1.0.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" - [[package]] name = "serde" version = "1.0.204" @@ -4586,27 +1534,17 @@ checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222" dependencies = [ "proc-macro2", "quote", - "syn 2.0.71", -] - -[[package]] -name = "serde_json" -version = "1.0.120" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e0d21c9a8cae1235ad58a00c11cb40d4b1e5c784f1ef2c537876ed6ffd8b7c5" -dependencies = [ - "indexmap", - "itoa", - "ryu", - "serde", + "syn 2.0.71", ] [[package]] -name = "serde_plain" -version = "1.0.2" +name = "serde_json" +version = "1.0.120" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ce1fc6db65a611022b23a0dec6975d63fb80a302cb3388835ff02c097258d50" +checksum = "4e0d21c9a8cae1235ad58a00c11cb40d4b1e5c784f1ef2c537876ed6ffd8b7c5" dependencies = [ + "itoa", + "ryu", "serde", ] @@ -4632,7 +1570,7 @@ dependencies = [ "futures", "lazy_static", "log", - "parking_lot 0.12.3", + "parking_lot", "serial_test_derive", ] @@ -4669,53 +1607,6 @@ dependencies = [ "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 = "shellexpand" -version = "3.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da03fa3b94cc19e3ebfc88c4229c49d8f08cdbd1228870a45f0ffdf84988e14b" -dependencies = [ - "dirs", -] - -[[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 = "1.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" -dependencies = [ - "digest", - "rand_core", -] - -[[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 = "simdutf8" version = "0.1.4" @@ -4753,16 +1644,6 @@ version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" -[[package]] -name = "socket2" -version = "0.4.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f7916fc008ca5542385b89a3d3ce689953c143e9304a9bf8beec1de48994c0d" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "socket2" version = "0.5.7" @@ -4773,296 +1654,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "spin" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" - -[[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.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67cf02bbac7a337dc36e4f5a693db6c21e7863f45070f7064577eb4367a3212b" -dependencies = [ - "base64ct", - "der 0.6.1", -] - -[[package]] -name = "spki" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" -dependencies = [ - "base64ct", - "der 0.7.9", -] - -[[package]] -name = "sqlformat" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f895e3734318cc55f1fe66258926c9b910c124d47520339efecbb6c59cec7c1f" -dependencies = [ - "nom", - "unicode_categories", -] - -[[package]] -name = "sqlx" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9a2ccff1a000a5a59cd33da541d9f2fdcd9e6e8229cc200565942bff36d0aaa" -dependencies = [ - "sqlx-core", - "sqlx-macros", - "sqlx-mysql", - "sqlx-postgres", - "sqlx-sqlite", -] - -[[package]] -name = "sqlx-core" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24ba59a9342a3d9bab6c56c118be528b27c9b60e490080e9711a04dccac83ef6" -dependencies = [ - "ahash 0.8.11", - "atoi", - "bigdecimal", - "byteorder", - "bytes", - "chrono", - "crc", - "crossbeam-queue", - "either", - "event-listener 2.5.3", - "futures-channel", - "futures-core", - "futures-intrusive", - "futures-io", - "futures-util", - "hashlink", - "hex", - "indexmap", - "log", - "memchr", - "once_cell", - "paste", - "percent-encoding", - "rust_decimal", - "rustls 0.21.12", - "rustls-pemfile 1.0.4", - "serde", - "serde_json", - "sha2", - "smallvec", - "sqlformat", - "thiserror", - "time", - "tokio", - "tokio-stream", - "tracing", - "url", - "uuid", - "webpki-roots 0.25.4", -] - -[[package]] -name = "sqlx-macros" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ea40e2345eb2faa9e1e5e326db8c34711317d2b5e08d0d5741619048a803127" -dependencies = [ - "proc-macro2", - "quote", - "sqlx-core", - "sqlx-macros-core", - "syn 1.0.109", -] - -[[package]] -name = "sqlx-macros-core" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5833ef53aaa16d860e92123292f1f6a3d53c34ba8b1969f152ef1a7bb803f3c8" -dependencies = [ - "dotenvy", - "either", - "heck 0.4.1", - "hex", - "once_cell", - "proc-macro2", - "quote", - "serde", - "serde_json", - "sha2", - "sqlx-core", - "sqlx-mysql", - "sqlx-postgres", - "sqlx-sqlite", - "syn 1.0.109", - "tempfile", - "tokio", - "url", -] - -[[package]] -name = "sqlx-mysql" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ed31390216d20e538e447a7a9b959e06ed9fc51c37b514b46eb758016ecd418" -dependencies = [ - "atoi", - "base64 0.21.7", - "bigdecimal", - "bitflags 2.6.0", - "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", - "rust_decimal", - "serde", - "sha1", - "sha2", - "smallvec", - "sqlx-core", - "stringprep", - "thiserror", - "time", - "tracing", - "uuid", - "whoami", -] - -[[package]] -name = "sqlx-postgres" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c824eb80b894f926f89a0b9da0c7f435d27cdd35b8c655b114e58223918577e" -dependencies = [ - "atoi", - "base64 0.21.7", - "bigdecimal", - "bitflags 2.6.0", - "byteorder", - "chrono", - "crc", - "dotenvy", - "etcetera", - "futures-channel", - "futures-core", - "futures-io", - "futures-util", - "hex", - "hkdf", - "hmac", - "home", - "itoa", - "log", - "md-5", - "memchr", - "num-bigint", - "once_cell", - "rand", - "rust_decimal", - "serde", - "serde_json", - "sha2", - "smallvec", - "sqlx-core", - "stringprep", - "thiserror", - "time", - "tracing", - "uuid", - "whoami", -] - -[[package]] -name = "sqlx-sqlite" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b244ef0a8414da0bed4bb1910426e890b19e5e9bccc27ada6b797d05c55ae0aa" -dependencies = [ - "atoi", - "chrono", - "flume", - "futures-channel", - "futures-core", - "futures-executor", - "futures-intrusive", - "futures-util", - "libsqlite3-sys", - "log", - "percent-encoding", - "serde", - "sqlx-core", - "time", - "tracing", - "url", - "urlencoding", - "uuid", -] - -[[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.25.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125" - [[package]] name = "subtle" version = "2.6.1" @@ -5109,12 +1700,6 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" -[[package]] -name = "sync_wrapper" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394" - [[package]] name = "system-configuration" version = "0.5.1" @@ -5142,32 +1727,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" -[[package]] -name = "tar" -version = "0.4.41" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb797dad5fb5b76fcf519e702f4a589483b5ef06567f160c392832c1f5e44909" -dependencies = [ - "filetime", - "libc", - "xattr", -] - -[[package]] -name = "target-triple" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42a4d50cdb458045afc8131fd91b64904da29548bcb63c7236e0844936c13078" - -[[package]] -name = "task-local-extensions" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba323866e5d033818e3240feeb9f7db2c4296674e4d9e16b97b7bf8f490434e8" -dependencies = [ - "pin-utils", -] - [[package]] name = "tempfile" version = "3.10.1" @@ -5175,8 +1734,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" dependencies = [ "cfg-if", - "fastrand 2.1.0", - "rustix 0.38.34", + "fastrand", + "rustix", "windows-sys 0.52.0", ] @@ -5202,15 +1761,6 @@ dependencies = [ "unic-segment", ] -[[package]] -name = "termcolor" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" -dependencies = [ - "winapi-util", -] - [[package]] name = "thiserror" version = "1.0.63" @@ -5231,16 +1781,6 @@ dependencies = [ "syn 2.0.71", ] -[[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.36" @@ -5248,12 +1788,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" dependencies = [ "deranged", - "itoa", "num-conv", "powerfmt", "serde", "time-core", - "time-macros", ] [[package]] @@ -5262,16 +1800,6 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" -[[package]] -name = "time-macros" -version = "0.2.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" -dependencies = [ - "num-conv", - "time-core", -] - [[package]] name = "tinyvec" version = "1.8.0" @@ -5297,11 +1825,8 @@ dependencies = [ "bytes", "libc", "mio", - "num_cpus", - "parking_lot 0.12.3", "pin-project-lite", - "signal-hook-registry", - "socket2 0.5.7", + "socket2", "tokio-macros", "windows-sys 0.48.0", ] @@ -5327,49 +1852,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "tokio-rustls" -version = "0.23.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" -dependencies = [ - "rustls 0.20.9", - "tokio", - "webpki", -] - -[[package]] -name = "tokio-rustls" -version = "0.24.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" -dependencies = [ - "rustls 0.21.12", - "tokio", -] - -[[package]] -name = "tokio-rustls" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" -dependencies = [ - "rustls 0.23.11", - "rustls-pki-types", - "tokio", -] - -[[package]] -name = "tokio-stream" -version = "0.1.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af" -dependencies = [ - "futures-core", - "pin-project-lite", - "tokio", -] - [[package]] name = "tokio-util" version = "0.7.11" @@ -5400,27 +1882,6 @@ dependencies = [ "winnow", ] -[[package]] -name = "tower" -version = "0.4.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" -dependencies = [ - "futures-core", - "futures-util", - "pin-project", - "pin-project-lite", - "tokio", - "tower-layer", - "tower-service", -] - -[[package]] -name = "tower-layer" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" - [[package]] name = "tower-service" version = "0.3.2" @@ -5433,23 +1894,10 @@ version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ - "log", "pin-project-lite", - "tracing-attributes", "tracing-core", ] -[[package]] -name = "tracing-attributes" -version = "0.1.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.71", -] - [[package]] name = "tracing-core" version = "0.1.32" @@ -5459,21 +1907,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "tracing-subscriber" -version = "0.3.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" -dependencies = [ - "matchers", - "once_cell", - "regex", - "sharded-slab", - "thread_local", - "tracing", - "tracing-core", -] - [[package]] name = "try-lock" version = "0.2.5" @@ -5542,15 +1975,6 @@ dependencies = [ "unic-common", ] -[[package]] -name = "unicase" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7d2d4dafb69621809a81864c9c1b864479e1235c0dd4e199924b9742439ed89" -dependencies = [ - "version_check", -] - [[package]] name = "unicode-bidi" version = "0.3.15" @@ -5572,36 +1996,6 @@ dependencies = [ "tinyvec", ] -[[package]] -name = "unicode-properties" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4259d9d4425d9f0661581b804cb85fe66a4c631cadd8f490d1c13a35d5d9291" - -[[package]] -name = "unicode-segmentation" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" - -[[package]] -name = "unicode_categories" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e" - -[[package]] -name = "untrusted" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" - -[[package]] -name = "untrusted" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" - [[package]] name = "url" version = "2.5.2" @@ -5613,74 +2007,11 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "urlencoding" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" - -[[package]] -name = "utf8parse" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" - -[[package]] -name = "utoipa" -version = "4.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5afb1a60e207dca502682537fefcfd9921e71d0b83e9576060f09abc6efab23" -dependencies = [ - "indexmap", - "serde", - "serde_json", - "utoipa-gen", -] - -[[package]] -name = "utoipa-gen" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bf0e16c02bc4bf5322ab65f10ab1149bdbcaa782cba66dc7057370a3f8190be" -dependencies = [ - "proc-macro-error", - "proc-macro2", - "quote", - "regex", - "syn 2.0.71", -] - -[[package]] -name = "utoipa-swagger-ui" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f839caa8e09dddc3ff1c3112a91ef7da0601075ba5025d9f33ae99c4cb9b6e51" -dependencies = [ - "actix-web", - "mime_guess", - "regex", - "rust-embed", - "serde", - "serde_json", - "utoipa", - "zip", -] - [[package]] name = "uuid" version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314" -dependencies = [ - "getrandom", - "serde", -] - -[[package]] -name = "value-bag" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a84c137d37ab0142f0f2ddfe332651fdbf252e7b7dbb4e67b6c1f1b2e925101" [[package]] name = "vcpkg" @@ -5694,18 +2025,6 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" -[[package]] -name = "vsimd" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64" - -[[package]] -name = "waker-fn" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "317211a0dc0ceedd78fb2ca9a44aed3d7b9b26f81870d485c07122b4350673b7" - [[package]] name = "walkdir" version = "2.5.0" @@ -5731,12 +2050,6 @@ version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" -[[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.92" @@ -5803,34 +2116,6 @@ version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" -[[package]] -name = "wasm-streams" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b65dc4c90b63b118468cf747d8bf3566c1913ef60be765b5730ead9e0a3ba129" -dependencies = [ - "futures-util", - "js-sys", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", -] - -[[package]] -name = "wasm-timer" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" -dependencies = [ - "futures", - "js-sys", - "parking_lot 0.11.2", - "pin-utils", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", -] - [[package]] name = "web-sys" version = "0.3.69" @@ -5841,57 +2126,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "webpki" -version = "0.22.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed63aea5ce73d0ff405984102c42de94fc55a6b75765d621c65262469b3c9b53" -dependencies = [ - "ring 0.17.8", - "untrusted 0.9.0", -] - -[[package]] -name = "webpki-roots" -version = "0.22.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c71e40d7d2c34a5106301fb632274ca37242cd0c9d3e64dbece371a40a2d87" -dependencies = [ - "webpki", -] - -[[package]] -name = "webpki-roots" -version = "0.25.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" - -[[package]] -name = "whoami" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44ab49fad634e88f55bf8f9bb3abd2f27d7204172a112c7c9987e01c1c94ea9" -dependencies = [ - "redox_syscall 0.4.1", - "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-util" version = "0.1.8" @@ -5901,12 +2135,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[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" @@ -6074,16 +2302,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "winreg" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5" -dependencies = [ - "cfg-if", - "windows-sys 0.48.0", -] - [[package]] name = "wyz" version = "0.5.1" @@ -6093,17 +2311,6 @@ dependencies = [ "tap", ] -[[package]] -name = "xattr" -version = "1.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f" -dependencies = [ - "libc", - "linux-raw-sys 0.4.14", - "rustix 0.38.34", -] - [[package]] name = "xbuilder" version = "0.1.0" @@ -6134,31 +2341,16 @@ version = "0.8.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "791978798f0597cfc70478424c2b4fdc2b7a8024aaff78497ef00f24ef674193" -[[package]] -name = "xmlparser" -version = "0.13.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66fee0b777b0f5ac1c69bb06d361268faafa61cd4682ae064a171c16c433e9e4" - -[[package]] -name = "xmltree" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7d8a75eaf6557bb84a65ace8609883db44a29951042ada9b393151532e41fcb" -dependencies = [ - "xml-rs", -] - [[package]] name = "xsender" version = "0.1.0" dependencies = [ "anyhow", - "base64 0.21.7", + "base64", "lazy_static", "log", "regex", - "reqwest 0.11.27", + "reqwest", "serde", "serial_test", "sha2", @@ -6169,32 +2361,6 @@ dependencies = [ "zip", ] -[[package]] -name = "zerocopy" -version = "0.7.35" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" -dependencies = [ - "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 2.0.71", -] - -[[package]] -name = "zeroize" -version = "1.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" - [[package]] name = "zip" version = "0.6.6" @@ -6212,7 +2378,7 @@ dependencies = [ "pbkdf2", "sha1", "time", - "zstd 0.11.2+zstd.1.5.2", + "zstd", ] [[package]] @@ -6221,16 +2387,7 @@ version = "0.11.2+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4" dependencies = [ - "zstd-safe 5.0.2+zstd.1.5.2", -] - -[[package]] -name = "zstd" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcf2b778a664581e31e389454a7072dab1647606d44f7feea22cd5abb9c9f3f9" -dependencies = [ - "zstd-safe 7.2.0", + "zstd-safe", ] [[package]] @@ -6243,15 +2400,6 @@ dependencies = [ "zstd-sys", ] -[[package]] -name = "zstd-safe" -version = "7.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa556e971e7b568dc775c136fc9de8c779b1c2fc3a63defaafadffdbd3181afa" -dependencies = [ - "zstd-sys", -] - [[package]] name = "zstd-sys" version = "2.0.12+zstd.1.5.6" diff --git a/Cargo.toml b/Cargo.toml index 540a6eac..e65f19ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,16 +1,3 @@ [workspace] resolver = "2" -members = [ - "xbuilder", - "xsender", - "openubl/migration", - "openubl/entity", - "openubl/common", - "openubl/api", - "openubl/server", - "openubl/cli", - "openubl/storage", - "openubl/signature", -] - -default-members = ["openubl/cli"] \ No newline at end of file +members = ["xbuilder", "xsender"] diff --git a/openubl/README.md b/openubl/README.md deleted file mode 100644 index 16a8f1c9..00000000 --- a/openubl/README.md +++ /dev/null @@ -1,11 +0,0 @@ -## dev-env - -Starting: - -```shell -docker-compose -f openubl/deploy/compose/compose.yaml up -``` - -```shell -RUST_LOG=info cargo watch -x 'run -p openubl-cli -- server --db-user user --db-password password --oidc-auth-server-url http://localhost:9001/realms/openubl minio --storage-minio-host http://localhost:9002 --storage-minio-access-key admin --storage-minio-secret-key password' -``` diff --git a/openubl/api/Cargo.toml b/openubl/api/Cargo.toml deleted file mode 100644 index fa9523d6..00000000 --- a/openubl/api/Cargo.toml +++ /dev/null @@ -1,22 +0,0 @@ -[package] -name = "openubl-api" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -openubl-entity = { path = "../entity" } -openubl-common = { path = "../common" } -openubl-migration = { path = "../migration" } -openubl-storage = { path = "../storage" } - -xsender = { path = "../../xsender" } - -sea-orm = { version = "0.12", features = ["sea-query-binder", "sqlx-postgres", "runtime-tokio-rustls", "macros"] } -sea-query = "0.30.5" -async-trait = "0.1.75" -anyhow = "1.0.76" -thiserror = "1.0.50" -serde_json = "1.0.108" -serde = { version = "1.0.195", features = ["derive"] } diff --git a/openubl/api/src/db.rs b/openubl/api/src/db.rs deleted file mode 100644 index 9fe04ec6..00000000 --- a/openubl/api/src/db.rs +++ /dev/null @@ -1,91 +0,0 @@ -use sea_orm::{ - ConnectionTrait, DatabaseConnection, DatabaseTransaction, DbBackend, DbErr, ExecResult, - QueryResult, Statement, -}; -use serde::Deserialize; - -#[derive(Copy, Clone)] -pub enum Transactional<'db> { - None, - Some(&'db DatabaseTransaction), -} - -impl<'db> From<&'db DatabaseTransaction> for Transactional<'db> { - fn from(inner: &'db DatabaseTransaction) -> Self { - Self::Some(inner) - } -} - -#[derive(Clone)] -pub enum ConnectionOrTransaction<'db> { - Connection(&'db DatabaseConnection), - Transaction(&'db DatabaseTransaction), -} - -#[async_trait::async_trait] -impl ConnectionTrait for ConnectionOrTransaction<'_> { - fn get_database_backend(&self) -> DbBackend { - match self { - ConnectionOrTransaction::Connection(inner) => inner.get_database_backend(), - ConnectionOrTransaction::Transaction(inner) => inner.get_database_backend(), - } - } - - async fn execute(&self, stmt: Statement) -> Result { - match self { - ConnectionOrTransaction::Connection(inner) => inner.execute(stmt).await, - ConnectionOrTransaction::Transaction(inner) => inner.execute(stmt).await, - } - } - - async fn execute_unprepared(&self, sql: &str) -> Result { - match self { - ConnectionOrTransaction::Connection(inner) => inner.execute_unprepared(sql).await, - ConnectionOrTransaction::Transaction(inner) => inner.execute_unprepared(sql).await, - } - } - - async fn query_one(&self, stmt: Statement) -> Result, DbErr> { - match self { - ConnectionOrTransaction::Connection(inner) => inner.query_one(stmt).await, - ConnectionOrTransaction::Transaction(inner) => inner.query_one(stmt).await, - } - } - - async fn query_all(&self, stmt: Statement) -> Result, DbErr> { - match self { - ConnectionOrTransaction::Connection(inner) => inner.query_all(stmt).await, - ConnectionOrTransaction::Transaction(inner) => inner.query_all(stmt).await, - } - } -} - -#[derive(Deserialize)] -pub struct Paginated { - pub limit: u64, - pub offset: u64, -} - -impl Default for Paginated { - fn default() -> Self { - Paginated { - offset: 0, - limit: 10, - } - } -} - -impl Paginated { - pub fn page_number(&self) -> u64 { - self.offset * self.limit - } - - pub fn page_size(&self) -> u64 { - self.limit - } -} - -pub struct PaginatedResults { - pub items: Vec, - pub num_items: u64, -} diff --git a/openubl/api/src/lib.rs b/openubl/api/src/lib.rs deleted file mode 100644 index 143a3f86..00000000 --- a/openubl/api/src/lib.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub mod db; -pub mod system; diff --git a/openubl/api/src/system/credentials.rs b/openubl/api/src/system/credentials.rs deleted file mode 100644 index bb4377d2..00000000 --- a/openubl/api/src/system/credentials.rs +++ /dev/null @@ -1,145 +0,0 @@ -use sea_orm::ActiveValue::Set; -use sea_orm::ColumnTrait; -use sea_orm::QueryFilter; -use sea_orm::{ActiveModelTrait, EntityTrait, QuerySelect, RelationTrait}; -use sea_query::JoinType; - -use openubl_entity as entity; - -use crate::db::Transactional; -use crate::system::error::Error; -use crate::system::InnerSystem; - -pub struct CredentialsContext { - pub system: InnerSystem, - pub credentials: entity::credentials::Model, -} - -impl From<(&InnerSystem, entity::credentials::Model)> for CredentialsContext { - fn from((system, credentials): (&InnerSystem, entity::credentials::Model)) -> Self { - Self { - system: system.clone(), - credentials, - } - } -} - -impl InnerSystem { - pub async fn find_credentials_by_id( - &self, - id: i32, - tx: Transactional<'_>, - ) -> Result, Error> { - Ok(entity::credentials::Entity::find_by_id(id) - .one(&self.connection(tx)) - .await? - .map(|e| (self, e).into())) - } - - pub async fn find_credentials_by_supplier_id( - &self, - supplier_id: &str, - tx: Transactional<'_>, - ) -> Result, Error> { - let credential: Option = entity::credentials::Entity::find() - .join( - JoinType::InnerJoin, - entity::credentials::Relation::SendRule.def(), - ) - .filter(entity::send_rule::Column::SupplierId.eq(supplier_id)) - .one(&self.connection(tx)) - .await? - .map(|e| (self, e).into()); - - match credential { - Some(credential) => Ok(Some(credential)), - - // If no credentials found, try the default one - None => Ok(entity::credentials::Entity::find() - .join( - JoinType::InnerJoin, - entity::credentials::Relation::SendRule.def(), - ) - .filter(entity::send_rule::Column::SupplierId.eq("*")) - .one(&self.connection(tx)) - .await? - .map(|e| (self, e).into())), - } - } - - pub async fn list_credentials( - &self, - tx: Transactional<'_>, - ) -> Result, Error> { - Ok(entity::credentials::Entity::find() - .all(&self.connection(tx)) - .await? - .drain(0..) - .map(|credentials| (self, credentials).into()) - .collect()) - } - - pub async fn persist_credentials( - &self, - model: &entity::credentials::Model, - supplier_ids: &[String], - tx: Transactional<'_>, - ) -> Result { - let entity = entity::credentials::ActiveModel { - name: Set(model.name.clone()), - description: Set(model.description.clone()), - username_sol: Set(model.username_sol.clone()), - password_sol: Set(model.password_sol.clone()), - client_id: Set(model.client_id.clone()), - client_secret: Set(model.client_secret.clone()), - - url_invoice: Set(model.url_invoice.clone()), - url_despatch: Set(model.url_despatch.clone()), - url_perception_retention: Set(model.url_perception_retention.clone()), - - id: Default::default(), - }; - - let result = entity.insert(&self.connection(tx)).await?; - - let rules = supplier_ids - .iter() - .map(|supplier_id| entity::send_rule::ActiveModel { - id: Default::default(), - supplier_id: Set(supplier_id.clone()), - credentials_id: Set(result.id), - }) - .collect::>(); - let _rules = entity::send_rule::Entity::insert_many(rules) - .exec(&self.connection(tx)) - .await?; - - Ok((self, result).into()) - } -} - -impl CredentialsContext { - pub async fn update( - &self, - model: &entity::credentials::Model, - tx: Transactional<'_>, - ) -> Result<(), Error> { - let mut entity: entity::credentials::ActiveModel = self.credentials.clone().into(); - - entity.name = Set(model.name.clone()); - entity.description = Set(model.description.clone()); - entity.username_sol = Set(model.username_sol.clone()); - entity.password_sol = Set(model.password_sol.clone()); - entity.client_id = Set(model.client_id.clone()); - entity.client_secret = Set(model.client_secret.clone()); - - entity.update(&self.system.connection(tx)).await?; - Ok(()) - } - - pub async fn delete(&self, tx: Transactional<'_>) -> Result<(), Error> { - let entity: entity::credentials::ActiveModel = self.credentials.clone().into(); - entity.delete(&self.system.connection(tx)).await?; - Ok(()) - } -} diff --git a/openubl/api/src/system/document.rs b/openubl/api/src/system/document.rs deleted file mode 100644 index 1c1c193e..00000000 --- a/openubl/api/src/system/document.rs +++ /dev/null @@ -1,177 +0,0 @@ -use sea_orm::ActiveValue::Set; -use sea_orm::ColumnTrait; -use sea_orm::{ActiveModelTrait, EntityTrait, PaginatorTrait, QueryFilter, QueryOrder}; -use sea_query::Order::Desc; - -use openubl_entity as entity; -use openubl_entity::delivery::{TargetSendFileProtocolAction, TargetVerifyTicketProtocolAction}; -use xsender::prelude::*; - -use crate::db::{Paginated, PaginatedResults, Transactional}; -use crate::system::error::Error; -use crate::system::InnerSystem; - -pub struct DocumentContext { - pub system: InnerSystem, - pub document: entity::document::Model, -} - -impl From<(&InnerSystem, entity::document::Model)> for DocumentContext { - fn from((system, document): (&InnerSystem, entity::document::Model)) -> Self { - Self { - system: system.clone(), - document, - } - } -} - -impl InnerSystem { - pub async fn find_document_by_id( - &self, - id: i32, - tx: Transactional<'_>, - ) -> Result, Error> { - Ok(entity::document::Entity::find_by_id(id) - .one(&self.connection(tx)) - .await? - .map(|document| (self, document).into())) - } - - pub async fn list_documents( - &self, - paginated: Paginated, - tx: Transactional<'_>, - ) -> Result, Error> { - let connection = self.connection(tx); - let pagination = entity::document::Entity::find() - .order_by(entity::document::Column::Id, Desc) - .paginate(&connection, paginated.page_size()); - - Ok(PaginatedResults { - items: pagination - .fetch_page(paginated.page_number()) - .await? - .drain(0..) - .map(|document| (self, document).into()) - .collect::>(), - num_items: pagination.num_items().await?, - }) - } - - pub async fn find_document_by_ubl_params( - &self, - ruc: &str, - document_type: &str, - document_id: &str, - sha256: &str, - tx: Transactional<'_>, - ) -> Result, Error> { - Ok(entity::document::Entity::find() - .filter(entity::document::Column::Type.eq(document_type)) - .filter(entity::document::Column::Identifier.eq(document_id)) - .filter(entity::document::Column::SupplierId.eq(ruc)) - .filter(entity::document::Column::Sha256.eq(sha256)) - .one(&self.connection(tx)) - .await? - .map(|document| (self, document).into())) - } - - pub async fn persist_document( - &self, - model: &entity::document::Model, - tx: Transactional<'_>, - ) -> Result { - let entity = entity::document::ActiveModel { - file_id: Set(model.file_id.clone()), - r#type: Set(model.r#type.clone()), - identifier: Set(model.identifier.clone()), - supplier_id: Set(model.supplier_id.clone()), - voided_document_code: Set(model.voided_document_code.clone()), - digest_value: Set(model.digest_value.clone()), - sha256: Set(model.sha256.clone()), - id: Default::default(), - }; - - let result = entity.insert(&self.connection(tx)).await?; - Ok((self, result).into()) - } -} - -impl DocumentContext { - pub async fn add_delivery( - &self, - response_wrapper: &SendFileResponseWrapper, - tx: Transactional<'_>, - ) -> Result<(), Error> { - let mut entity = match &response_wrapper.response { - SendFileAggregatedResponse::Cdr(_crd_base64, cdr) => entity::delivery::ActiveModel { - document_id: Set(self.document.id), - response_cdr_response_code: Set(Some(cdr.response_code.clone())), - response_cdr_description: Set(Some(cdr.description.clone())), - response_cdr_notes: Set(Some(cdr.notes.clone())), - ..Default::default() - }, - SendFileAggregatedResponse::Ticket(ticket) => entity::delivery::ActiveModel { - document_id: Set(self.document.id), - response_ticket: Set(Some(ticket.clone())), - ..Default::default() - }, - SendFileAggregatedResponse::Error(error) => entity::delivery::ActiveModel { - document_id: Set(self.document.id), - response_error_code: Set(Some(error.code.clone())), - response_error_message: Set(Some(error.message.clone())), - ..Default::default() - }, - }; - - match &response_wrapper.send_file_target { - SendFileTarget::Soap(url, action) => { - entity.target_send_file_url = Set(url.clone()); - - match action { - SoapFileTargetAction::Bill => { - entity.target_send_file_protocol = - Set(TargetSendFileProtocolAction::SoapBill); - } - SoapFileTargetAction::Summary => { - entity.target_send_file_protocol = - Set(TargetSendFileProtocolAction::SoapSummary); - } - SoapFileTargetAction::Pack => { - entity.target_send_file_protocol = - Set(TargetSendFileProtocolAction::SoapPack); - } - } - } - SendFileTarget::Rest(url, action) => { - entity.target_send_file_url = Set(url.clone()); - - match action { - RestFileTargetAction::SendDocument => { - entity.target_send_file_protocol = - Set(TargetSendFileProtocolAction::RestSendDocument); - } - } - } - }; - - match &response_wrapper.verify_ticket_target { - None => {} - Some(verify_ticket_target) => match verify_ticket_target { - VerifyTicketTarget::Soap(url) => { - entity.target_verify_ticket_url = Set(Some(url.clone())); - entity.target_verify_ticket_protocol = - Set(Some(TargetVerifyTicketProtocolAction::SOAP)); - } - VerifyTicketTarget::Rest(url) => { - entity.target_verify_ticket_url = Set(Some(url.clone())); - entity.target_verify_ticket_protocol = - Set(Some(TargetVerifyTicketProtocolAction::REST)); - } - }, - }; - - let _result = entity.insert(&self.system.connection(tx)).await?; - Ok(()) - } -} diff --git a/openubl/api/src/system/error.rs b/openubl/api/src/system/error.rs deleted file mode 100644 index 2be46b42..00000000 --- a/openubl/api/src/system/error.rs +++ /dev/null @@ -1,13 +0,0 @@ -use sea_orm::DbErr; - -#[derive(Debug, thiserror::Error)] -pub enum Error { - #[error(transparent)] - Json(#[from] serde_json::Error), - - #[error(transparent)] - Database(#[from] DbErr), - - #[error(transparent)] - Any(#[from] anyhow::Error), -} diff --git a/openubl/api/src/system/mod.rs b/openubl/api/src/system/mod.rs deleted file mode 100644 index dd1f0f12..00000000 --- a/openubl/api/src/system/mod.rs +++ /dev/null @@ -1,137 +0,0 @@ -use std::fmt::{Debug, Display, Formatter}; -use std::sync::Arc; - -use sea_orm::{ConnectOptions, ConnectionTrait, Database, DatabaseConnection, DbErr, Statement}; - -use migration::{Migrator, MigratorTrait}; - -use crate::db::{ConnectionOrTransaction, Transactional}; - -pub mod credentials; -pub mod document; -pub mod error; - -pub type System = Arc; - -#[derive(Clone)] -pub struct InnerSystem { - db: DatabaseConnection, -} - -pub enum Error { - Database(DbErr), - Transaction(E), -} - -impl From for Error { - fn from(value: DbErr) -> Self { - Self::Database(value) - } -} - -impl Debug for Error { - fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { - match self { - Self::Transaction(_) => f.debug_tuple("Transaction").finish(), - Self::Database(err) => f.debug_tuple("Database").field(err).finish(), - } - } -} - -impl std::fmt::Display for Error { - fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { - match self { - Self::Transaction(inner) => write!(f, "transaction error: {}", inner), - Self::Database(err) => write!(f, "database error: {err}"), - } - } -} - -impl std::error::Error for Error {} - -impl InnerSystem { - pub async fn with_config( - database: &openubl_common::config::Database, - ) -> Result { - Self::new( - &database.username, - &database.password, - &database.host, - database.port, - &database.name, - ) - .await - } - - pub async fn new( - username: &str, - password: &str, - host: &str, - port: impl Into>, - db_name: &str, - ) -> Result { - let port = port.into().unwrap_or(5432); - let url = format!("postgres://{username}:{password}@{host}:{port}/{db_name}"); - println!("connect to {}", url); - - let mut opt = ConnectOptions::new(url); - opt.min_connections(16); - - let db = Database::connect(opt).await?; - - Migrator::refresh(&db).await?; - - Ok(Self { db }) - } - - pub(crate) fn connection<'db>( - &'db self, - tx: Transactional<'db>, - ) -> ConnectionOrTransaction<'db> { - match tx { - Transactional::None => ConnectionOrTransaction::Connection(&self.db), - Transactional::Some(tx) => ConnectionOrTransaction::Transaction(tx), - } - } - - #[cfg(test)] - pub async fn for_test(name: &str) -> Result, anyhow::Error> { - Self::bootstrap("postgres", "eggs", "localhost", None, name) - .await - .map(Arc::new) - } - - pub async fn bootstrap( - username: &str, - password: &str, - host: &str, - port: impl Into>, - db_name: &str, - ) -> Result { - let url = format!("postgres://{}:{}@{}/postgres", username, password, host); - println!("bootstrap to {}", url); - let db = Database::connect(url).await?; - - let _drop_db_result = db - .execute(Statement::from_string( - db.get_database_backend(), - format!("DROP DATABASE IF EXISTS \"{}\";", db_name), - )) - .await?; - - let _create_db_result = db - .execute(Statement::from_string( - db.get_database_backend(), - format!("CREATE DATABASE \"{}\";", db_name), - )) - .await?; - - db.close().await?; - - Self::new(username, password, host, port, db_name).await - } - - pub async fn close(self) -> anyhow::Result<()> { - Ok(self.db.close().await?) - } -} diff --git a/openubl/cli/Cargo.toml b/openubl/cli/Cargo.toml deleted file mode 100644 index 53c63963..00000000 --- a/openubl/cli/Cargo.toml +++ /dev/null @@ -1,16 +0,0 @@ -[package] -name = "openubl-cli" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -openubl-server = { path = "../server" } - -clap = { version = "4.4.11", features = ["derive", "env"] } -anyhow = "1.0.76" -actix-web = "4.4.1" -log = "0.4.21" -postgresql_embedded = "0.9.5" -tokio = { version = "1.38.0", features = ["full"] } \ No newline at end of file diff --git a/openubl/cli/src/main.rs b/openubl/cli/src/main.rs deleted file mode 100644 index 68050fc9..00000000 --- a/openubl/cli/src/main.rs +++ /dev/null @@ -1,106 +0,0 @@ -use std::env; -use std::fs::create_dir_all; -use std::process::{ExitCode, Termination}; -use std::time::Duration; - -use clap::Parser; -use postgresql_embedded::PostgreSQL; -use tokio::task::{spawn_local, LocalSet}; - -#[allow(clippy::large_enum_variant)] -#[derive(clap::Subcommand, Debug)] -pub enum Command { - Server(openubl_server::ServerRun), - // Sender(SenderRun), -} - -#[derive(clap::Parser, Debug)] -#[command( - author, - version = env ! ("CARGO_PKG_VERSION"), - about = "openubl", - long_about = None -)] -pub struct Cli { - #[command(subcommand)] - pub(crate) command: Option, -} - -impl Cli { - async fn run(self) -> anyhow::Result { - match self.command { - Some(Command::Server(run)) => run.run().await, - None => dev_mode().await, - } - } -} - -async fn dev_mode() -> anyhow::Result { - log::warn!("Setting up managed DB; not suitable for production use!"); - - let current_dir = env::current_dir()?; - let work_dir = current_dir.join(".openubl"); - let db_dir = work_dir.join("postgres"); - let data_dir = work_dir.join("data"); - create_dir_all(&data_dir)?; - let settings = postgresql_embedded::Settings { - username: "postgres".to_string(), - password: "openubl".to_string(), - temporary: false, - installation_dir: db_dir.clone(), - timeout: Some(Duration::from_secs(30)), - data_dir, - ..Default::default() - }; - let mut postgresql = PostgreSQL::new(PostgreSQL::default_version(), settings); - postgresql.setup().await?; - postgresql.start().await?; - - let database_name = "openubl"; - if !postgresql.database_exists(database_name).await? { - postgresql.create_database(database_name).await?; - } - - let port = postgresql.settings().port; - let username = &postgresql.settings().username; - let password = &postgresql.settings().password; - - log::info!("PostgreSQL installed in {:?}", db_dir); - log::info!("Running on port {}", port); - - let api = Cli::parse_from([ - "cli", - "server", - "--db-name", - database_name, - "--db-user", - username, - "--db-password", - password, - "--db-port", - &port.to_string(), - "local", - "--storage-local-dir", - ".openubl/storage", - ]); - - LocalSet::new() - .run_until(async { spawn_local(api.run()).await? }) - .await -} - -#[actix_web::main] -async fn main() -> impl Termination { - Cli::parse().run().await -} - -#[cfg(test)] -mod tests { - use super::*; - - #[test] - fn verify_cli() { - use clap::CommandFactory; - Cli::command().debug_assert(); - } -} diff --git a/openubl/common/Cargo.toml b/openubl/common/Cargo.toml deleted file mode 100644 index 38608fef..00000000 --- a/openubl/common/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "openubl-common" -version = "0.1.0" -edition = "2021" - -[dependencies] -clap = { version = "4.4.11", features = ["derive", "env"] } diff --git a/openubl/common/src/config.rs b/openubl/common/src/config.rs deleted file mode 100644 index 5483e61a..00000000 --- a/openubl/common/src/config.rs +++ /dev/null @@ -1,13 +0,0 @@ -#[derive(clap::Args, Debug)] -pub struct Database { - #[arg(id = "db-user", long, env = "DB_USER")] - pub username: String, - #[arg(id = "db-password", long, env = "DB_PASSWORD")] - pub password: String, - #[arg(id = "db-host", long, env = "DB_HOST", default_value = "localhost")] - pub host: String, - #[arg(id = "db-port", long, env = "DB_PORT", default_value_t = 5432)] - pub port: u16, - #[arg(id = "db-name", long, env = "DB_NAME", default_value = "openubl")] - pub name: String, -} diff --git a/openubl/common/src/lib.rs b/openubl/common/src/lib.rs deleted file mode 100644 index ef68c369..00000000 --- a/openubl/common/src/lib.rs +++ /dev/null @@ -1 +0,0 @@ -pub mod config; diff --git a/openubl/deploy/compose/compose.yaml b/openubl/deploy/compose/compose.yaml deleted file mode 100644 index c969c564..00000000 --- a/openubl/deploy/compose/compose.yaml +++ /dev/null @@ -1,67 +0,0 @@ -version: '3' -services: - postgres: - image: docker.io/library/postgres:16 - ports: - - "5432:5432" - environment: - POSTGRES_DB: "openubl" - POSTGRES_USER: "user" - POSTGRES_PASSWORD: "password" - healthcheck: - test: [ "CMD-SHELL", "pg_isready -U user -d openubl" ] - interval: 5s - timeout: 3s - retries: 3 - -# keycloak: -# image: quay.io/keycloak/keycloak:23.0.3 -# command: start-dev -# ports: -# - "9001:8080" -# environment: -# KEYCLOAK_ADMIN: admin -# KEYCLOAK_ADMIN_PASSWORD: admin -# keycloak-init: -# image: quay.io/keycloak/keycloak:23.0.3 -# entrypoint: /usr/bin/bash -# command: /tmp/keycloak/setup.sh -# environment: -# KEYCLOAK_SERVER_URL: http://keycloak:8080 -# KEYCLOAK_ADMIN: admin -# KEYCLOAK_ADMIN_PASSWORD: admin -# volumes: -# - ./scripts/keycloak:/tmp/keycloak:z -# depends_on: -# keycloak: -# condition: service_started -# -# minio: -# image: quay.io/minio/minio:latest -# command: server --console-address ":9001" /data -# ports: -# - "9002:9000" -# - "9003:9001" -# environment: -# MINIO_ROOT_USER: "admin" -# MINIO_ROOT_PASSWORD: "password" -# MINIO_NOTIFY_NATS_ENABLE_OPENUBL: "on" -# MINIO_NOTIFY_NATS_ADDRESS_OPENUBL: "nats:4222" -# MINIO_NOTIFY_NATS_SUBJECT_OPENUBL: "openubl" -# healthcheck: -# test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1 -# interval: 10s -# timeout: 5s -# retries: 5 -# depends_on: -# nats: -# condition: service_started -# minio-init: -# image: quay.io/minio/minio:latest -# entrypoint: /usr/bin/bash -# command: /tmp/minio/setup.sh -# volumes: -# - ./scripts/minio:/tmp/minio:z -# depends_on: -# minio: -# condition: service_healthy \ No newline at end of file diff --git a/openubl/deploy/compose/scripts/keycloak/setup.sh b/openubl/deploy/compose/scripts/keycloak/setup.sh deleted file mode 100755 index 6ec69549..00000000 --- a/openubl/deploy/compose/scripts/keycloak/setup.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -l -KEYCLOAK_HOME="/opt/keycloak" - -while ! $KEYCLOAK_HOME/bin/kcadm.sh config credentials config --server "$KEYCLOAK_SERVER_URL" --realm master --user "$KEYCLOAK_ADMIN" --password "$KEYCLOAK_ADMIN_PASSWORD" &> /dev/null; do - echo "Waiting for Keycloak to start up..." - sleep 3 -done - -# Create realm -$KEYCLOAK_HOME/bin/kcadm.sh create realms -s realm=openubl -s enabled=true -o - -# Create clients -$KEYCLOAK_HOME/bin/kcadm.sh create clients -r openubl -f - << EOF - { - "clientId": "openubl-api", - "secret": "secret" - } -EOF - -$KEYCLOAK_HOME/bin/kcadm.sh create clients -r openubl -f - << EOF - { - "clientId": "openubl-ui", - "publicClient": true, - "redirectUris": ["*"], - "webOrigins": ["*"] - } -EOF - -# Create user -$KEYCLOAK_HOME/bin/kcadm.sh create users -r=openubl -s username=carlos -s enabled=true -$KEYCLOAK_HOME/bin/kcadm.sh set-password -r=openubl --username carlos --new-password carlos \ No newline at end of file diff --git a/openubl/deploy/compose/scripts/minio/setup.sh b/openubl/deploy/compose/scripts/minio/setup.sh deleted file mode 100755 index 79df9d65..00000000 --- a/openubl/deploy/compose/scripts/minio/setup.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -l - -# Connect to minio -/usr/bin/mc config host add myminio http://minio:9000 admin password; - -# Create buckets -/usr/bin/mc mb myminio/openubl || true; - -# Config events -/usr/bin/mc event add myminio/openubl arn:minio:sqs::OPENUBL:nats --event "put,delete"; - -# Restart service -/usr/bin/mc admin service restart myminio; \ No newline at end of file diff --git a/openubl/entity/Cargo.toml b/openubl/entity/Cargo.toml deleted file mode 100644 index 5d635c0c..00000000 --- a/openubl/entity/Cargo.toml +++ /dev/null @@ -1,8 +0,0 @@ -[package] -name = "openubl-entity" -version = "0.1.0" -edition = "2021" -publish = false - -[dependencies] -sea-orm = { version = "0.12.10", features = ["sqlx-postgres", "runtime-tokio-rustls", "macros"] } \ No newline at end of file diff --git a/openubl/entity/src/credentials.rs b/openubl/entity/src/credentials.rs deleted file mode 100644 index 802be237..00000000 --- a/openubl/entity/src/credentials.rs +++ /dev/null @@ -1,33 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.10 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] -#[sea_orm(table_name = "credentials")] -pub struct Model { - #[sea_orm(primary_key)] - pub id: i32, - pub name: String, - pub description: Option, - pub username_sol: String, - pub password_sol: String, - pub client_id: String, - pub client_secret: String, - pub url_invoice: String, - pub url_despatch: String, - pub url_perception_retention: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::send_rule::Entity")] - SendRule, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::SendRule.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/openubl/entity/src/delivery.rs b/openubl/entity/src/delivery.rs deleted file mode 100644 index fe71ede6..00000000 --- a/openubl/entity/src/delivery.rs +++ /dev/null @@ -1,66 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.10 - -use sea_orm::entity::prelude::*; - -#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum)] -#[sea_orm(rs_type = "String", db_type = "String(Some(1))")] -pub enum TargetSendFileProtocolAction { - #[sea_orm(string_value = "B")] - SoapBill, - #[sea_orm(string_value = "S")] - SoapSummary, - #[sea_orm(string_value = "P")] - SoapPack, - #[sea_orm(string_value = "D")] - RestSendDocument, -} - -#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum)] -#[sea_orm(rs_type = "String", db_type = "String(Some(1))")] -pub enum TargetVerifyTicketProtocolAction { - #[sea_orm(string_value = "S")] - SOAP, - #[sea_orm(string_value = "R")] - REST, -} - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] -#[sea_orm(table_name = "delivery")] -pub struct Model { - #[sea_orm(primary_key)] - pub id: i32, - pub response_ticket: Option, - pub response_cdr_description: Option, - pub response_cdr_response_code: Option, - pub response_cdr_notes: Option>, - pub response_error_code: Option, - pub response_error_message: Option, - - pub target_send_file_protocol: TargetSendFileProtocolAction, - pub target_send_file_url: String, - - pub target_verify_ticket_protocol: Option, - pub target_verify_ticket_url: Option, - - pub document_id: i32, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::document::Entity", - from = "Column::DocumentId", - to = "super::document::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Document, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Document.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/openubl/entity/src/document.rs b/openubl/entity/src/document.rs deleted file mode 100644 index 4f92f07c..00000000 --- a/openubl/entity/src/document.rs +++ /dev/null @@ -1,22 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.10 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] -#[sea_orm(table_name = "ubl_document")] -pub struct Model { - #[sea_orm(primary_key)] - pub id: i32, - pub file_id: String, - pub supplier_id: String, - pub identifier: String, - pub r#type: String, - pub voided_document_code: Option, - pub digest_value: Option, - pub sha256: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation {} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/openubl/entity/src/keystore.rs b/openubl/entity/src/keystore.rs deleted file mode 100644 index b2b5a279..00000000 --- a/openubl/entity/src/keystore.rs +++ /dev/null @@ -1,25 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.10 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] -#[sea_orm(table_name = "keystore")] -pub struct Model { - #[sea_orm(primary_key)] - pub id: i32, - pub name: String, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm(has_many = "super::keystore_config::Entity")] - KeystoreConfig, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::KeystoreConfig.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/openubl/entity/src/keystore_config.rs b/openubl/entity/src/keystore_config.rs deleted file mode 100644 index 02ccee97..00000000 --- a/openubl/entity/src/keystore_config.rs +++ /dev/null @@ -1,33 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.10 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] -#[sea_orm(table_name = "keystore_config")] -pub struct Model { - #[sea_orm(primary_key)] - pub id: i32, - pub name: String, - pub val: String, - pub keystore_id: i32, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::keystore::Entity", - from = "Column::KeystoreId", - to = "super::keystore::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Keystore, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Keystore.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/openubl/entity/src/lib.rs b/openubl/entity/src/lib.rs deleted file mode 100644 index 8508feb0..00000000 --- a/openubl/entity/src/lib.rs +++ /dev/null @@ -1,10 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.10 - -pub mod prelude; - -pub mod credentials; -pub mod delivery; -pub mod document; -pub mod keystore; -pub mod keystore_config; -pub mod send_rule; diff --git a/openubl/entity/src/mod.rs b/openubl/entity/src/mod.rs deleted file mode 100644 index a088bbb3..00000000 --- a/openubl/entity/src/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.15 - -pub mod prelude; diff --git a/openubl/entity/src/prelude.rs b/openubl/entity/src/prelude.rs deleted file mode 100644 index 38e2aee1..00000000 --- a/openubl/entity/src/prelude.rs +++ /dev/null @@ -1 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.15 diff --git a/openubl/entity/src/send_rule.rs b/openubl/entity/src/send_rule.rs deleted file mode 100644 index 6bbcb8ad..00000000 --- a/openubl/entity/src/send_rule.rs +++ /dev/null @@ -1,32 +0,0 @@ -//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.10 - -use sea_orm::entity::prelude::*; - -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] -#[sea_orm(table_name = "send_rule")] -pub struct Model { - #[sea_orm(primary_key)] - pub id: i32, - pub supplier_id: String, - pub credentials_id: i32, -} - -#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] -pub enum Relation { - #[sea_orm( - belongs_to = "super::credentials::Entity", - from = "Column::CredentialsId", - to = "super::credentials::Column::Id", - on_update = "NoAction", - on_delete = "Cascade" - )] - Credentials, -} - -impl Related for Entity { - fn to() -> RelationDef { - Relation::Credentials.def() - } -} - -impl ActiveModelBehavior for ActiveModel {} diff --git a/openubl/migration/Cargo.toml b/openubl/migration/Cargo.toml deleted file mode 100644 index a855cc6a..00000000 --- a/openubl/migration/Cargo.toml +++ /dev/null @@ -1,22 +0,0 @@ -[package] -name = "openubl-migration" -version = "0.1.0" -edition = "2021" -publish = false - -[lib] -name = "migration" -path = "src/lib.rs" - -[dependencies] -async-std = { version = "1", features = ["attributes", "tokio1"] } - -[dependencies.sea-orm-migration] -version = "0.12.0" -features = [ - # Enable at least one `ASYNC_RUNTIME` and `DATABASE_DRIVER` feature if you want to run migration via CLI. - # View the list of supported features at https://www.sea-ql.org/SeaORM/docs/install-and-config/database-and-async-runtime. - # e.g. - "runtime-tokio-rustls", # `ASYNC_RUNTIME` feature - "sqlx-postgres", # `DATABASE_DRIVER` feature -] diff --git a/openubl/migration/README.md b/openubl/migration/README.md deleted file mode 100644 index 47048fb1..00000000 --- a/openubl/migration/README.md +++ /dev/null @@ -1,56 +0,0 @@ -# CLI - -Generate migration and apply it: - -```shell -sea-orm-cli migrate generate NAME_OF_MIGRATION -sea-orm-cli migrate -u postgres://user:password@localhost/openubl -``` - -Generate entity files of database `openubl` to `entity/src` - -```shell -sea-orm-cli generate entity -u postgres://user:password@localhost/openubl -o entity/src -``` - -# Running Migrator CLI - -- Generate a new migration file - ```sh - cargo run -- generate MIGRATION_NAME - ``` -- Apply all pending migrations - ```sh - cargo run - ``` - ```sh - cargo run -- up - ``` -- Apply first 10 pending migrations - ```sh - cargo run -- up -n 10 - ``` -- Rollback last applied migrations - ```sh - cargo run -- down - ``` -- Rollback last 10 applied migrations - ```sh - cargo run -- down -n 10 - ``` -- Drop all tables from the database, then reapply all migrations - ```sh - cargo run -- fresh - ``` -- Rollback all applied migrations, then reapply all migrations - ```sh - cargo run -- refresh - ``` -- Rollback all applied migrations - ```sh - cargo run -- reset - ``` -- Check the status of all migrations - ```sh - cargo run -- status - ``` diff --git a/openubl/migration/src/lib.rs b/openubl/migration/src/lib.rs deleted file mode 100644 index 6e101002..00000000 --- a/openubl/migration/src/lib.rs +++ /dev/null @@ -1,23 +0,0 @@ -pub use sea_orm_migration::prelude::*; - -mod m20240101_104121_create_document; -mod m20240113_213636_create_keystore; -mod m20240113_213657_create_keystore_config; -mod m20240114_154538_create_credentials; -mod m20240117_142858_create_send_rule; -mod m20240717_214515_create_delivery; -pub struct Migrator; - -#[async_trait::async_trait] -impl MigratorTrait for Migrator { - fn migrations() -> Vec> { - vec![ - Box::new(m20240101_104121_create_document::Migration), - Box::new(m20240113_213636_create_keystore::Migration), - Box::new(m20240113_213657_create_keystore_config::Migration), - Box::new(m20240114_154538_create_credentials::Migration), - Box::new(m20240117_142858_create_send_rule::Migration), - Box::new(m20240717_214515_create_delivery::Migration), - ] - } -} diff --git a/openubl/migration/src/m20240101_104121_create_document.rs b/openubl/migration/src/m20240101_104121_create_document.rs deleted file mode 100644 index 37ede199..00000000 --- a/openubl/migration/src/m20240101_104121_create_document.rs +++ /dev/null @@ -1,51 +0,0 @@ -use sea_orm_migration::prelude::*; - -#[derive(DeriveMigrationName)] -pub struct Migration; - -#[async_trait::async_trait] -impl MigrationTrait for Migration { - async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> { - manager - .create_table( - Table::create() - .table(Document::Table) - .if_not_exists() - .col( - ColumnDef::new(Document::Id) - .integer() - .not_null() - .auto_increment() - .primary_key(), - ) - .col(ColumnDef::new(Document::FileId).string().not_null()) - .col(ColumnDef::new(Document::SupplierId).string().not_null()) - .col(ColumnDef::new(Document::Identifier).string().not_null()) - .col(ColumnDef::new(Document::Type).string().not_null()) - .col(ColumnDef::new(Document::VoidedDocumentCode).string()) - .col(ColumnDef::new(Document::DigestValue).string()) - .col(ColumnDef::new(Document::Sha256).string().not_null()) - .to_owned(), - ) - .await - } - - async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> { - manager - .drop_table(Table::drop().table(Document::Table).to_owned()) - .await - } -} - -#[derive(DeriveIden)] -pub enum Document { - Table, - Id, - FileId, - Type, - Identifier, - SupplierId, - VoidedDocumentCode, - DigestValue, - Sha256, -} diff --git a/openubl/migration/src/m20240113_213636_create_keystore.rs b/openubl/migration/src/m20240113_213636_create_keystore.rs deleted file mode 100644 index ab859a3f..00000000 --- a/openubl/migration/src/m20240113_213636_create_keystore.rs +++ /dev/null @@ -1,39 +0,0 @@ -use sea_orm_migration::prelude::*; - -#[derive(DeriveMigrationName)] -pub struct Migration; - -#[async_trait::async_trait] -impl MigrationTrait for Migration { - async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> { - manager - .create_table( - Table::create() - .table(Keystore::Table) - .if_not_exists() - .col( - ColumnDef::new(Keystore::Id) - .integer() - .not_null() - .auto_increment() - .primary_key(), - ) - .col(ColumnDef::new(Keystore::Name).string().not_null()) - .to_owned(), - ) - .await - } - - async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> { - manager - .drop_table(Table::drop().table(Keystore::Table).to_owned()) - .await - } -} - -#[derive(DeriveIden)] -pub enum Keystore { - Table, - Id, - Name, -} diff --git a/openubl/migration/src/m20240113_213657_create_keystore_config.rs b/openubl/migration/src/m20240113_213657_create_keystore_config.rs deleted file mode 100644 index ebbac0db..00000000 --- a/openubl/migration/src/m20240113_213657_create_keystore_config.rs +++ /dev/null @@ -1,54 +0,0 @@ -use crate::m20240113_213636_create_keystore::Keystore; -use sea_orm_migration::prelude::*; - -#[derive(DeriveMigrationName)] -pub struct Migration; - -#[async_trait::async_trait] -impl MigrationTrait for Migration { - async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> { - manager - .create_table( - Table::create() - .table(KeystoreConfig::Table) - .if_not_exists() - .col( - ColumnDef::new(KeystoreConfig::Id) - .integer() - .not_null() - .auto_increment() - .primary_key(), - ) - .col(ColumnDef::new(KeystoreConfig::Name).string().not_null()) - .col(ColumnDef::new(KeystoreConfig::Val).string().not_null()) - .col( - ColumnDef::new(KeystoreConfig::KeystoreId) - .integer() - .not_null(), - ) - .foreign_key( - ForeignKey::create() - .from_col(KeystoreConfig::KeystoreId) - .to(Keystore::Table, Keystore::Id) - .on_delete(ForeignKeyAction::Cascade), - ) - .to_owned(), - ) - .await - } - - async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> { - manager - .drop_table(Table::drop().table(KeystoreConfig::Table).to_owned()) - .await - } -} - -#[derive(DeriveIden)] -enum KeystoreConfig { - Table, - Id, - Name, - Val, - KeystoreId, -} diff --git a/openubl/migration/src/m20240114_154538_create_credentials.rs b/openubl/migration/src/m20240114_154538_create_credentials.rs deleted file mode 100644 index ea158ec9..00000000 --- a/openubl/migration/src/m20240114_154538_create_credentials.rs +++ /dev/null @@ -1,63 +0,0 @@ -use sea_orm_migration::prelude::*; - -#[derive(DeriveMigrationName)] -pub struct Migration; - -#[async_trait::async_trait] -impl MigrationTrait for Migration { - async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> { - manager - .create_table( - Table::create() - .table(Credentials::Table) - .if_not_exists() - .col( - ColumnDef::new(Credentials::Id) - .integer() - .not_null() - .auto_increment() - .primary_key(), - ) - .col(ColumnDef::new(Credentials::Name).string().not_null()) - .col(ColumnDef::new(Credentials::Description).string().null()) - .col(ColumnDef::new(Credentials::UsernameSol).string().not_null()) - .col(ColumnDef::new(Credentials::PasswordSol).string().not_null()) - .col(ColumnDef::new(Credentials::ClientId).string().not_null()) - .col( - ColumnDef::new(Credentials::ClientSecret) - .string() - .not_null(), - ) - .col(ColumnDef::new(Credentials::UrlInvoice).string().not_null()) - .col(ColumnDef::new(Credentials::UrlDespatch).string().not_null()) - .col( - ColumnDef::new(Credentials::UrlPerceptionRetention) - .string() - .not_null(), - ) - .to_owned(), - ) - .await - } - - async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> { - manager - .drop_table(Table::drop().table(Credentials::Table).to_owned()) - .await - } -} - -#[derive(DeriveIden)] -pub enum Credentials { - Table, - Id, - Name, - Description, - UrlInvoice, - UrlDespatch, - UrlPerceptionRetention, - UsernameSol, - PasswordSol, - ClientId, - ClientSecret, -} diff --git a/openubl/migration/src/m20240117_142858_create_send_rule.rs b/openubl/migration/src/m20240117_142858_create_send_rule.rs deleted file mode 100644 index f14e720d..00000000 --- a/openubl/migration/src/m20240117_142858_create_send_rule.rs +++ /dev/null @@ -1,48 +0,0 @@ -use crate::m20240114_154538_create_credentials::Credentials; -use sea_orm_migration::prelude::*; - -#[derive(DeriveMigrationName)] -pub struct Migration; - -#[async_trait::async_trait] -impl MigrationTrait for Migration { - async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> { - manager - .create_table( - Table::create() - .table(SendRule::Table) - .if_not_exists() - .col( - ColumnDef::new(SendRule::Id) - .integer() - .not_null() - .auto_increment() - .primary_key(), - ) - .col(ColumnDef::new(SendRule::SupplierId).string().not_null()) - .col(ColumnDef::new(SendRule::CredentialsId).integer().not_null()) - .foreign_key( - ForeignKey::create() - .from_col(SendRule::CredentialsId) - .to(Credentials::Table, Credentials::Id) - .on_delete(ForeignKeyAction::Cascade), - ) - .to_owned(), - ) - .await - } - - async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> { - manager - .drop_table(Table::drop().table(SendRule::Table).to_owned()) - .await - } -} - -#[derive(DeriveIden)] -enum SendRule { - Table, - Id, - SupplierId, - CredentialsId, -} diff --git a/openubl/migration/src/m20240717_214515_create_delivery.rs b/openubl/migration/src/m20240717_214515_create_delivery.rs deleted file mode 100644 index 12bf0720..00000000 --- a/openubl/migration/src/m20240717_214515_create_delivery.rs +++ /dev/null @@ -1,85 +0,0 @@ -use sea_orm_migration::prelude::*; - -use crate::m20240101_104121_create_document::Document; - -#[derive(DeriveMigrationName)] -pub struct Migration; - -#[async_trait::async_trait] -impl MigrationTrait for Migration { - async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> { - manager - .create_table( - Table::create() - .table(Delivery::Table) - .if_not_exists() - .col( - ColumnDef::new(Delivery::Id) - .integer() - .not_null() - .auto_increment() - .primary_key(), - ) - .col(ColumnDef::new(Delivery::ResponseTicket).string()) - .col(ColumnDef::new(Delivery::ResponseCdrDescription).string()) - .col(ColumnDef::new(Delivery::ResponseCdrResponseCode).string()) - .col(ColumnDef::new(Delivery::ResponseCdrNotes).text()) - .col(ColumnDef::new(Delivery::ResponseErrorCode).string()) - .col(ColumnDef::new(Delivery::ResponseErrorMessage).string()) - .col( - ColumnDef::new(Delivery::TargetSendFileProtocol) - .string_len(1) - .not_null(), - ) - .col( - ColumnDef::new(Delivery::TargetSendFileUrl) - .string() - .not_null(), - ) - .col( - ColumnDef::new(Delivery::TargetSendFileAction) - .string() - .not_null(), - ) - .col( - ColumnDef::new(Delivery::TargetVerifyTicketProtocol) - .string_len(1) - .not_null(), - ) - .col(ColumnDef::new(Delivery::TargetVerifyTicketUrl).string()) - .col(ColumnDef::new(Delivery::DocumentId).integer().not_null()) - .foreign_key( - ForeignKey::create() - .from_col(Delivery::DocumentId) - .to(Document::Table, Document::Id) - .on_delete(ForeignKeyAction::Cascade), - ) - .to_owned(), - ) - .await - } - - async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> { - manager - .drop_table(Table::drop().table(Delivery::Table).to_owned()) - .await - } -} - -#[derive(DeriveIden)] -enum Delivery { - Table, - Id, - ResponseTicket, - ResponseCdrDescription, - ResponseCdrResponseCode, - ResponseCdrNotes, - ResponseErrorCode, - ResponseErrorMessage, - TargetSendFileProtocol, - TargetSendFileUrl, - TargetSendFileAction, - TargetVerifyTicketProtocol, - TargetVerifyTicketUrl, - DocumentId, -} diff --git a/openubl/migration/src/main.rs b/openubl/migration/src/main.rs deleted file mode 100644 index c6b6e48d..00000000 --- a/openubl/migration/src/main.rs +++ /dev/null @@ -1,6 +0,0 @@ -use sea_orm_migration::prelude::*; - -#[async_std::main] -async fn main() { - cli::run_cli(migration::Migrator).await; -} diff --git a/openubl/server/Cargo.toml b/openubl/server/Cargo.toml deleted file mode 100644 index 384d0e52..00000000 --- a/openubl/server/Cargo.toml +++ /dev/null @@ -1,29 +0,0 @@ -[package] -name = "openubl-server" -version = "0.1.0" -edition = "2021" -license = "Apache-2.0" -description = "Web service for managing UBL files from SUNAT" - -[dependencies] -openubl-api = { path = "../api" } -openubl-common = { path = "../common" } -openubl-entity = { path = "../entity" } -openubl-storage = { path = "../storage" } - -xsender = { path = "../../xsender" } -xbuilder = { path = "../../xbuilder" } - -actix-web = "4.4.0" -serde = { version = "1.0.193", features = ["derive"] } -sea-orm = { version = "0.12.10", features = ["sqlx-postgres", "runtime-tokio-rustls", "macros"] } -clap = { version = "4.4.11", features = ["derive", "env"] } -anyhow = "1.0.76" -env_logger = "0.10.1" -thiserror = "1.0.50" -utoipa = { version = "4.1.0", features = ["actix_extras"] } -utoipa-swagger-ui = { version = "5.0.0", features = ["actix-web"] } -actix-web-httpauth = "0.8.1" -actix-4-jwt-auth = { version = "1.2.0" } -actix-multipart = "0.6.1" -minio = "0.1.0" diff --git a/openubl/server/src/dto.rs b/openubl/server/src/dto.rs deleted file mode 100644 index 3f5c874c..00000000 --- a/openubl/server/src/dto.rs +++ /dev/null @@ -1,81 +0,0 @@ -use openubl_entity as entity; -use serde::{Deserialize, Serialize}; - -#[derive(Serialize, Deserialize)] -pub struct DocumentDto { - pub id: i32, - pub supplier_id: String, - pub document_id: String, - pub document_type: String, - pub voided_document_code: Option, -} - -impl From for DocumentDto { - fn from(value: entity::document::Model) -> Self { - Self { - id: value.id, - supplier_id: value.supplier_id.clone(), - document_id: value.identifier.clone(), - document_type: value.r#type.clone(), - voided_document_code: value.voided_document_code.clone(), - } - } -} - -#[derive(Serialize, Deserialize)] -pub struct CredentialsDto { - pub id: i32, - pub name: String, - pub description: Option, - pub username_sol: String, - pub client_id: String, - pub url_invoice: String, - pub url_despatch: String, - pub url_perception_retention: String, -} - -#[derive(Serialize, Deserialize)] -pub struct NewCredentialsDto { - pub name: String, - pub description: Option, - pub username_sol: String, - pub password_sol: String, - pub client_id: String, - pub client_secret: String, - pub url_invoice: String, - pub url_despatch: String, - pub url_perception_retention: String, - pub supplier_ids_applied_to: Vec, -} - -impl From for CredentialsDto { - fn from(value: entity::credentials::Model) -> Self { - Self { - id: value.id, - name: value.name.clone(), - description: value.description.clone(), - username_sol: value.username_sol.clone(), - client_id: value.client_id.clone(), - url_invoice: value.url_invoice.clone(), - url_despatch: value.url_despatch.clone(), - url_perception_retention: value.url_perception_retention.clone(), - } - } -} - -impl From for entity::credentials::Model { - fn from(value: NewCredentialsDto) -> Self { - Self { - id: 0, - name: value.name.clone(), - description: value.description.clone(), - username_sol: value.username_sol.clone(), - password_sol: value.password_sol, - client_id: value.client_id.clone(), - client_secret: value.client_secret, - url_invoice: value.url_invoice.clone(), - url_despatch: value.url_despatch.clone(), - url_perception_retention: value.url_perception_retention.clone(), - } - } -} diff --git a/openubl/server/src/lib.rs b/openubl/server/src/lib.rs deleted file mode 100644 index 1319c4f8..00000000 --- a/openubl/server/src/lib.rs +++ /dev/null @@ -1,120 +0,0 @@ -use std::fmt::Debug; -use std::process::ExitCode; -use std::sync::Arc; - -use actix_multipart::form::tempfile::TempFileConfig; -use actix_web::middleware::Logger; -use actix_web::{web, App, HttpServer}; - -use openubl_api::system::InnerSystem; -use openubl_common::config::Database; -use openubl_storage::StorageSystem; - -use crate::server::credentials::{ - create_credentials, delete_credentials, get_credentials, list_credentials, update_credentials, -}; -use crate::server::document::{get_document_file, list_documents, send_document}; -use crate::server::health; - -mod dto; -pub mod server; - -/// Run the API server -#[derive(clap::Args, Debug)] -pub struct ServerRun { - #[arg(short, long, env, default_value = "[::1]:8080")] - pub bind_addr: String, - - #[command(flatten)] - pub database: Database, - - #[arg(long, env)] - pub bootstrap: bool, - - // #[command(flatten)] - // pub oidc: openubl_oidc::config::Oidc, - #[command(subcommand)] - pub storage: openubl_storage::config::Storage, -} - -impl ServerRun { - pub async fn run(self) -> anyhow::Result { - env_logger::init(); - - // Oidc - // let oidc = Oidc::new(OidcConfig::Issuer(self.oidc.auth_server_url.clone().into())) - // .await - // .unwrap(); - // let oidc_validator = OidcBiscuitValidator { - // options: ValidationOptions { - // issuer: Validation::Validate(self.oidc.auth_server_url.clone()), - // ..ValidationOptions::default() - // }, - // }; - - // Database - let system = match self.bootstrap { - true => { - InnerSystem::bootstrap( - &self.database.username, - &self.database.password, - &self.database.host, - self.database.port, - &self.database.name, - ) - .await? - } - false => InnerSystem::with_config(&self.database).await?, - }; - - // Storage - let storage = StorageSystem::new(&self.storage).await?; - - // Search Engine - // let search_engine = SearchEngineSystem::new(&self.search_engine).await?; - - let app_state = Arc::new(AppState { system, storage }); - - HttpServer::new(move || { - App::new() - .app_data(web::Data::from(app_state.clone())) - .wrap(Logger::default()) - // .wrap(oidc_validator.clone()) - // .app_data(oidc.clone()) - .app_data(TempFileConfig::default()) - .configure(configure) - }) - .bind(self.bind_addr)? - .run() - .await?; - - Ok(ExitCode::SUCCESS) - } -} - -pub struct AppState { - pub system: InnerSystem, - pub storage: StorageSystem, - // pub search_engine: SearchEngineSystem, -} - -pub fn configure(config: &mut web::ServiceConfig) { - // Health - config.service(health::liveness); - config.service(health::readiness); - - // Files - // config.service(files::upload_file); - - // Documents - config.service(list_documents); - config.service(get_document_file); - config.service(send_document); - - // Credentials - config.service(list_credentials); - config.service(create_credentials); - config.service(get_credentials); - config.service(update_credentials); - config.service(delete_credentials); -} diff --git a/openubl/server/src/server/credentials.rs b/openubl/server/src/server/credentials.rs deleted file mode 100644 index 57a09551..00000000 --- a/openubl/server/src/server/credentials.rs +++ /dev/null @@ -1,105 +0,0 @@ -use actix_web::http::StatusCode; -use actix_web::{delete, get, post, put, web, HttpResponse, Responder}; - -use openubl_api::db::Transactional; -use openubl_entity as entity; - -use crate::dto::{CredentialsDto, NewCredentialsDto}; -use crate::server::Error; -use crate::AppState; - -#[utoipa::path(responses((status = 200, description = "List credentials")))] -#[get("/credentials")] -pub async fn list_credentials(state: web::Data) -> Result { - let result = state - .system - .list_credentials(Transactional::None) - .await - .map_err(Error::System)? - .into_iter() - .map(|e| CredentialsDto::from(e.credentials)) - .collect::>(); - - Ok(HttpResponse::Ok().json(result)) -} - -#[utoipa::path(responses((status = 200, description = "Create credentials")))] -#[post("/credentials")] -pub async fn create_credentials( - state: web::Data, - json: web::Json, -) -> Result { - let supplier_ids = json.supplier_ids_applied_to.clone(); - let model = entity::credentials::Model::from(json.into_inner()); - - let credentials_ctx = state - .system - .persist_credentials(&model, &supplier_ids, Transactional::None) - .await - .map_err(Error::System)?; - Ok(HttpResponse::Ok().json(CredentialsDto::from(credentials_ctx.credentials))) -} - -#[utoipa::path(responses((status = 200, description = "Get credential")))] -#[get("/credentials/{credentials_id}")] -pub async fn get_credentials( - state: web::Data, - path: web::Path, -) -> Result { - let credentials_id = path.into_inner(); - - let credentials_ctx = state - .system - .find_credentials_by_id(credentials_id, Transactional::None) - .await? - .ok_or(Error::BadRequest { - status: StatusCode::NOT_FOUND, - msg: "Credentials not found".to_string(), - })?; - - Ok(HttpResponse::Ok().json(CredentialsDto::from(credentials_ctx.credentials))) -} - -#[utoipa::path(responses((status = 204, description = "Update credentials")))] -#[put("/credentials/{credentials_id}")] -pub async fn update_credentials( - state: web::Data, - path: web::Path, - json: web::Json, -) -> Result { - let credentials_id = path.into_inner(); - - let credentials_ctx = state - .system - .find_credentials_by_id(credentials_id, Transactional::None) - .await? - .ok_or(Error::BadRequest { - status: StatusCode::NOT_FOUND, - msg: "Credentials not found".to_string(), - })?; - - let model = entity::credentials::Model::from(json.into_inner()); - credentials_ctx.update(&model, Transactional::None).await?; - Ok(HttpResponse::NoContent().finish()) -} - -#[utoipa::path(responses((status = 204, description = "Delete credentials")))] -#[delete("/credentials/{credentials_id}")] -pub async fn delete_credentials( - state: web::Data, - path: web::Path, -) -> Result { - let credentials_id = path.into_inner(); - - let credentials_ctx = state - .system - .find_credentials_by_id(credentials_id, Transactional::None) - .await? - .ok_or(Error::BadRequest { - status: StatusCode::NOT_FOUND, - msg: "Credentials not found".to_string(), - })?; - - credentials_ctx.delete(Transactional::None).await?; - Ok(HttpResponse::NoContent().finish()) -} diff --git a/openubl/server/src/server/document.rs b/openubl/server/src/server/document.rs deleted file mode 100644 index 4df6c6c1..00000000 --- a/openubl/server/src/server/document.rs +++ /dev/null @@ -1,202 +0,0 @@ -use actix_multipart::form::tempfile::TempFile; -use actix_multipart::form::MultipartForm; -use actix_web::http::StatusCode; -use actix_web::{get, post, web, HttpResponse, Responder}; -use anyhow::anyhow; - -use openubl_api::db::{Paginated, Transactional}; -use openubl_entity::document; -use xsender::prelude::{Credentials, FileSender, FromPath, UblFile, Urls}; - -use crate::dto::DocumentDto; -use crate::server::Error; -use crate::AppState; - -#[utoipa::path(responses((status = 200, description = "List documents")))] -#[get("/documents")] -pub async fn list_documents( - state: web::Data, - paginated: web::Query, -) -> Result { - let result = state - .system - .list_documents(paginated.into_inner(), Transactional::None) - .await - .map_err(Error::System)?; - - Ok(HttpResponse::Ok() - .append_header(("x-total", result.num_items)) - .json( - result - .items - .into_iter() - .map(|document_context| DocumentDto::from(document_context.document)) - .collect::>(), - )) -} - -#[derive(Debug, MultipartForm)] -struct UploadForm { - #[multipart(rename = "file")] - files: Vec, -} - -#[utoipa::path(responses((status = 200, description = "Upload a file")))] -#[post("/documents")] -pub async fn upload_file( - state: web::Data, - MultipartForm(form): MultipartForm, -) -> Result { - let temp_file = form.files.first().ok_or(Error::BadRequest { - status: StatusCode::BAD_REQUEST, - msg: "No file found to be processed".to_string(), - })?; - - // Read file - let ubl_file = UblFile::from_path(temp_file.file.path())?; - let file_metadata = ubl_file.metadata()?; - let file_sha256 = ubl_file.sha256(); - - // Verify file so we don't upload the same file twice - let prev_file = state - .system - .find_document_by_ubl_params( - &file_metadata.ruc, - &file_metadata.document_type, - &file_metadata.document_id, - &file_sha256, - Transactional::None, - ) - .await?; - - match &prev_file { - None => { - // Upload to storage - let file_path = temp_file.file.path().to_str().ok_or(Error::Any(anyhow!( - "Could not extract the file path of the temp file" - )))?; - - let file_id = state - .storage - .upload_ubl_xml( - &file_metadata.ruc, - &file_metadata.document_type, - &file_metadata.document_id, - &file_sha256, - file_path, - ) - .await?; - - // Create file - let document_model = document::Model { - id: 0, - file_id, - supplier_id: file_metadata.ruc, - identifier: file_metadata.document_id, - r#type: file_metadata.document_type, - voided_document_code: file_metadata.voided_line_document_type_code, - digest_value: file_metadata.digest_value, - sha256: file_sha256, - }; - - let document_ctx = state - .system - .persist_document(&document_model, Transactional::None) - .await?; - - Ok(HttpResponse::Created().json(DocumentDto::from(document_ctx.document))) - } - Some(_) => Err(Error::BadRequest { - status: StatusCode::CONFLICT, - msg: "File already uploaded".to_string(), - }), - } -} - -#[utoipa::path(responses((status = 200, description = "Get document's file")))] -#[get("/documents/{document_id}/download")] -pub async fn get_document_file( - state: web::Data, - path: web::Path, -) -> Result { - let document_id = path.into_inner(); - - let document_ctx = state - .system - .find_document_by_id(document_id, Transactional::None) - .await? - .ok_or(Error::BadRequest { - status: StatusCode::NOT_FOUND, - msg: "Document not found".to_string(), - })?; - - let xml_file = state - .storage - .download_ubl_xml(&document_ctx.document.file_id) - .await?; - - Ok(HttpResponse::Ok() - .append_header(("Content-Type", "application/xml")) - .body(xml_file)) -} - -#[utoipa::path(responses((status = 200, description = "Get document's file")))] -#[post("/documents/{document_id}/send")] -pub async fn send_document( - state: web::Data, - path: web::Path, -) -> Result { - let document_id = path.into_inner(); - - let document_ctx = state - .system - .find_document_by_id(document_id, Transactional::None) - .await? - .ok_or(Error::BadRequest { - status: StatusCode::NOT_FOUND, - msg: "Document not found".to_string(), - })?; - - let xml_file = state - .storage - .download_ubl_xml(&document_ctx.document.file_id) - .await?; - - let credentials_ctx = state - .system - .find_credentials_by_supplier_id(&document_ctx.document.supplier_id, Transactional::None) - .await? - .ok_or(Error::BadRequest { - status: StatusCode::BAD_REQUEST, - msg: "There is no credentials that can be used".to_string(), - })?; - - let file_sender_client = FileSender { - urls: Urls { - invoice: credentials_ctx.credentials.url_invoice, - perception_retention: credentials_ctx.credentials.url_perception_retention, - despatch: credentials_ctx.credentials.url_despatch, - }, - credentials: Credentials { - username: credentials_ctx.credentials.username_sol, - password: credentials_ctx.credentials.password_sol, - }, - }; - - let ubl_file = UblFile { - file_content: xml_file, - }; - let send_result = file_sender_client - .send_file(&ubl_file) - .await - .map_err(|_err| Error::BadRequest { - status: StatusCode::BAD_REQUEST, - msg: "Error while sending the file".to_string(), - })?; - - document_ctx - .add_delivery(&send_result, Transactional::None) - .await?; - - Ok(HttpResponse::Ok()) -} diff --git a/openubl/server/src/server/health.rs b/openubl/server/src/server/health.rs deleted file mode 100644 index c68f49da..00000000 --- a/openubl/server/src/server/health.rs +++ /dev/null @@ -1,24 +0,0 @@ -use actix_web::{get, web, Responder}; - -use crate::server::Error; -use crate::AppState; - -#[utoipa::path( - responses( - (status = 200, description = "Liveness"), - ), -)] -#[get("/health/live")] -pub async fn liveness(_: web::Data) -> Result { - Ok("Live") -} - -#[utoipa::path( - responses( - (status = 200, description = "Readiness"), - ), -)] -#[get("/health/read")] -pub async fn readiness(_: web::Data) -> Result { - Ok("Read") -} diff --git a/openubl/server/src/server/mod.rs b/openubl/server/src/server/mod.rs deleted file mode 100644 index e1080436..00000000 --- a/openubl/server/src/server/mod.rs +++ /dev/null @@ -1,74 +0,0 @@ -use std::borrow::Cow; -use std::fmt::Display; - -use actix_web::body::BoxBody; -use actix_web::http::StatusCode; -use actix_web::{HttpResponse, ResponseError}; - -use openubl_api::system; -use openubl_storage::StorageSystemErr; - -pub mod credentials; -pub mod document; -pub mod health; - -#[derive(Debug, thiserror::Error)] -pub enum Error { - #[error(transparent)] - System(system::error::Error), - #[error(transparent)] - Io(std::io::Error), - #[error(transparent)] - Storage(#[from] StorageSystemErr), - #[error("Invalid request {msg:?}")] - BadRequest { msg: String, status: StatusCode }, - #[error(transparent)] - Any(#[from] anyhow::Error), -} - -impl From for Error { - fn from(e: system::error::Error) -> Self { - Self::System(e) - } -} - -impl From for Error { - fn from(e: std::io::Error) -> Self { - Self::Io(e) - } -} - -#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] -pub struct ErrorInformation { - pub r#type: Cow<'static, str>, - pub message: String, -} - -impl ErrorInformation { - pub fn new(r#type: impl Into>, message: impl Display) -> Self { - Self { - r#type: r#type.into(), - message: message.to_string(), - } - } -} - -impl ResponseError for Error { - fn error_response(&self) -> HttpResponse { - match self { - Self::System(err) => { - HttpResponse::InternalServerError().json(ErrorInformation::new("System", err)) - } - Self::Io(err) => { - HttpResponse::InternalServerError().json(ErrorInformation::new("System IO", err)) - } - Self::Storage(err) => HttpResponse::InternalServerError() - .json(ErrorInformation::new("System storage", err)), - Self::BadRequest { msg, status } => { - HttpResponse::build(*status).json(ErrorInformation::new("Bad request", msg)) - } - Self::Any(err) => HttpResponse::InternalServerError() - .json(ErrorInformation::new("System unknown", err)), - } - } -} diff --git a/openubl/signature/Cargo.toml b/openubl/signature/Cargo.toml deleted file mode 100644 index 1586c9a0..00000000 --- a/openubl/signature/Cargo.toml +++ /dev/null @@ -1,10 +0,0 @@ -[package] -name = "openubl-signature" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -anyhow = "1.0.78" -thiserror = "1.0.53" diff --git a/openubl/signature/src/lib.rs b/openubl/signature/src/lib.rs deleted file mode 100644 index 8b137891..00000000 --- a/openubl/signature/src/lib.rs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/openubl/storage/Cargo.toml b/openubl/storage/Cargo.toml deleted file mode 100644 index 838812ac..00000000 --- a/openubl/storage/Cargo.toml +++ /dev/null @@ -1,22 +0,0 @@ -[package] -name = "openubl-storage" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -clap = {version = "4.4.11", features = ["derive", "env"]} -minio = "0.1.0" -serde = { version = "1.0.193", features = ["derive"] } -anyhow = "1.0.78" -uuid = { version = "1.6.1", features = ["v4"] } -thiserror = "1.0.53" -zip = "0.6.6" -tempfile = "3.9.0" -reqwest = "0.11.23" -aws-sdk-s3 = "1.11.0" -tokio = "1.35.1" -aws-config = "1.1.1" -aws-smithy-runtime = "1.1.1" -aws-smithy-runtime-api = "1.1.1" diff --git a/openubl/storage/src/config.rs b/openubl/storage/src/config.rs deleted file mode 100644 index 72e683a4..00000000 --- a/openubl/storage/src/config.rs +++ /dev/null @@ -1,65 +0,0 @@ -#[derive(clap::Subcommand, Debug)] -pub enum Storage { - Local(LocalStorage), - Minio(MinioStorage), - S3(S3Storage), -} - -#[derive(clap::Args, Debug)] -pub struct LocalStorage { - #[arg( - id = "storage-local-dir", - long, - env = "STORAGE_LOCAL_DIR", - default_value = "storage" - )] - pub local_dir: String, -} - -#[derive(clap::Args, Debug)] -pub struct MinioStorage { - #[arg(id = "storage-minio-host", long, env = "STORAGE_MINIO_HOST")] - pub host: String, - - #[arg( - id = "storage-minio-bucket", - long, - env = "STORAGE_MINIO_BUCKET", - default_value = "openubl" - )] - pub bucket: String, - - #[arg( - id = "storage-minio-access-key", - long, - env = "STORAGE_MINIO_ACCESS_KEY" - )] - pub access_key: String, - - #[arg( - id = "storage-minio-secret-key", - long, - env = "STORAGE_MINIO_SECRET_KEY" - )] - pub secret_key: String, -} - -#[derive(clap::Args, Debug)] -pub struct S3Storage { - #[arg(id = "storage-s3-region", long, env = "STORAGE_S3_REGION")] - pub region: String, - - #[arg( - id = "storage-s3-bucket", - long, - env = "STORAGE_S3_BUCKET", - default_value = "openubl" - )] - pub bucket: String, - - #[arg(id = "storage-s3-access-key", long, env = "STORAGE_S3_ACCESS_KEY")] - pub access_key: String, - - #[arg(id = "storage-s3-secret-key", long, env = "STORAGE_S3_SECRET_KEY")] - pub secret_key: String, -} diff --git a/openubl/storage/src/lib.rs b/openubl/storage/src/lib.rs deleted file mode 100644 index 7a1885ea..00000000 --- a/openubl/storage/src/lib.rs +++ /dev/null @@ -1,304 +0,0 @@ -use anyhow::anyhow; -use std::fs; -use std::fs::File; -use std::io::{Cursor, Read, Write}; -use std::path::Path; -use std::str::FromStr; - -use aws_config::meta::region::RegionProviderChain; -use aws_config::retry::RetryConfig; -use aws_config::BehaviorVersion; -use aws_sdk_s3::client::Client as S3Client; -use aws_sdk_s3::error::SdkError; -use aws_sdk_s3::operation::get_object::GetObjectError; -use aws_sdk_s3::operation::put_object::PutObjectError; -use aws_sdk_s3::primitives::{ByteStream, ByteStreamError}; -use aws_smithy_runtime_api::client::orchestrator::HttpResponse; -use minio::s3::args::{GetObjectArgs, PutObjectArgs}; -use minio::s3::client::Client as MinioClient; -use minio::s3::creds::StaticProvider; -use minio::s3::http::BaseUrl; -use zip::result::{ZipError, ZipResult}; -use zip::write::FileOptions; -use zip::{ZipArchive, ZipWriter}; - -use crate::config::Storage; - -pub mod config; - -pub struct LocalDir { - path: String, -} - -pub struct Bucket { - name: String, -} - -pub enum StorageSystem { - Local(LocalDir), - Minio(Bucket, MinioClient), - S3(Bucket, S3Client), -} - -#[derive(Debug, thiserror::Error)] -pub enum StorageSystemErr { - #[error(transparent)] - Local(std::io::Error), - - #[error(transparent)] - Minio(MinioError), - - #[error(transparent)] - S3(#[from] S3Error), - - #[error(transparent)] - Zip(ZipError), - - #[error(transparent)] - Any(#[from] anyhow::Error), -} - -#[derive(Debug, thiserror::Error)] -pub enum MinioError { - #[error(transparent)] - Sdk(minio::s3::error::Error), - #[error(transparent)] - HttpClient(reqwest::Error), -} - -#[derive(Debug, thiserror::Error)] -pub enum S3Error { - #[error(transparent)] - Stream(ByteStreamError), - - #[error(transparent)] - Get(SdkError), - - #[error(transparent)] - Put(SdkError), -} - -impl From for StorageSystemErr { - fn from(e: std::io::Error) -> Self { - Self::Local(e) - } -} - -impl From for StorageSystemErr { - fn from(e: minio::s3::error::Error) -> Self { - Self::Minio(MinioError::Sdk(e)) - } -} - -impl From for StorageSystemErr { - fn from(e: reqwest::Error) -> Self { - Self::Minio(MinioError::HttpClient(e)) - } -} - -impl From for StorageSystemErr { - fn from(e: ByteStreamError) -> Self { - Self::S3(S3Error::Stream(e)) - } -} - -impl From> for StorageSystemErr { - fn from(e: SdkError) -> Self { - Self::S3(S3Error::Get(e)) - } -} - -impl From> for StorageSystemErr { - fn from(e: SdkError) -> Self { - Self::S3(S3Error::Put(e)) - } -} - -impl From for StorageSystemErr { - fn from(e: ZipError) -> Self { - Self::Zip(e) - } -} - -impl StorageSystem { - pub async fn new(config: &Storage) -> anyhow::Result { - match config { - Storage::Local(config) => Ok(Self::Local(LocalDir { - path: config.local_dir.clone(), - })), - Storage::Minio(config) => { - let static_provider = - StaticProvider::new(&config.access_key, &config.secret_key, None); - let client = MinioClient::new( - BaseUrl::from_str(&config.host)?, - Some(Box::new(static_provider)), - None, - None, - )?; - Ok(Self::Minio( - Bucket { - name: config.bucket.clone(), - }, - client, - )) - } - Storage::S3(config) => { - let region_provider = RegionProviderChain::default_provider().or_else("us-east-1"); - let credentials_provider = aws_sdk_s3::config::Credentials::new( - &config.access_key, - &config.secret_key, - Some("test_session_token".to_string()), - None, - "", - ); - let sdk_config = aws_config::defaults(BehaviorVersion::latest()) - .region(region_provider) - .credentials_provider(credentials_provider) - .retry_config(RetryConfig::standard().with_max_attempts(3)) - .load() - .await; - - let client = S3Client::new(&sdk_config); - Ok(Self::S3( - Bucket { - name: config.bucket.clone(), - }, - client, - )) - } - } - } - - /// Each file will be zipped before being uploaded to the Storage - pub async fn upload_ubl_xml( - &self, - ruc: &str, - document_type: &str, - document_id: &str, - file_sha246: &str, - file_full_path: &str, - ) -> Result { - // Create zip - let file_name_inside_zip = format!("{ruc}-{}.xml", document_id.to_uppercase()); - - let zip_file = create_zip_from_path(file_full_path, &file_name_inside_zip)?; - let zip_file_name = format!( - "{}_{}.zip", - document_id.to_uppercase(), - file_sha246.chars().take(7).collect::() - ); - - match self { - StorageSystem::Local(directories) => { - let object_name = Path::new(&directories.path) - .join(ruc) - .join(document_type) - .join(&zip_file_name); - - File::create(object_name)?.write_all(&zip_file)?; - Ok(zip_file_name.clone()) - } - StorageSystem::Minio(bucket, client) => { - let object_name = format!("{ruc}/{document_type}/{zip_file_name}"); - - let object_stream_size = zip_file.len(); - let mut object_stream = Cursor::new(zip_file); - - let mut object = PutObjectArgs::new( - &bucket.name, - &object_name, - &mut object_stream, - Some(object_stream_size), - None, - )?; - - client.put_object(&mut object).await?; - - Ok(object_name) - } - StorageSystem::S3(buckets, client) => { - let object_name = format!("{ruc}/{document_type}/{zip_file_name}"); - let object = ByteStream::from(zip_file); - - client - .put_object() - .bucket(&buckets.name) - .key(&object_name) - .body(object) - .send() - .await?; - - Ok(object_name) - } - } - } - - /// Each file will be unzipped after retrieved from storage - pub async fn download_ubl_xml(&self, file_id: &str) -> Result { - let zip_file = match self { - StorageSystem::Local(_) => fs::read(file_id)?, - StorageSystem::Minio(bucket, client) => { - let object = GetObjectArgs::new(&bucket.name, file_id)?; - - client.get_object(&object).await?.bytes().await?.to_vec() - } - StorageSystem::S3(buckets, client) => client - .get_object() - .bucket(&buckets.name) - .key(file_id) - .send() - .await? - .body - .try_next() - .await? - .ok_or(StorageSystemErr::Any(anyhow!("Could not find response")))? - .to_vec(), - }; - - let xml_file = extract_first_file_from_zip(&zip_file)?.ok_or(StorageSystemErr::Any( - anyhow!("Could not extract first file from zip"), - ))?; - - Ok(xml_file) - } -} - -pub fn create_zip_from_path(path: &str, file_name_inside_zip: &str) -> ZipResult> { - let file_content = fs::read_to_string(path)?; - create_zip_from_str(&file_content, file_name_inside_zip) -} - -pub fn create_zip_from_str(content: &str, file_name_inside_zip: &str) -> ZipResult> { - let mut data = Vec::new(); - - { - let buff = Cursor::new(&mut data); - let mut zip = ZipWriter::new(buff); - - let file_options = FileOptions::default(); - zip.start_file(file_name_inside_zip, file_options)?; - zip.write_all(content.as_bytes())?; - zip.finish()?; - } - - Ok(data) -} - -pub fn extract_first_file_from_zip(zip_buf: &Vec) -> Result, std::io::Error> { - let reader = Cursor::new(zip_buf); - let mut archive = ZipArchive::new(reader)?; - - let mut result = None; - - for index in 0..archive.len() { - let mut entry = archive.by_index(index)?; - if entry.is_file() { - let mut buffer = String::new(); - entry.read_to_string(&mut buffer)?; - result = Some(buffer); - break; - } - } - - Ok(result) -} diff --git a/openubl/ui/.dockerignore b/openubl/ui/.dockerignore deleted file mode 100644 index a6f610ee..00000000 --- a/openubl/ui/.dockerignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -*/dist/ diff --git a/openubl/ui/.editorconfig b/openubl/ui/.editorconfig deleted file mode 100644 index 8bb29e3b..00000000 --- a/openubl/ui/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -root=true - -[*] -# standard prettier behaviors -charset = utf-8 -insert_final_newline = true -trim_trailing_whitespace = true - -# Configurable prettier behaviors -end_of_line = lf -indent_style = space -indent_size = 2 -max_line_length = 80 diff --git a/openubl/ui/.eslintrc.cjs b/openubl/ui/.eslintrc.cjs deleted file mode 100644 index 875eac7a..00000000 --- a/openubl/ui/.eslintrc.cjs +++ /dev/null @@ -1,94 +0,0 @@ -/* eslint-env node */ - -module.exports = { - root: true, - - env: { - browser: true, - es2020: true, - jest: true, - }, - - parser: "@typescript-eslint/parser", - parserOptions: { - ecmaFeatures: { - jsx: true, - }, - ecmaVersion: 2020, // keep in sync with tsconfig.json - sourceType: "module", - }, - - // eslint-disable-next-line prettier/prettier - extends: [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:react/recommended", - "prettier", - ], - - // eslint-disable-next-line prettier/prettier - plugins: [ - "prettier", - "unused-imports", // or eslint-plugin-import? - "@typescript-eslint", - "react", - "react-hooks", - "@tanstack/query", - ], - - // NOTE: Tweak the rules as needed when bulk fixes get merged - rules: { - // TODO: set to "error" when prettier v2 to v3 style changes are fixed - "prettier/prettier": ["warn"], - - // TODO: set to "error" when all resolved, but keep the `argsIgnorePattern` - "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }], - - // TODO: each one of these can be removed or set to "error" when they're all resolved - "unused-imports/no-unused-imports": ["warn"], - "@typescript-eslint/ban-types": "warn", - "@typescript-eslint/no-explicit-any": "warn", - "react/jsx-key": "warn", - "react-hooks/rules-of-hooks": "warn", - "react-hooks/exhaustive-deps": "warn", - "no-extra-boolean-cast": "warn", - "prefer-const": "warn", - - // Allow the "cy-data" property for tackle-ui-test (but should really be "data-cy" w/o this rule) - "react/no-unknown-property": ["error", { ignore: ["cy-data"] }], - - "@tanstack/query/exhaustive-deps": "error", - "@tanstack/query/prefer-query-object-syntax": "error", - }, - - settings: { - react: { version: "detect" }, - }, - - ignorePatterns: [ - // don't ignore dot files so config files get linted - "!.*.js", - "!.*.cjs", - "!.*.mjs", - - // take the place of `.eslintignore` - "dist/", - "generated/", - "node_modules/", - ], - - // this is a hack to make sure eslint will look at all of the file extensions we - // care about without having to put it on the command line - overrides: [ - { - files: [ - "**/*.js", - "**/*.jsx", - "**/*.cjs", - "**/*.mjs", - "**/*.ts", - "**/*.tsx", - ], - }, - ], -}; diff --git a/openubl/ui/.gitignore b/openubl/ui/.gitignore deleted file mode 100644 index 5089c820..00000000 --- a/openubl/ui/.gitignore +++ /dev/null @@ -1,30 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -node_modules/ -/.pnp -.pnp.js - -# testing -coverage/ - -# production -dist/ -/qa/build - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* - -.eslintcache - -# VSCode -.vscode/* - -# Intellij IDEA -.idea/ diff --git a/openubl/ui/.npmrc b/openubl/ui/.npmrc deleted file mode 100644 index b6f27f13..00000000 --- a/openubl/ui/.npmrc +++ /dev/null @@ -1 +0,0 @@ -engine-strict=true diff --git a/openubl/ui/.prettierignore b/openubl/ui/.prettierignore deleted file mode 100644 index ccd6c304..00000000 --- a/openubl/ui/.prettierignore +++ /dev/null @@ -1,12 +0,0 @@ -# Library, IDE and build locations -**/node_modules/ -**/coverage/ -**/dist/ -.vscode/ -.idea/ -.eslintcache/ - -# -# NOTE: Could ignore anything that eslint will look at since eslint also applies -# prettier. -# diff --git a/openubl/ui/.prettierrc.mjs b/openubl/ui/.prettierrc.mjs deleted file mode 100644 index c4d9a638..00000000 --- a/openubl/ui/.prettierrc.mjs +++ /dev/null @@ -1,14 +0,0 @@ -/** @type {import("prettier").Config} */ -const config = { - trailingComma: "es5", // es5 was the default in prettier v2 - semi: true, - singleQuote: false, - - // Values used from .editorconfig: - // - printWidth == max_line_length - // - tabWidth == indent_size - // - useTabs == indent_style - // - endOfLine == end_of_line -}; - -export default config; diff --git a/openubl/ui/Dockerfile b/openubl/ui/Dockerfile deleted file mode 100644 index 3974880a..00000000 --- a/openubl/ui/Dockerfile +++ /dev/null @@ -1,38 +0,0 @@ -# Builder image -FROM registry.access.redhat.com/ubi9/nodejs-18:latest as builder - -USER 1001 -COPY --chown=1001 . . -RUN npm clean-install && npm run build && npm run dist - -# Runner image -FROM registry.access.redhat.com/ubi9/nodejs-18-minimal:latest - -# Add ps package to allow liveness probe for k8s cluster -# Add tar package to allow copying files with kubectl scp -USER 0 -RUN microdnf -y install tar procps-ng && microdnf clean all - -USER 1001 - -LABEL name="project-openubl/openubl-ui" \ - description="Openubl - User Interface" \ - help="For more information visit https://project-openubl.github.io/" \ - license="Apache License 2.0" \ - maintainer="carlosthe19916@gmail.com" \ - summary="Openubl - User Interface" \ - url="https://quay.io/repository/projectopenubl/openubl-ui" \ - usage="podman run -p 80 -v projectopenubl/openubl-ui:latest" \ - io.k8s.display-name="openubl-ui" \ - io.k8s.description="Openubl - User Interface" \ - io.openshift.expose-services="80:http" \ - io.openshift.tags="operator,openubl,ui,nodejs18" \ - io.openshift.min-cpu="100m" \ - io.openshift.min-memory="350Mi" - -COPY --from=builder /opt/app-root/src/dist /opt/app-root/dist/ - -ENV DEBUG=1 - -WORKDIR /opt/app-root/dist -ENTRYPOINT ["./entrypoint.sh"] diff --git a/openubl/ui/LICENSE b/openubl/ui/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/openubl/ui/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/openubl/ui/README.md b/openubl/ui/README.md deleted file mode 100644 index bcd443d3..00000000 --- a/openubl/ui/README.md +++ /dev/null @@ -1,3 +0,0 @@ -## Spog UI - -export AUTH_REQUIRED=true \ No newline at end of file diff --git a/openubl/ui/client/config/jest.config.ts b/openubl/ui/client/config/jest.config.ts deleted file mode 100644 index 202a284b..00000000 --- a/openubl/ui/client/config/jest.config.ts +++ /dev/null @@ -1,50 +0,0 @@ -import type { JestConfigWithTsJest } from "ts-jest"; - -// For a detailed explanation regarding each configuration property, visit: -// https://jestjs.io/docs/en/configuration.html - -const config: JestConfigWithTsJest = { - // Automatically clear mock calls and instances between every test - clearMocks: true, - - // Indicates whether the coverage information should be collected while executing the test - collectCoverage: false, - - // The directory where Jest should output its coverage files - coverageDirectory: "coverage", - - // Stub out resources and provide handling for tsconfig.json paths - moduleNameMapper: { - // stub out files that don't matter for tests - "\\.(css|less)$": "/__mocks__/styleMock.js", - "\\.(xsd)$": "/__mocks__/styleMock.js", - "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": - "/__mocks__/fileMock.js", - "@patternfly/react-icons/dist/esm/icons/": - "/__mocks__/fileMock.js", - - // match the paths in tsconfig.json - "@app/(.*)": "/src/app/$1", - "@assets/(.*)": - "../node_modules/@patternfly/react-core/dist/styles/assets/$1", - }, - - // A list of paths to directories that Jest should use to search for files - roots: ["/src"], - - // The test environment that will be used for testing - testEnvironment: "jest-environment-jsdom", - - // The pattern or patterns Jest uses to find test files - testMatch: ["/src/**/*.{test,spec}.{js,jsx,ts,tsx}"], - - // Process js/jsx/mjs/mjsx/ts/tsx/mts/mtsx with `ts-jest` - transform: { - "^.+\\.(js|mjs|ts|mts)x?$": "ts-jest", - }, - - // Code to set up the testing framework before each test file in the suite is executed - setupFilesAfterEnv: ["/src/app/setupTests.ts"], -}; - -export default config; diff --git a/openubl/ui/client/config/monacoConstants.ts b/openubl/ui/client/config/monacoConstants.ts deleted file mode 100644 index 35c16dc6..00000000 --- a/openubl/ui/client/config/monacoConstants.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { EditorLanguage } from "monaco-editor/esm/metadata"; - -export const LANGUAGES_BY_FILE_EXTENSION = { - java: "java", - go: "go", - xml: "xml", - js: "javascript", - ts: "typescript", - html: "html", - htm: "html", - css: "css", - yaml: "yaml", - yml: "yaml", - json: "json", - md: "markdown", - php: "php", - py: "python", - pl: "perl", - rb: "ruby", - sh: "shell", - bash: "shell", -} as const satisfies Record; diff --git a/openubl/ui/client/config/stylePaths.js b/openubl/ui/client/config/stylePaths.js deleted file mode 100644 index a7f76aad..00000000 --- a/openubl/ui/client/config/stylePaths.js +++ /dev/null @@ -1,17 +0,0 @@ -/* eslint-env node */ - -import * as path from "path"; - -export const stylePaths = [ - // Include our sources - path.resolve(__dirname, "../src"), - - // Include =PF4 paths, even if nested under another package because npm cannot hoist - // a single package to the root node_modules/ - /node_modules\/@patternfly\/patternfly/, - /node_modules\/@patternfly\/react-core\/.*\.css/, - /node_modules\/@patternfly\/react-styles/, -]; diff --git a/openubl/ui/client/config/webpack.common.ts b/openubl/ui/client/config/webpack.common.ts deleted file mode 100644 index c4ed1066..00000000 --- a/openubl/ui/client/config/webpack.common.ts +++ /dev/null @@ -1,212 +0,0 @@ -import path from "path"; -import { Configuration } from "webpack"; -// import CaseSensitivePathsWebpackPlugin from "case-sensitive-paths-webpack-plugin"; -import CopyPlugin from "copy-webpack-plugin"; -import Dotenv from "dotenv-webpack"; -import { TsconfigPathsPlugin } from "tsconfig-paths-webpack-plugin"; -import MonacoWebpackPlugin from "monaco-editor-webpack-plugin"; - -import { LANGUAGES_BY_FILE_EXTENSION } from "./monacoConstants"; - -const BG_IMAGES_DIRNAME = "images"; -const pathTo = (relativePath: string) => path.resolve(__dirname, relativePath); - -const config: Configuration = { - entry: { - app: [pathTo("../src/index.tsx")], - }, - - output: { - path: pathTo("../dist"), - publicPath: "auto", - clean: true, - }, - - module: { - rules: [ - { - test: /\.[jt]sx?$/, - exclude: /node_modules/, - use: { - loader: "ts-loader", - options: { - transpileOnly: true, - }, - }, - }, - { - test: /\.(svg|ttf|eot|woff|woff2)$/, - // only process modules with this loader - // if they live under a 'fonts' or 'pficon' directory - include: [ - pathTo("../../node_modules/patternfly/dist/fonts"), - pathTo( - "../../node_modules/@patternfly/react-core/dist/styles/assets/fonts" - ), - pathTo( - "../../node_modules/@patternfly/react-core/dist/styles/assets/pficon" - ), - pathTo("../../node_modules/@patternfly/patternfly/assets/fonts"), - pathTo("../../node_modules/@patternfly/patternfly/assets/pficon"), - ], - use: { - loader: "file-loader", - options: { - // Limit at 50k. larger files emited into separate files - limit: 5000, - outputPath: "fonts", - name: "[name].[ext]", - }, - }, - }, - { - test: /\.(xsd)$/, - include: [pathTo("../src")], - use: { - loader: "raw-loader", - options: { - esModule: true, - }, - }, - }, - { - test: /\.svg$/, - include: (input) => input.indexOf("background-filter.svg") > 1, - use: [ - { - loader: "url-loader", - options: { - limit: 5000, - outputPath: "svgs", - name: "[name].[ext]", - }, - }, - ], - type: "javascript/auto", - }, - { - test: /\.svg$/, - // only process SVG modules with this loader if they live under a 'bgimages' directory - // this is primarily useful when applying a CSS background using an SVG - include: (input) => input.indexOf(BG_IMAGES_DIRNAME) > -1, - use: { - loader: "svg-url-loader", - options: {}, - }, - }, - { - test: /\.svg$/, - // only process SVG modules with this loader when they don't live under a 'bgimages', - // 'fonts', or 'pficon' directory, those are handled with other loaders - include: (input) => - input.indexOf(BG_IMAGES_DIRNAME) === -1 && - input.indexOf("fonts") === -1 && - input.indexOf("background-filter") === -1 && - input.indexOf("pficon") === -1, - use: { - loader: "raw-loader", - options: {}, - }, - type: "javascript/auto", - }, - { - test: /\.(jpg|jpeg|png|gif)$/i, - include: [ - pathTo("../src"), - pathTo("../../node_modules/patternfly"), - pathTo("../../node_modules/@patternfly/patternfly/assets/images"), - pathTo( - "../../node_modules/@patternfly/react-styles/css/assets/images" - ), - pathTo( - "../../node_modules/@patternfly/react-core/dist/styles/assets/images" - ), - pathTo( - "../../node_modules/@patternfly/react-core/node_modules/@patternfly/react-styles/css/assets/images" - ), - pathTo( - "../../node_modules/@patternfly/react-table/node_modules/@patternfly/react-styles/css/assets/images" - ), - pathTo( - "../../node_modules/@patternfly/react-inline-edit-extension/node_modules/@patternfly/react-styles/css/assets/images" - ), - ], - use: [ - { - loader: "url-loader", - options: { - limit: 5000, - outputPath: "images", - name: "[name].[ext]", - }, - }, - ], - type: "javascript/auto", - }, - { - test: pathTo("../../node_modules/xmllint/xmllint.js"), - loader: "exports-loader", - options: { - exports: "xmllint", - }, - }, - // For monaco-editor-webpack-plugin - { - test: /\.css$/, - include: [pathTo("../../node_modules/monaco-editor")], - use: ["style-loader", "css-loader"], - }, - // For monaco-editor-webpack-plugin - { - test: /\.ttf$/, - type: "asset/resource", - }, - ], - }, - - plugins: [ - // new CaseSensitivePathsWebpackPlugin(), - new Dotenv({ - systemvars: true, - silent: true, - }), - new CopyPlugin({ - patterns: [ - { - from: pathTo("../public/locales"), - to: pathTo("../dist/locales"), - }, - { - from: pathTo("../public/manifest.json"), - to: pathTo("../dist/manifest.json"), - }, - ], - }), - new MonacoWebpackPlugin({ - filename: "monaco/[name].worker.js", - languages: Object.values(LANGUAGES_BY_FILE_EXTENSION), - }), - ], - - resolve: { - // alias: { - // "react-dom": "@hot-loader/react-dom", - // }, - extensions: [".js", ".ts", ".tsx", ".jsx"], - plugins: [ - new TsconfigPathsPlugin({ - configFile: pathTo("../tsconfig.json"), - }), - ], - symlinks: false, - cacheWithContext: false, - fallback: { crypto: false, fs: false, path: false }, - }, - - externals: { - // required by xmllint (but not really used in the browser) - ws: "{}", - }, -}; - -export default config; diff --git a/openubl/ui/client/config/webpack.dev.ts b/openubl/ui/client/config/webpack.dev.ts deleted file mode 100644 index ed8d4b49..00000000 --- a/openubl/ui/client/config/webpack.dev.ts +++ /dev/null @@ -1,123 +0,0 @@ -import path from "path"; -import { mergeWithRules } from "webpack-merge"; -import type { Configuration as WebpackConfiguration } from "webpack"; -import type { Configuration as DevServerConfiguration } from "webpack-dev-server"; - -import CopyPlugin from "copy-webpack-plugin"; -import HtmlWebpackPlugin from "html-webpack-plugin"; -import ReactRefreshTypeScript from "react-refresh-typescript"; -import ReactRefreshWebpackPlugin from "@pmmmwh/react-refresh-webpack-plugin"; -import ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin"; - -import { - encodeEnv, - OPENUBL_ENV, - SERVER_ENV_KEYS, - proxyMap, -} from "@openubl-ui/common"; -import { stylePaths } from "./stylePaths"; -import commonWebpackConfiguration from "./webpack.common"; - -const brandType = OPENUBL_ENV.PROFILE; -const pathTo = (relativePath: string) => path.resolve(__dirname, relativePath); - -interface Configuration extends WebpackConfiguration { - devServer?: DevServerConfiguration; -} - -const devServer: DevServerConfiguration = { - port: 9000, - historyApiFallback: { - disableDotRule: true, - }, - hot: true, - proxy: proxyMap, -}; - -const config: Configuration = mergeWithRules({ - module: { - rules: { - test: "match", - use: { - loader: "match", - options: "replace", - }, - }, - }, -})(commonWebpackConfiguration, { - mode: "development", - devtool: "eval-source-map", - output: { - filename: "[name].js", - chunkFilename: "js/[name].js", - assetModuleFilename: "assets/[name][ext]", - }, - - devServer, - - module: { - rules: [ - { - test: /\.[jt]sx?$/, - exclude: /node_modules/, - use: { - loader: "ts-loader", - options: { - transpileOnly: true, // HMR in webpack-dev-server requires transpileOnly - getCustomTransformers: () => ({ - before: [ReactRefreshTypeScript()], - }), - }, - }, - }, - { - test: /\.css$/, - include: [...stylePaths], - use: ["style-loader", "css-loader"], - }, - { - test: /\.yaml$/, - use: "raw-loader", - }, - ], - }, - - plugins: [ - new ReactRefreshWebpackPlugin(), - new ForkTsCheckerWebpackPlugin({ - typescript: { - mode: "readonly", - }, - }), - new CopyPlugin({ - patterns: [ - { - from: pathTo("../public/mockServiceWorker.js"), - }, - ], - }), - // index.html generated at compile time to inject `_env` - new HtmlWebpackPlugin({ - filename: "index.html", - template: pathTo("../public/index.html.ejs"), - templateParameters: { - _env: encodeEnv(OPENUBL_ENV, SERVER_ENV_KEYS), - brandType, - }, - favicon: pathTo(`../public/${brandType}-favicon.ico`), - minify: { - collapseWhitespace: false, - keepClosingSlash: true, - minifyJS: true, - removeEmptyAttributes: true, - removeRedundantAttributes: true, - }, - }), - ], - - watchOptions: { - // ignore watching everything except @openubl-ui packages - ignored: /node_modules\/(?!@openubl-ui\/)/, - }, -} as Configuration); -export default config; diff --git a/openubl/ui/client/config/webpack.prod.ts b/openubl/ui/client/config/webpack.prod.ts deleted file mode 100644 index cd911301..00000000 --- a/openubl/ui/client/config/webpack.prod.ts +++ /dev/null @@ -1,75 +0,0 @@ -import path from "path"; -import merge from "webpack-merge"; -import webpack, { Configuration } from "webpack"; -import MiniCssExtractPlugin from "mini-css-extract-plugin"; -import CssMinimizerPlugin from "css-minimizer-webpack-plugin"; -import HtmlWebpackPlugin from "html-webpack-plugin"; - -import { OPENUBL_ENV } from "@openubl-ui/common"; -import { stylePaths } from "./stylePaths"; -import commonWebpackConfiguration from "./webpack.common"; - -const brandType = OPENUBL_ENV.PROFILE; -const pathTo = (relativePath: string) => path.resolve(__dirname, relativePath); - -const config = merge(commonWebpackConfiguration, { - mode: "production", - devtool: "nosources-source-map", // used to map stack traces on the client without exposing all of the source code - output: { - filename: "[name].[contenthash:8].min.js", - chunkFilename: "js/[name].[chunkhash:8].min.js", - assetModuleFilename: "assets/[name].[contenthash:8][ext]", - }, - - optimization: { - minimize: true, - minimizer: [ - "...", // The '...' string represents the webpack default TerserPlugin instance - new CssMinimizerPlugin(), - ], - }, - - module: { - rules: [ - { - test: /\.css$/, - include: [...stylePaths], - use: [MiniCssExtractPlugin.loader, "css-loader"], - }, - { - test: /\.yaml$/, - use: "raw-loader", - }, - ], - }, - - plugins: [ - new MiniCssExtractPlugin({ - filename: "[name].[contenthash:8].css", - chunkFilename: "css/[name].[chunkhash:8].min.css", - }), - new CssMinimizerPlugin({ - minimizerOptions: { - preset: ["default", { mergeLonghand: false }], - }, - }), - new webpack.EnvironmentPlugin({ - NODE_ENV: "production", - }), - // index.html generated at runtime via the express server to inject `_env` - new HtmlWebpackPlugin({ - filename: "index.html.ejs", - template: `!!raw-loader!${pathTo("../public/index.html.ejs")}`, - favicon: pathTo(`../public/${brandType}-favicon.ico`), - minify: { - collapseWhitespace: false, - keepClosingSlash: true, - minifyJS: true, - removeEmptyAttributes: true, - removeRedundantAttributes: true, - }, - }), - ], -}); - -export default config; diff --git a/openubl/ui/client/i18next-parser.config.js b/openubl/ui/client/i18next-parser.config.js deleted file mode 100644 index f91fdc4e..00000000 --- a/openubl/ui/client/i18next-parser.config.js +++ /dev/null @@ -1,27 +0,0 @@ -/* eslint-env node */ - -module.exports = { - createOldCatalogs: true, // Save the \_old files - - indentation: 2, // Indentation of the catalog files - - keepRemoved: true, // Keep keys from the catalog that are no longer in code - - lexers: { - js: ["JsxLexer"], - ts: ["JsxLexer"], - jsx: ["JsxLexer"], - tsx: ["JsxLexer"], - - default: ["JsxLexer"], - }, - - locales: ["en", "es"], - - output: "public/locales/$LOCALE/$NAMESPACE.json", - - input: ["src/**/*.{js,jsx,ts,tsx}"], - - sort: true, - verbose: true, -}; diff --git a/openubl/ui/client/package.json b/openubl/ui/client/package.json deleted file mode 100644 index e7c24cd8..00000000 --- a/openubl/ui/client/package.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "name": "@openubl-ui/client", - "version": "0.1.0", - "license": "Apache-2.0", - "private": true, - "scripts": { - "analyze": "source-map-explorer 'dist/static/js/*.js'", - "clean": "rimraf ./dist", - "extract": "i18next --config i18next-parser.config.js", - "prebuild": "npm run clean && npm run tsc -- --noEmit", - "build": "NODE_ENV=production webpack --config ./config/webpack.prod.ts", - "build:dev": "NODE_ENV=development webpack --config ./config/webpack.dev.ts", - "start:dev": "NODE_ENV=development webpack serve --config ./config/webpack.dev.ts", - "test": "NODE_ENV=test jest --rootDir=. --config=./config/jest.config.ts", - "lint": "eslint .", - "tsc": "tsc -p ./tsconfig.json" - }, - "lint-staged": { - "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}": "eslint --fix", - "*.{css,json,md,yaml,yml}": "prettier --write" - }, - "dependencies": { - "@dnd-kit/core": "^6.0.7", - "@dnd-kit/sortable": "^7.0.2", - "@hookform/resolvers": "^2.9.11", - "@mturley-latest/react-table-batteries": "^1.0.4", - "@patternfly/patternfly": "^5.0.2", - "@patternfly/react-charts": "^7.1.0", - "@patternfly/react-code-editor": "^5.1.0", - "@patternfly/react-core": "^5.1.0", - "@patternfly/react-table": "^5.1.0", - "@patternfly/react-tokens": "^5.1.0", - "@react-keycloak/web": "^3.4.0", - "@tanstack/react-query": "^5.17.9", - "@tanstack/react-query-devtools": "^5.17.9", - "axios": "^0.21.2", - "dayjs": "^1.11.7", - "ejs": "^3.1.7", - "fast-xml-parser": "^4.0.3", - "file-saver": "^2.0.5", - "i18next": "^19.8.4", - "i18next-http-backend": "^1.0.22", - "js-yaml": "^4.1.0", - "keycloak-js": "^18.0.1", - "oidc-client-ts": "^2.4.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-hook-form": "^7.43.1", - "react-i18next": "^11.8.5", - "react-markdown": "^8.0.7", - "react-measure": "^2.5.2", - "react-monaco-editor": "0.51.0", - "react-oidc-context": "^2.3.1", - "react-router-dom": "^6.21.1", - "tinycolor2": "^1.6.0", - "typesafe-actions": "^5.1.0", - "web-vitals": "^0.2.4", - "xmllint": "^0.1.1", - "yaml": "^1.10.2", - "yup": "^0.32.11" - }, - "devDependencies": { - "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10", - "@testing-library/jest-dom": "^5.17.0", - "@testing-library/react": "^13.4.0", - "@testing-library/user-event": "^14.4.3", - "@types/dotenv-webpack": "^7.0.4", - "@types/ejs": "^3.1.0", - "@types/file-saver": "^2.0.2", - "@types/js-yaml": "^4.0.5", - "@types/react": "^18.2.0", - "@types/react-dom": "^18.2.0", - "@types/react-measure": "^2.0.6", - "@types/tinycolor2": "^1.4.4", - "browserslist": "^4.19.1", - "camelcase": "^6.3.0", - "case-sensitive-paths-webpack-plugin": "^2.4.0", - "copy-webpack-plugin": "^11.0.0", - "css-loader": "^5.2.7", - "css-minimizer-webpack-plugin": "^3.4.1", - "dotenv-webpack": "^7.0.3", - "exports-loader": "^3.1.0", - "file-loader": "^6.2.0", - "fork-ts-checker-webpack-plugin": "^8.0.0", - "html-webpack-plugin": "^5.5.0", - "i18next-parser": "^0.13.0", - "mini-css-extract-plugin": "^2.5.2", - "monaco-editor-webpack-plugin": "^7.0.1", - "msw": "^1.2.3", - "raw-loader": "^4.0.2", - "react-refresh": "^0.14.0", - "react-refresh-typescript": "^2.0.9", - "sass-loader": "^12.4.0", - "source-map-explorer": "^2.5.2", - "style-loader": "^3.3.1", - "svg-url-loader": "^7.1.1", - "terser-webpack-plugin": "^5.3.0", - "ts-loader": "^9.4.1", - "tsconfig-paths-webpack-plugin": "^4.0.0", - "url-loader": "^4.1.1", - "webpack": "^5.88.2", - "webpack-cli": "^5.1.4", - "webpack-dev-server": "^4.15.1", - "webpack-merge": "^5.9.0" - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - }, - "nyc": { - "exclude": "client/src/reportWebVitals.ts" - }, - "msw": { - "workerDirectory": "public" - } -} diff --git a/openubl/ui/client/public/index.html.ejs b/openubl/ui/client/public/index.html.ejs deleted file mode 100644 index ec6051c4..00000000 --- a/openubl/ui/client/public/index.html.ejs +++ /dev/null @@ -1,27 +0,0 @@ - - - - <% if(brandType == 'lf'){ %> - LibreFact - - - <% } else{ %> - Openubl - - - <% } %> - - - - - - - - - - -
- - diff --git a/openubl/ui/client/public/locales/en/translation.json b/openubl/ui/client/public/locales/en/translation.json deleted file mode 100644 index b7ccfef8..00000000 --- a/openubl/ui/client/public/locales/en/translation.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "actions": { - "cancel": "Cancel", - "clearAllFilters": "Clear all filters", - "createNew": "Create new", - "delete": "Delete", - "edit": "Edit", - "filterBy": "Filter by {{what}}", - "selectAll": "Select all", - "selectNone": "Select none", - "selectPage": "Select page" - }, - "dialog": { - "message": { - "delete": "This action cannot be undone" - }, - "title": { - "deleteWithName": "Delete {{what}} \"{{name}}\"", - "new": "New {{what}}" - } - }, - "message": { - "noDataAvailableBody": "No data available", - "noDataAvailableTitle": "No data available", - "noResultsFoundBody": "No resulst found", - "noResultsFoundTitle": "No results found" - }, - "terms": { - "cancel": "Cancel", - "create": "Create", - "description": "Description", - "name": "Name", - "project": "Project", - "projectDeleted": "Project deleted", - "projects": "Projects", - "save": "Save" - }, - "toastr": { - "fail": { - "create": "Failed to create {{type}}.", - "save": "Failed to save {{type}}." - }, - "success": { - "created": "{{type}} was successfully created.", - "saved": "{{type}} was successfully saved." - } - } -} diff --git a/openubl/ui/client/public/locales/es/translation.json b/openubl/ui/client/public/locales/es/translation.json deleted file mode 100644 index 5bcf0b32..00000000 --- a/openubl/ui/client/public/locales/es/translation.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "actions": { - "cancel": "Cancelar", - "clearAllFilters": "Limpiar todos los filtros", - "createNew": "Crear nuevo", - "delete": "Eliminar", - "edit": "Editar", - "filterBy": "Filtrar por {{what}}", - "selectAll": "Seleccionar todos", - "selectNone": "Seleccionar ninguno", - "selectPage": "Seleccionar página" - }, - "dialog": { - "message": { - "delete": "Esta acción no puede ser revertida." - }, - "title": { - "deleteWithName": "Eliminar {{what}} \"{{name}}\"?", - "new": "Nuevo {{what}}" - } - }, - "message": { - "noDataAvailableBody": "No hay datos disponibles para ser mostrados aquí.", - "noDataAvailableTitle": "No hay datos disponibles", - "noResultsFoundBody": "Ningún resultado coincide con los criterios del filtro. Elimine todos los filtros o borre todos los filtros para mostrar los resultados.", - "noResultsFoundTitle": "No se han encontrado resultados" - }, - "terms": { - "cancel": "Cancelar", - "create": "Crear", - "description": "Descripción", - "name": "Nombre", - "project": "Proyecto", - "projectDeleted": "Proyecto eliminado", - "projects": "Proyectos", - "save": "Guardar" - }, - "toastr": { - "fail": { - "create": "Error al crear {{type}}.", - "save": "Error al guardar {{type}}." - }, - "success": { - "created": "{{type}} fue creado.", - "saved": "{{type}} fue guardado." - } - } -} diff --git a/openubl/ui/client/public/manifest.json b/openubl/ui/client/public/manifest.json deleted file mode 100644 index 4c6ad8dd..00000000 --- a/openubl/ui/client/public/manifest.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "short_name": "openubl-ui", - "name": "Openubl UI", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} diff --git a/openubl/ui/client/public/mockServiceWorker.js b/openubl/ui/client/public/mockServiceWorker.js deleted file mode 100644 index e5aa935a..00000000 --- a/openubl/ui/client/public/mockServiceWorker.js +++ /dev/null @@ -1,303 +0,0 @@ -/* eslint-disable */ -/* tslint:disable */ - -/** - * Mock Service Worker (1.2.3). - * @see https://github.com/mswjs/msw - * - Please do NOT modify this file. - * - Please do NOT serve this file on production. - */ - -const INTEGRITY_CHECKSUM = "3d6b9f06410d179a7f7404d4bf4c3c70"; -const activeClientIds = new Set(); - -self.addEventListener("install", function () { - self.skipWaiting(); -}); - -self.addEventListener("activate", function (event) { - event.waitUntil(self.clients.claim()); -}); - -self.addEventListener("message", async function (event) { - const clientId = event.source.id; - - if (!clientId || !self.clients) { - return; - } - - const client = await self.clients.get(clientId); - - if (!client) { - return; - } - - const allClients = await self.clients.matchAll({ - type: "window", - }); - - switch (event.data) { - case "KEEPALIVE_REQUEST": { - sendToClient(client, { - type: "KEEPALIVE_RESPONSE", - }); - break; - } - - case "INTEGRITY_CHECK_REQUEST": { - sendToClient(client, { - type: "INTEGRITY_CHECK_RESPONSE", - payload: INTEGRITY_CHECKSUM, - }); - break; - } - - case "MOCK_ACTIVATE": { - activeClientIds.add(clientId); - - sendToClient(client, { - type: "MOCKING_ENABLED", - payload: true, - }); - break; - } - - case "MOCK_DEACTIVATE": { - activeClientIds.delete(clientId); - break; - } - - case "CLIENT_CLOSED": { - activeClientIds.delete(clientId); - - const remainingClients = allClients.filter((client) => { - return client.id !== clientId; - }); - - // Unregister itself when there are no more clients - if (remainingClients.length === 0) { - self.registration.unregister(); - } - - break; - } - } -}); - -self.addEventListener("fetch", function (event) { - const { request } = event; - const accept = request.headers.get("accept") || ""; - - // Bypass server-sent events. - if (accept.includes("text/event-stream")) { - return; - } - - // Bypass navigation requests. - if (request.mode === "navigate") { - return; - } - - // Opening the DevTools triggers the "only-if-cached" request - // that cannot be handled by the worker. Bypass such requests. - if (request.cache === "only-if-cached" && request.mode !== "same-origin") { - return; - } - - // Bypass all requests when there are no active clients. - // Prevents the self-unregistered worked from handling requests - // after it's been deleted (still remains active until the next reload). - if (activeClientIds.size === 0) { - return; - } - - // Generate unique request ID. - const requestId = Math.random().toString(16).slice(2); - - event.respondWith( - handleRequest(event, requestId).catch((error) => { - if (error.name === "NetworkError") { - console.warn( - '[MSW] Successfully emulated a network error for the "%s %s" request.', - request.method, - request.url - ); - return; - } - - // At this point, any exception indicates an issue with the original request/response. - console.error( - `\ -[MSW] Caught an exception from the "%s %s" request (%s). This is probably not a problem with Mock Service Worker. There is likely an additional logging output above.`, - request.method, - request.url, - `${error.name}: ${error.message}` - ); - }) - ); -}); - -async function handleRequest(event, requestId) { - const client = await resolveMainClient(event); - const response = await getResponse(event, client, requestId); - - // Send back the response clone for the "response:*" life-cycle events. - // Ensure MSW is active and ready to handle the message, otherwise - // this message will pend indefinitely. - if (client && activeClientIds.has(client.id)) { - (async function () { - const clonedResponse = response.clone(); - sendToClient(client, { - type: "RESPONSE", - payload: { - requestId, - type: clonedResponse.type, - ok: clonedResponse.ok, - status: clonedResponse.status, - statusText: clonedResponse.statusText, - body: - clonedResponse.body === null ? null : await clonedResponse.text(), - headers: Object.fromEntries(clonedResponse.headers.entries()), - redirected: clonedResponse.redirected, - }, - }); - })(); - } - - return response; -} - -// Resolve the main client for the given event. -// Client that issues a request doesn't necessarily equal the client -// that registered the worker. It's with the latter the worker should -// communicate with during the response resolving phase. -async function resolveMainClient(event) { - const client = await self.clients.get(event.clientId); - - if (client?.frameType === "top-level") { - return client; - } - - const allClients = await self.clients.matchAll({ - type: "window", - }); - - return allClients - .filter((client) => { - // Get only those clients that are currently visible. - return client.visibilityState === "visible"; - }) - .find((client) => { - // Find the client ID that's recorded in the - // set of clients that have registered the worker. - return activeClientIds.has(client.id); - }); -} - -async function getResponse(event, client, requestId) { - const { request } = event; - const clonedRequest = request.clone(); - - function passthrough() { - // Clone the request because it might've been already used - // (i.e. its body has been read and sent to the client). - const headers = Object.fromEntries(clonedRequest.headers.entries()); - - // Remove MSW-specific request headers so the bypassed requests - // comply with the server's CORS preflight check. - // Operate with the headers as an object because request "Headers" - // are immutable. - delete headers["x-msw-bypass"]; - - return fetch(clonedRequest, { headers }); - } - - // Bypass mocking when the client is not active. - if (!client) { - return passthrough(); - } - - // Bypass initial page load requests (i.e. static assets). - // The absence of the immediate/parent client in the map of the active clients - // means that MSW hasn't dispatched the "MOCK_ACTIVATE" event yet - // and is not ready to handle requests. - if (!activeClientIds.has(client.id)) { - return passthrough(); - } - - // Bypass requests with the explicit bypass header. - // Such requests can be issued by "ctx.fetch()". - if (request.headers.get("x-msw-bypass") === "true") { - return passthrough(); - } - - // Notify the client that a request has been intercepted. - const clientMessage = await sendToClient(client, { - type: "REQUEST", - payload: { - id: requestId, - url: request.url, - method: request.method, - headers: Object.fromEntries(request.headers.entries()), - cache: request.cache, - mode: request.mode, - credentials: request.credentials, - destination: request.destination, - integrity: request.integrity, - redirect: request.redirect, - referrer: request.referrer, - referrerPolicy: request.referrerPolicy, - body: await request.text(), - bodyUsed: request.bodyUsed, - keepalive: request.keepalive, - }, - }); - - switch (clientMessage.type) { - case "MOCK_RESPONSE": { - return respondWithMock(clientMessage.data); - } - - case "MOCK_NOT_FOUND": { - return passthrough(); - } - - case "NETWORK_ERROR": { - const { name, message } = clientMessage.data; - const networkError = new Error(message); - networkError.name = name; - - // Rejecting a "respondWith" promise emulates a network error. - throw networkError; - } - } - - return passthrough(); -} - -function sendToClient(client, message) { - return new Promise((resolve, reject) => { - const channel = new MessageChannel(); - - channel.port1.onmessage = (event) => { - if (event.data && event.data.error) { - return reject(event.data.error); - } - - resolve(event.data); - }; - - client.postMessage(message, [channel.port2]); - }); -} - -function sleep(timeMs) { - return new Promise((resolve) => { - setTimeout(resolve, timeMs); - }); -} - -async function respondWithMock(response) { - await sleep(response.delay); - return new Response(response.body, response); -} diff --git a/openubl/ui/client/public/openubl-favicon.ico b/openubl/ui/client/public/openubl-favicon.ico deleted file mode 100644 index 5883d8b8..00000000 Binary files a/openubl/ui/client/public/openubl-favicon.ico and /dev/null differ diff --git a/openubl/ui/client/public/robots.txt b/openubl/ui/client/public/robots.txt deleted file mode 100644 index e9e57dc4..00000000 --- a/openubl/ui/client/public/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: diff --git a/openubl/ui/client/src/app/App.css b/openubl/ui/client/src/app/App.css deleted file mode 100644 index 50707665..00000000 --- a/openubl/ui/client/src/app/App.css +++ /dev/null @@ -1,10 +0,0 @@ -.pf-c-select__toggle:before { - border-top: var(--pf-c-select__toggle--before--BorderTopWidth) solid - var(--pf-c-select__toggle--before--BorderTopColor) !important; - border-right: var(--pf-c-select__toggle--before--BorderRightWidth) solid - var(--pf-c-select__toggle--before--BorderRightColor) !important; - border-bottom: var(--pf-c-select__toggle--before--BorderBottomWidth) solid - var(--pf-c-select__toggle--before--BorderBottomColor) !important; - border-left: var(--pf-c-select__toggle--before--BorderLeftWidth) solid - var(--pf-c-select__toggle--before--BorderLeftColor) !important; -} diff --git a/openubl/ui/client/src/app/App.tsx b/openubl/ui/client/src/app/App.tsx deleted file mode 100644 index abc999c9..00000000 --- a/openubl/ui/client/src/app/App.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import "./App.css"; -import React from "react"; -import { BrowserRouter as Router } from "react-router-dom"; - -import { DefaultLayout } from "./layout"; -import { AppRoutes } from "./Routes"; -import { NotificationsProvider } from "./components/NotificationsContext"; - -import "@patternfly/patternfly/patternfly.css"; -import "@patternfly/patternfly/patternfly-addons.css"; - -const App: React.FC = () => { - return ( - - - - - - - - ); -}; - -export default App; diff --git a/openubl/ui/client/src/app/Constants.ts b/openubl/ui/client/src/app/Constants.ts deleted file mode 100644 index bb9e5e2d..00000000 --- a/openubl/ui/client/src/app/Constants.ts +++ /dev/null @@ -1,16 +0,0 @@ -import ENV from "./env"; - -export enum BrandType { - Openubl = "openubl", - LF = "lf", -} -export const APP_BRAND = ENV.PROFILE as BrandType; - -// URL param prefixes: should be short, must be unique for each table that uses one -export enum TableURLParamKeyPrefix { - repositories = "r", - tags = "t", -} - -export const isAuthRequired = ENV.AUTH_REQUIRED !== "false"; -export const uploadLimit = "500m"; diff --git a/openubl/ui/client/src/app/Routes.tsx b/openubl/ui/client/src/app/Routes.tsx deleted file mode 100644 index f4b22312..00000000 --- a/openubl/ui/client/src/app/Routes.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import React, { Suspense, lazy } from "react"; -import { useParams, useRoutes } from "react-router-dom"; - -import { Bullseye, Spinner } from "@patternfly/react-core"; - -const Home = lazy(() => import("./pages/home")); -const ProjectList = lazy(() => import("./pages/project-list")); -const ProjectDetails = lazy(() => import("./pages/project-details")); - -export const ViewRepositoryRouteParam = "repositoryId"; -export const ViewPackageRouteParam = "packageId"; - -export enum PathParam { - PROJECT_ID = "projectId", -} - -export const AppRoutes = () => { - const allRoutes = useRoutes([ - { path: "/", element: }, - { path: "/projects", element: }, - { path: `/projects/:${PathParam.PROJECT_ID}`, element: }, - // { path: "/projects/:projectId/documents", element: }, - // { path: "*", element: }, - ]); - - return ( - - - - } - > - {allRoutes} - - ); -}; - -export const useRouteParams = (pathParam: PathParam) => { - const params = useParams(); - return params[pathParam]; -}; diff --git a/openubl/ui/client/src/app/api/models.ts b/openubl/ui/client/src/app/api/models.ts deleted file mode 100644 index 13862a1b..00000000 --- a/openubl/ui/client/src/app/api/models.ts +++ /dev/null @@ -1,72 +0,0 @@ -export enum MimeType { - TAR = "tar", - YAML = "yaml", -} - -/** Mark an object as "New" therefore does not have an `id` field. */ -export type New = Omit; - -export interface HubFilter { - field: string; - operator?: "=" | "!=" | "~" | ">" | ">=" | "<" | "<="; - value: - | string - | number - | { - list: (string | number)[]; - operator?: "AND" | "OR"; - }; -} - -export interface HubRequestParams { - filters?: HubFilter[]; - sort?: { - field: string; - direction: "asc" | "desc"; - }; - page?: { - pageNumber: number; // 1-indexed - itemsPerPage: number; - }; -} - -export interface HubPaginatedResult { - data: T[]; - total: number; - params: HubRequestParams; -} - -// - -export interface Project { - id: number; - name: string; - description?: string; -} - -export interface UblDocument { - id: number; - file_id: string; - document_type: string; - document_id: string; - supplier_id: string; - voided_document_code?: string; -} - -export interface Credentials { - id: number; - name: string; - description?: string; - supplier_ids_applied_to: string[]; - soap?: { - username_sol: string; - password_sol: string; - url_invoice: string; - url_perception_retention: string; - }; - rest?: { - client_id: string; - client_secret: string; - url_despatch: string; - }; -} diff --git a/openubl/ui/client/src/app/api/rest.ts b/openubl/ui/client/src/app/api/rest.ts deleted file mode 100644 index 234b6b84..00000000 --- a/openubl/ui/client/src/app/api/rest.ts +++ /dev/null @@ -1,100 +0,0 @@ -import axios, { AxiosRequestConfig } from "axios"; -import { - HubPaginatedResult, - HubRequestParams, - New, - Project, - UblDocument, - Credentials, -} from "./models"; -import { serializeRequestParamsForHub } from "@app/hooks/table-controls"; - -const HUB = "/hub"; - -export const PROJECTS = HUB + "/projects"; - -interface ApiSearchResult { - total: number; - data: T[]; -} - -export const getHubPaginatedResult = ( - url: string, - params: HubRequestParams = {} -): Promise> => - axios - .get(url, { - params: serializeRequestParamsForHub(params), - }) - .then(({ data, headers }) => ({ - data, - total: headers["x-total"] ? parseInt(headers["x-total"], 10) : 0, - params, - })); - -export const getProjects = () => { - return axios.get(PROJECTS).then((response) => response.data); -}; - -export const getProjectById = (id: number | string) => { - return axios - .get(`${PROJECTS}/${id}`) - .then((response) => response.data); -}; - -export const createProject = (obj: New) => - axios.post(PROJECTS, obj); - -export const updateProject = (obj: Project) => - axios.put(`${PROJECTS}/${obj.id}`, obj); - -export const deleteProject = (id: number | string) => - axios.delete(`${PROJECTS}/${id}`); - -export const uploadFile = ( - projectId: number | string, - formData: FormData, - config?: AxiosRequestConfig -) => - axios.post(`${PROJECTS}/${projectId}/files`, formData, config); - -export const getUblDocuments = ( - projectId?: number | string, - params: HubRequestParams = {} -) => { - return getHubPaginatedResult( - `${PROJECTS}/${projectId}/documents`, - params - ); -}; - -export const getCredentials = (projectId: number | string) => { - return axios - .get(`${PROJECTS}/${projectId}/credentials`) - .then((response) => response.data); -}; - -export const getCredentialsById = ( - projectId: number | string, - id: number | string -) => { - return axios - .get(`${PROJECTS}/${projectId}/credentials/${id}`) - .then((response) => response.data); -}; - -export const createCredentials = ( - projectId: number | string, - obj: New -) => axios.post(`${PROJECTS}/${projectId}/credentials`, obj); - -export const updateCredentials = ( - projectId: number | string, - obj: Credentials -) => - axios.put(`${PROJECTS}/${projectId}/credentials/${obj.id}`, obj); - -export const deleteCredentials = ( - projectId: number | string, - id: number | string -) => axios.delete(`${PROJECTS}/${projectId}/credentials/${id}`); diff --git a/openubl/ui/client/src/app/axios-config/apiInit.ts b/openubl/ui/client/src/app/axios-config/apiInit.ts deleted file mode 100644 index 3138d453..00000000 --- a/openubl/ui/client/src/app/axios-config/apiInit.ts +++ /dev/null @@ -1,44 +0,0 @@ -import axios from "axios"; -import { getUser } from "@app/oidc"; - -export const initInterceptors = () => { - axios.interceptors.request.use( - (config) => { - const user = getUser(); - const token = user?.access_token; - if (token) { - config.headers.Authorization = `Bearer ${token}`; - } - return config; - }, - (error) => { - return Promise.reject(error); - } - ); - - // axios.interceptors.response.use( - // (response) => { - // return response; - // }, - // async (error) => { - // if (error.response && error.response.status === 401) { - // try { - // const refreshed = await keycloak.updateToken(5); - // if (refreshed) { - // const retryConfig = { - // ...error.config, - // headers: { - // ...error.config.headers, - // Authorization: `Bearer ${keycloak.token}`, - // }, - // }; - // return axios(retryConfig); - // } - // } catch (refreshError) { - // keycloak.login(); - // } - // } - // return Promise.reject(error); - // } - // ); -}; diff --git a/openubl/ui/client/src/app/axios-config/index.ts b/openubl/ui/client/src/app/axios-config/index.ts deleted file mode 100644 index 98b6062d..00000000 --- a/openubl/ui/client/src/app/axios-config/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { initInterceptors } from "./apiInit"; diff --git a/openubl/ui/client/src/app/components/AppPlaceholder.tsx b/openubl/ui/client/src/app/components/AppPlaceholder.tsx deleted file mode 100644 index a7850977..00000000 --- a/openubl/ui/client/src/app/components/AppPlaceholder.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from "react"; -import { Bullseye, Spinner } from "@patternfly/react-core"; - -export const AppPlaceholder: React.FC = () => { - return ( - -
-
- -
-
-

Loading...

-
-
-
- ); -}; diff --git a/openubl/ui/client/src/app/components/AppTableActionButtons.tsx b/openubl/ui/client/src/app/components/AppTableActionButtons.tsx deleted file mode 100644 index b2f7f60c..00000000 --- a/openubl/ui/client/src/app/components/AppTableActionButtons.tsx +++ /dev/null @@ -1,50 +0,0 @@ -import React from "react"; -import { Button, Flex, FlexItem } from "@patternfly/react-core"; -import { ConditionalTooltip } from "./ConditionalTooltip"; - -export interface AppTableActionButtonsProps { - isDeleteEnabled?: boolean; - tooltipMessage?: string; - onEdit: () => void; - onDelete: () => void; -} - -export const AppTableActionButtons: React.FC = ({ - isDeleteEnabled = false, - tooltipMessage = "", - onEdit, - onDelete, -}) => { - return ( - <> - - - - - - - - - - - - ); -}; diff --git a/openubl/ui/client/src/app/components/ConditionalTooltip.tsx b/openubl/ui/client/src/app/components/ConditionalTooltip.tsx deleted file mode 100644 index fa4a1667..00000000 --- a/openubl/ui/client/src/app/components/ConditionalTooltip.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import React from "react"; -import { Tooltip, TooltipProps } from "@patternfly/react-core"; - -export interface IConditionalTooltipProps extends TooltipProps { - isTooltipEnabled: boolean; - children: React.ReactElement; -} - -// TODO: lib-ui candidate -export const ConditionalTooltip: React.FC = ({ - isTooltipEnabled, - children, - ...props -}: IConditionalTooltipProps) => - isTooltipEnabled ? {children} : children; diff --git a/openubl/ui/client/src/app/components/ConfirmDialog.tsx b/openubl/ui/client/src/app/components/ConfirmDialog.tsx deleted file mode 100644 index f42e046c..00000000 --- a/openubl/ui/client/src/app/components/ConfirmDialog.tsx +++ /dev/null @@ -1,85 +0,0 @@ -import React from "react"; -import { - Button, - Modal, - ButtonVariant, - ModalVariant, -} from "@patternfly/react-core"; - -export interface ConfirmDialogProps { - isOpen: boolean; - - title: string; - titleIconVariant?: - | "success" - | "danger" - | "warning" - | "info" - | React.ComponentType; - message: string | React.ReactNode; - - confirmBtnLabel: string; - cancelBtnLabel: string; - - inProgress?: boolean; - confirmBtnVariant: ButtonVariant; - - onClose: () => void; - onConfirm: () => void; - onCancel?: () => void; -} - -export const ConfirmDialog: React.FC = ({ - isOpen, - title, - titleIconVariant, - message, - confirmBtnLabel, - cancelBtnLabel, - inProgress, - confirmBtnVariant, - onClose, - onConfirm, - onCancel, -}) => { - const confirmBtn = ( - - ); - - const cancelBtn = onCancel ? ( - - ) : undefined; - - return ( - - {message} - - ); -}; diff --git a/openubl/ui/client/src/app/components/HookFormPFFields/HookFormPFGroupController.tsx b/openubl/ui/client/src/app/components/HookFormPFFields/HookFormPFGroupController.tsx deleted file mode 100644 index 47fe53f5..00000000 --- a/openubl/ui/client/src/app/components/HookFormPFFields/HookFormPFGroupController.tsx +++ /dev/null @@ -1,135 +0,0 @@ -import * as React from "react"; -import { - FormGroup, - FormGroupProps, - FormHelperText, - HelperText, - HelperTextItem, -} from "@patternfly/react-core"; -import { - Control, - Controller, - ControllerProps, - FieldValues, - Path, -} from "react-hook-form"; - -// We have separate interfaces for these props with and without `renderInput` for convenience. -// Generic type params here are the same as the ones used by react-hook-form's . -export interface BaseHookFormPFGroupControllerProps< - TFieldValues extends FieldValues, - TName extends Path, -> { - control: Control; - label?: React.ReactNode; - labelIcon?: React.ReactElement; - name: TName; - fieldId: string; - isRequired?: boolean; - errorsSuppressed?: boolean; - helperText?: React.ReactNode; - className?: string; - formGroupProps?: FormGroupProps; -} - -export interface HookFormPFGroupControllerProps< - TFieldValues extends FieldValues, - TName extends Path, -> extends BaseHookFormPFGroupControllerProps { - renderInput: ControllerProps["render"]; -} - -export const HookFormPFGroupController = < - TFieldValues extends FieldValues = FieldValues, - TName extends Path = Path, ->({ - control, - label, - labelIcon, - name, - fieldId, - isRequired = false, - errorsSuppressed = false, - helperText, - className, - formGroupProps = {}, - renderInput, -}: HookFormPFGroupControllerProps) => ( - - control={control} - name={name} - render={({ field, fieldState, formState }) => { - const { isDirty, isTouched, error } = fieldState; - const shouldDisplayError = - error?.message && (isDirty || isTouched) && !errorsSuppressed; - return ( - - {renderInput({ field, fieldState, formState })} - {helperText || shouldDisplayError ? ( - - - - {shouldDisplayError ? error.message : helperText} - - - - ) : null} - - ); - }} - /> -); - -// Utility for pulling props needed by this component and passing the rest to a rendered input -export const extractGroupControllerProps = < - TFieldValues extends FieldValues, - TName extends Path, - TProps extends BaseHookFormPFGroupControllerProps, ->( - props: TProps -): { - extractedProps: BaseHookFormPFGroupControllerProps; - remainingProps: Omit< - TProps, - keyof BaseHookFormPFGroupControllerProps - >; -} => { - const { - control, - label, - labelIcon, - name, - fieldId, - isRequired, - errorsSuppressed, - helperText, - className, - formGroupProps, - ...remainingProps - } = props; - return { - extractedProps: { - control, - labelIcon, - label, - name, - fieldId, - isRequired, - errorsSuppressed, - helperText, - className, - formGroupProps, - }, - remainingProps, - }; -}; diff --git a/openubl/ui/client/src/app/components/HookFormPFFields/HookFormPFSelect.tsx b/openubl/ui/client/src/app/components/HookFormPFFields/HookFormPFSelect.tsx deleted file mode 100644 index 129dbd13..00000000 --- a/openubl/ui/client/src/app/components/HookFormPFFields/HookFormPFSelect.tsx +++ /dev/null @@ -1,61 +0,0 @@ -import * as React from "react"; -import { FieldValues, Path } from "react-hook-form"; -import { FormSelect, FormSelectProps } from "@patternfly/react-core"; -import { getValidatedFromErrors } from "@app/utils/utils"; -import { - extractGroupControllerProps, - HookFormPFGroupController, - BaseHookFormPFGroupControllerProps, -} from "./HookFormPFGroupController"; - -export type HookFormPFSelectProps< - TFieldValues extends FieldValues, - TName extends Path, -> = FormSelectProps & - BaseHookFormPFGroupControllerProps & { - children: React.ReactNode; - }; - -export const HookFormPFSelect = < - TFieldValues extends FieldValues = FieldValues, - TName extends Path = Path, ->( - props: HookFormPFSelectProps -) => { - const { extractedProps, remainingProps } = extractGroupControllerProps< - TFieldValues, - TName, - HookFormPFSelectProps - >(props); - const { fieldId, helperText, isRequired, errorsSuppressed } = extractedProps; - const { children, ref, ...rest } = remainingProps; - - return ( - - {...extractedProps} - renderInput={({ - field: { onChange, onBlur, value, name, ref }, - fieldState: { isDirty, error, isTouched }, - }) => ( - - {props.children} - - )} - /> - ); -}; diff --git a/openubl/ui/client/src/app/components/HookFormPFFields/HookFormPFTextArea.tsx b/openubl/ui/client/src/app/components/HookFormPFFields/HookFormPFTextArea.tsx deleted file mode 100644 index 9c6b9341..00000000 --- a/openubl/ui/client/src/app/components/HookFormPFFields/HookFormPFTextArea.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import * as React from "react"; -import { FieldValues, Path } from "react-hook-form"; -import { TextArea, TextAreaProps } from "@patternfly/react-core"; -import { getValidatedFromErrors } from "@app/utils/utils"; -import { - HookFormPFGroupController, - BaseHookFormPFGroupControllerProps, - extractGroupControllerProps, -} from "./HookFormPFGroupController"; - -export type HookFormPFTextAreaProps< - TFieldValues extends FieldValues, - TName extends Path, -> = TextAreaProps & BaseHookFormPFGroupControllerProps; - -export const HookFormPFTextArea = < - TFieldValues extends FieldValues = FieldValues, - TName extends Path = Path, ->( - props: HookFormPFTextAreaProps -) => { - const { extractedProps, remainingProps } = extractGroupControllerProps< - TFieldValues, - TName, - HookFormPFTextAreaProps - >(props); - const { fieldId, helperText, isRequired, errorsSuppressed } = extractedProps; - return ( - - {...extractedProps} - renderInput={({ - field: { onChange, onBlur, value, name, ref }, - fieldState: { isDirty, error, isTouched }, - }) => ( -