diff --git a/Cargo.lock b/Cargo.lock index 8fe063d1..41ce6999 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1091,6 +1091,7 @@ checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" dependencies = [ "autocfg", "hashbrown", + "serde", ] [[package]] @@ -2305,10 +2306,13 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ff1a05ee1d0f25bc011b86a232855cca981e1a1bf0839f9e9e1a1299f0bdbcc" dependencies = [ + "base64 0.21.0", "chrono", "derive_builder", "serde", "serde_json", + "utoipa", + "xxhash-rust", ] [[package]] @@ -2348,6 +2352,30 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "utoipa" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3920fa753064b1be7842bea26175ffa0dfc4a8f30bcb52b8ff03fddf8889914c" +dependencies = [ + "indexmap", + "serde", + "serde_json", + "utoipa-gen", +] + +[[package]] +name = "utoipa-gen" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "720298fac6efca20df9e457e67a1eab41a20d1c3101380b5c4dca1ca60ae0062" +dependencies = [ + "proc-macro-error", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "valuable" version = "0.1.0" diff --git a/server/Cargo.toml b/server/Cargo.toml index b1041087..e124ad5b 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -31,7 +31,7 @@ tokio = { version = "1.24.2", features = ["macros", "rt-multi-thread", "tracing" tracing = { version = "0.1.37", features = ["log"] } tracing-opentelemetry = "0.18.0" tracing-subscriber = { version = "0.3.16", features = ["json", "env-filter"] } -unleash-types = "0.7.0" +unleash-types = { version = "0.7.0", features = ["openapi", "hashes"] } unleash-yggdrasil = "0.4.2" [dev-dependencies]