From dc6f169c06aea3505cac0872f50505bd1d70234d Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Wed, 23 Oct 2024 10:32:40 +0200 Subject: [PATCH] chore(deps): Utoipa 5, Yggdrasil 0.13.4 (#571) * chore(deps): Bump to utoipa 5 * fix: update cargo-dist to 0.23 --- .github/workflows/release.yml | 2 +- Cargo.lock | 266 ++++++++------------------- Cargo.toml | 25 --- dist-workspace.toml | 27 +++ server/Cargo.toml | 20 +- server/src/metrics/client_metrics.rs | 3 +- server/src/types.rs | 2 +- 7 files changed, 119 insertions(+), 226 deletions(-) create mode 100644 dist-workspace.toml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54d45dbb..e4fa7427 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,7 +62,7 @@ jobs: # we specify bash to get pipefail; it guards against the `curl` command # failing. otherwise `sh` won't catch that `curl` returned non-0 shell: bash - run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.22.1/cargo-dist-installer.sh | sh" + run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.23.0/cargo-dist-installer.sh | sh" - name: Cache cargo-dist uses: actions/upload-artifact@v4 with: diff --git a/Cargo.lock b/Cargo.lock index c17476b6..19516bd8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -387,9 +387,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.89" +version = "1.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" +checksum = "c042108f3ed77fd83760a5fd79b53be043192bb3b9dba91d8c574c0ada7850c8" [[package]] name = "arbitrary" @@ -531,9 +531,9 @@ dependencies = [ [[package]] name = "aws-sdk-s3" -version = "1.56.0" +version = "1.57.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cecd672c8d4265fd4fbecacd4a479180e616881bbe639250cf81ddb604e4c301" +checksum = "8888c238bf93c77c5df8274b3999fd7fc1bb3fb658616f40dfde9e4fcd9efd94" dependencies = [ "ahash", "aws-credential-types", @@ -928,7 +928,7 @@ dependencies = [ "hyperlocal", "log", "pin-project-lite", - "rustls 0.23.14", + "rustls 0.23.15", "rustls-native-certs 0.7.3", "rustls-pemfile 2.2.0", "rustls-pki-types", @@ -1080,7 +1080,7 @@ dependencies = [ "anstream", "anstyle", "clap_lex", - "strsim 0.11.1", + "strsim", ] [[package]] @@ -1272,38 +1272,14 @@ dependencies = [ "typenum", ] -[[package]] -name = "darling" -version = "0.14.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b750cb3417fd1b327431a470f388520309479ab0bf5e323505daf0290cd3850" -dependencies = [ - "darling_core 0.14.4", - "darling_macro 0.14.4", -] - [[package]] name = "darling" version = "0.20.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989" dependencies = [ - "darling_core 0.20.10", - "darling_macro 0.20.10", -] - -[[package]] -name = "darling_core" -version = "0.14.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "109c1ca6e6b7f82cc233a97004ea8ed7ca123a9af07a8230878fcfda9b158bf0" -dependencies = [ - "fnv", - "ident_case", - "proc-macro2", - "quote", - "strsim 0.10.0", - "syn 1.0.109", + "darling_core", + "darling_macro", ] [[package]] @@ -1316,45 +1292,21 @@ dependencies = [ "ident_case", "proc-macro2", "quote", - "strsim 0.11.1", + "strsim", "syn 2.0.79", ] -[[package]] -name = "darling_macro" -version = "0.14.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4aab4dbc9f7611d8b55048a3a16d2d010c2c8334e46304b40ac1cc14bf3b48e" -dependencies = [ - "darling_core 0.14.4", - "quote", - "syn 1.0.109", -] - [[package]] name = "darling_macro" version = "0.20.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ - "darling_core 0.20.10", + "darling_core", "quote", "syn 2.0.79", ] -[[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", -] - [[package]] name = "dashmap" version = "6.1.0" @@ -1402,33 +1354,33 @@ dependencies = [ [[package]] name = "derive_builder" -version = "0.12.0" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d67778784b508018359cbc8696edb3db78160bab2c2a28ba7f56ef6932997f8" +checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947" dependencies = [ "derive_builder_macro", ] [[package]] name = "derive_builder_core" -version = "0.12.0" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c11bdc11a0c47bc7d37d582b5285da6849c96681023680b906673c5707af7b0f" +checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8" dependencies = [ - "darling 0.14.4", + "darling", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.79", ] [[package]] name = "derive_builder_macro" -version = "0.12.0" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebcda35c7a396850a55ffeac740804b40ffec779b98fffbb1738f4033f0ee79e" +checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c" dependencies = [ "derive_builder_core", - "syn 1.0.109", + "syn 2.0.79", ] [[package]] @@ -2053,7 +2005,7 @@ dependencies = [ "http 1.1.0", "hyper 1.5.0", "hyper-util", - "rustls 0.23.14", + "rustls 0.23.15", "rustls-pki-types", "tokio", "tokio-rustls 0.26.0", @@ -2343,6 +2295,12 @@ dependencies = [ "scopeguard", ] +[[package]] +name = "lockfree-object-pool" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9374ef4228402d4b7e403e5838cb880d9ee663314b0a900d5a6aabf0c213552e" + [[package]] name = "log" version = "0.4.22" @@ -2504,27 +2462,6 @@ dependencies = [ "libc", ] -[[package]] -name = "num_enum" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e613fc340b2220f734a8595782c551f1250e969d87d3be1ae0579e8d4065179" -dependencies = [ - "num_enum_derive", -] - -[[package]] -name = "num_enum_derive" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af1844ef2428cc3e1cb900be36181049ef3d3193c63e43026cfe202983b27a56" -dependencies = [ - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 2.0.79", -] - [[package]] name = "num_threads" version = "0.1.7" @@ -2817,39 +2754,6 @@ dependencies = [ "zerocopy", ] -[[package]] -name = "proc-macro-crate" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b" -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" -dependencies = [ - "proc-macro2", - "quote", - "version_check", -] - [[package]] name = "proc-macro2" version = "1.0.87" @@ -2964,7 +2868,7 @@ dependencies = [ "quinn-proto", "quinn-udp", "rustc-hash", - "rustls 0.23.14", + "rustls 0.23.15", "socket2", "thiserror", "tokio", @@ -2981,7 +2885,7 @@ dependencies = [ "rand", "ring", "rustc-hash", - "rustls 0.23.14", + "rustls 0.23.15", "slab", "thiserror", "tinyvec", @@ -3042,9 +2946,9 @@ dependencies = [ [[package]] name = "redis" -version = "0.27.4" +version = "0.27.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc6baebe319ef5e4b470f248335620098d1c2e9261e995be05f56f719ca4bdb2" +checksum = "81cccf17a692ce51b86564334614d72dcae1def0fd5ecebc9f02956da74352b5" dependencies = [ "arc-swap", "async-trait", @@ -3057,7 +2961,7 @@ dependencies = [ "percent-encoding", "pin-project-lite", "rand", - "rustls 0.23.14", + "rustls 0.23.15", "rustls-native-certs 0.7.3", "rustls-pemfile 2.2.0", "rustls-pki-types", @@ -3147,7 +3051,6 @@ dependencies = [ "base64 0.22.1", "bytes", "encoding_rs", - "futures-channel", "futures-core", "futures-util", "h2 0.4.6", @@ -3167,7 +3070,7 @@ dependencies = [ "percent-encoding", "pin-project-lite", "quinn", - "rustls 0.23.14", + "rustls 0.23.15", "rustls-pemfile 2.2.0", "rustls-pki-types", "serde", @@ -3295,9 +3198,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.14" +version = "0.23.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "415d9944693cb90382053259f89fbb077ea730ad7273047ec63b19bc9b160ba8" +checksum = "5fbb44d7acc4e873d613422379f69f237a1b141928c02f6bc6ccfddddc2d7993" dependencies = [ "log", "once_cell", @@ -3483,9 +3386,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.128" +version = "1.0.132" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" +checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" dependencies = [ "itoa", "memchr", @@ -3554,7 +3457,7 @@ version = "3.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d846214a9854ef724f3da161b426242d8de7c1fc7de2f89bb1efcb154dca79d" dependencies = [ - "darling 0.20.10", + "darling", "proc-macro2", "quote", "syn 2.0.79", @@ -3635,6 +3538,12 @@ dependencies = [ "rand_core", ] +[[package]] +name = "simd-adler32" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" + [[package]] name = "slab" version = "0.4.9" @@ -3688,12 +3597,6 @@ version = "3.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ceb97b7225c713c2fd4db0153cb6b3cab244eb37900c3f634ed4d43310d8c34" -[[package]] -name = "strsim" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" - [[package]] name = "strsim" version = "0.11.1" @@ -3858,9 +3761,9 @@ dependencies = [ [[package]] name = "testcontainers-modules" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd106a016d7b19e4c080c73c858d842fead9e420620ad873955569cc6bdac11" +checksum = "708fce58200e480633a428b7356fc39eb7fef02e47bd6faa94ba1d0746e6f17e" dependencies = [ "testcontainers", ] @@ -3999,7 +3902,7 @@ version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" dependencies = [ - "rustls 0.23.14", + "rustls 0.23.15", "rustls-pki-types", "tokio", ] @@ -4043,23 +3946,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "toml_datetime" -version = "0.6.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" - -[[package]] -name = "toml_edit" -version = "0.22.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" -dependencies = [ - "indexmap 2.6.0", - "toml_datetime", - "winnow", -] - [[package]] name = "tower-service" version = "0.3.3" @@ -4282,7 +4168,7 @@ dependencies = [ "cidr", "clap", "clap-markdown", - "dashmap 6.1.0", + "dashmap", "env_logger", "futures", "futures-core", @@ -4301,7 +4187,7 @@ dependencies = [ "rand", "redis", "reqwest", - "rustls 0.23.14", + "rustls 0.23.15", "rustls-pemfile 2.2.0", "rustls-pki-types", "semver", @@ -4325,11 +4211,11 @@ dependencies = [ [[package]] name = "unleash-types" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ec98d6933713aaffd77d7dc2663601b97dd893d9a1e12c44c1d971fe507c9f2" +checksum = "5fad3f40b62f88d6d623f3cdc6c73ea0a3dda4108db31bbcb31cd0d7fbaf1c57" dependencies = [ - "base64 0.21.7", + "base64 0.22.1", "chrono", "derive_builder", "serde", @@ -4340,13 +4226,13 @@ dependencies = [ [[package]] name = "unleash-yggdrasil" -version = "0.13.2" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca6bb792113d3e96c587de8ed88fcfe464e85fc3fb741254a8fdc753a7636332" +checksum = "8446d97e37f6ecb4fdc7497c9dcfe0948dd4383787c829562a7ea5e4a88c0eb6" dependencies = [ "chrono", "convert_case 0.6.0", - "dashmap 5.5.3", + "dashmap", "ipnet", "ipnetwork", "lazy_static", @@ -4392,9 +4278,9 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "utoipa" -version = "4.2.3" +version = "5.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5afb1a60e207dca502682537fefcfd9921e71d0b83e9576060f09abc6efab23" +checksum = "8861811f7213bb866cd02319acb69a15b0ef8ca46874e805bd92d488c779036a" dependencies = [ "indexmap 2.6.0", "serde", @@ -4404,11 +4290,10 @@ dependencies = [ [[package]] name = "utoipa-gen" -version = "4.3.1" +version = "5.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20c24e8ab68ff9ee746aad22d39b5535601e6416d1b0feeabf78be986a5c4392" +checksum = "5fadf94f07d67df4b15e6490dd9a9d59d7374849413e7f137eafe52fdcbd0db5" dependencies = [ - "proc-macro-error", "proc-macro2", "quote", "regex", @@ -4417,14 +4302,13 @@ dependencies = [ [[package]] name = "utoipa-swagger-ui" -version = "7.1.0" +version = "8.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "943e0ff606c6d57d410fd5663a4d7c074ab2c5f14ab903b9514565e59fa1189e" +checksum = "1054c946332dfc6e4bc31f704aa714fcbed73e9f412dd939f9ed86869e6304c3" dependencies = [ "actix-web", "mime_guess", "regex", - "reqwest", "rust-embed", "serde", "serde_json", @@ -4802,15 +4686,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" -[[package]] -name = "winnow" -version = "0.6.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b" -dependencies = [ - "memchr", -] - [[package]] name = "xattr" version = "1.3.1" @@ -4863,9 +4738,9 @@ checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" [[package]] name = "zip" -version = "1.1.4" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cc23c04387f4da0374be4533ad1208cbb091d5c11d070dfef13676ad6497164" +checksum = "dc5e4288ea4057ae23afc69a4472434a87a2495cafce6632fd1c4ec9f5cf3494" dependencies = [ "arbitrary", "crc32fast", @@ -4873,8 +4748,23 @@ dependencies = [ "displaydoc", "flate2", "indexmap 2.6.0", - "num_enum", + "memchr", "thiserror", + "zopfli", +] + +[[package]] +name = "zopfli" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5019f391bac5cf252e93bbcc53d039ffd62c7bfb7c150414d61369afe57e946" +dependencies = [ + "bumpalo", + "crc32fast", + "lockfree-object-pool", + "log", + "once_cell", + "simd-adler32", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index b11e7486..857b6245 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,31 +1,6 @@ [workspace] members = ["server"] resolver = "2" - -# Config for 'cargo dist' -[workspace.metadata.dist] -# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) -cargo-dist-version = "0.22.1" -# CI backends to support -ci = "github" -# Target platforms to build apps for (Rust target-triple syntax) -targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"] -# The installers to generate for each app -installers = ["shell", "msi"] -# Which actions to run on pull requests -pr-run-mode = "plan" -# Skip checking whether the specified configuration files are up to date -allow-dirty = ["ci"] -# Path that installers should place binaries in -install-path = "CARGO_HOME" -# Whether to install an updater program -install-updater = false # generated by 'cargo dist init' [profile.dist] inherits = "release" - -[workspace.metadata.dist.dependencies.apt] -libssl-dev = { version = '*', targets = ["aarch64-unknown-linux-gnu"] } -gcc-aarch64-linux-gnu = { version = '*', targets = [ - "aarch64-unknown-linux-gnu", -] } diff --git a/dist-workspace.toml b/dist-workspace.toml new file mode 100644 index 00000000..5476de5f --- /dev/null +++ b/dist-workspace.toml @@ -0,0 +1,27 @@ +[workspace] +members = ["cargo:."] + +# Config for 'cargo dist' +[dist] +# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) +cargo-dist-version = "0.23.0" +# CI backends to support +ci = "github" +# Target platforms to build apps for (Rust target-triple syntax) +targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"] +# The installers to generate for each app +installers = ["shell", "msi"] +# Which actions to run on pull requests +pr-run-mode = "plan" +# Skip checking whether the specified configuration files are up to date +allow-dirty = ["ci"] +# Path that installers should place binaries in +install-path = "CARGO_HOME" +# Whether to install an updater program +install-updater = false + +[dist.dependencies.apt] +libssl-dev = { version = '*', targets = ["aarch64-unknown-linux-gnu"] } +gcc-aarch64-linux-gnu = { version = '*', targets = [ + "aarch64-unknown-linux-gnu", +] } diff --git a/server/Cargo.toml b/server/Cargo.toml index 211d6649..ea0e6a51 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -30,10 +30,10 @@ actix-middleware-etag = "0.4.2" actix-service = "2.0.2" actix-web = { version = "4.9.0", features = ["rustls-0_23", "compress-zstd"] } ahash = "0.8.11" -anyhow = "1.0.89" +anyhow = "1.0.91" async-trait = "0.1.83" aws-config = { version = "1.5.7", features = ["behavior-version-latest"] } -aws-sdk-s3 = { version = "1.53.0", features = ["behavior-version-latest"] } +aws-sdk-s3 = { version = "1.57.0", features = ["behavior-version-latest"] } base64 = "0.22.1" chrono = { version = "0.4.38", features = ["serde"] } cidr = "0.3.0" @@ -59,7 +59,7 @@ prometheus = { version = "0.13.4", features = ["process"] } prometheus-reqwest-remote-write = { version = "0.2.1" } prometheus-static-metric = "0.5.1" rand = "0.8.5" -redis = { version = "0.27.0", features = [ +redis = { version = "0.27.5", features = [ "tokio-comp", "tokio-rustls-comp", "cluster", @@ -69,7 +69,7 @@ reqwest = { version = "0.12.8", default-features = false, features = [ "rustls-tls", "native-tls", ] } -rustls = { version = "0.23.13", default-features = false, features = [ +rustls = { version = "0.23.15", default-features = false, features = [ "logging", "ring", "std", @@ -78,7 +78,7 @@ rustls-pemfile = "2.2.0" rustls-pki-types = "1.9.0" semver = "1.0.23" serde = { version = "1.0.210", features = ["derive"] } -serde_json = "1.0.128" +serde_json = "1.0.132" serde_qs = { version = "0.13.0", features = ["actix4", "tracing"] } shadow-rs = { version = "0.35.0" } tokio = { version = "1.40.0", features = [ @@ -90,10 +90,10 @@ tokio = { version = "1.40.0", features = [ tracing = { version = "0.1.40", features = ["log"] } tracing-subscriber = { version = "0.3.18", features = ["json", "env-filter"] } ulid = "1.1.2" -unleash-types = { version = "0.13", features = ["openapi", "hashes"] } -unleash-yggdrasil = { version = "0.13.2" } -utoipa = { version = "4.2.3", features = ["actix_extras", "chrono"] } -utoipa-swagger-ui = { version = "7.1.0", features = ["actix-web"] } +unleash-types = { version = "0.14", features = ["openapi", "hashes"] } +unleash-yggdrasil = { version = "0.13.3" } +utoipa = { version = "5", features = ["actix_extras", "chrono"] } +utoipa-swagger-ui = { version = "8", features = ["actix-web"] } [dev-dependencies] actix-http = "3.9.0" actix-http-test = "3.2.0" @@ -103,7 +103,7 @@ maplit = "1.0.2" rand = "0.8.5" test-case = "3.3.1" testcontainers = "0.23.1" -testcontainers-modules = { version = "0.11.2", features = [ +testcontainers-modules = { version = "0.11.3", features = [ "redis", "localstack", ] } diff --git a/server/src/metrics/client_metrics.rs b/server/src/metrics/client_metrics.rs index c5c71613..4b9de354 100644 --- a/server/src/metrics/client_metrics.rs +++ b/server/src/metrics/client_metrics.rs @@ -14,6 +14,7 @@ use tracing::{debug, instrument}; use unleash_types::client_metrics::{ ClientApplication, ClientMetrics, ClientMetricsEnv, ConnectVia, }; +use utoipa::ToSchema; pub const UPSTREAM_MAX_BODY_SIZE: usize = 100 * 1024; pub const BATCH_BODY_SIZE: usize = 95 * 1024; @@ -59,7 +60,7 @@ impl From for MetricsKey { } } -#[derive(Debug, Clone, Eq, Deserialize, Serialize)] +#[derive(Debug, Clone, Eq, Deserialize, Serialize, ToSchema)] pub struct MetricsKey { pub app_name: String, pub feature_name: String, diff --git a/server/src/types.rs b/server/src/types.rs index fda4521b..29b4b8f2 100644 --- a/server/src/types.rs +++ b/server/src/types.rs @@ -495,7 +495,7 @@ pub struct FeatureFilters { pub name_prefix: Option, } -#[derive(Serialize, Deserialize, Debug, Clone, ToSchema)] +#[derive(Serialize, Deserialize, Debug, Clone)] #[serde(rename_all = "camelCase")] pub struct TokenInfo { pub token_refreshes: Vec,