From 75bacf6fe210ead78b56407e90b2aec157b60be3 Mon Sep 17 00:00:00 2001 From: Kurt Wolf Date: Sun, 26 Jan 2025 15:17:24 -0500 Subject: [PATCH] update --- Cargo.toml | 1 + core/Cargo.toml | 12 +++--------- oasgen/examples/actix.rs | 4 ++-- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1f3e219..5218864 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,3 +8,4 @@ oasgen = { path = "oasgen", version = "0.21" } oasgen-core = { path = "core", version = "0.21" } oasgen-macro = { path = "macro", version = "0.21" } swagger-ui2 = { version = "0.6", path = "swagger-ui" } + diff --git a/core/Cargo.toml b/core/Cargo.toml index 348f87d..89bd2ba 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -13,10 +13,7 @@ documentation = "https://docs.rs/oasgen" [dependencies] inventory = "0.3.13" -indexmap = "2" openapiv3-extended = { version = "6" } -structmeta = { version = "0.3.0" } -syn = "2" serde_json = "1.0.100" http = "1.0.0" actix-web = { version = "4.3.1", optional = true } @@ -27,8 +24,8 @@ time = { optional = true, version = "0.3.23" } phonenumber = { optional = true, version = "0.3.2" } sqlx = { version = "0.8.2", optional = true } sqlx-core = { version = "0.8.2", optional = true } -tower-cookies = { version = "0.10.0", optional = true } -kurtbuilds_sid = { version = "0.5.0", optional = true } +tower-cookies = { version = "0.11.0", optional = true } +kurtbuilds_sid = { version = "0.6", optional = true } serde_qs = { version = "0.13.0", optional = true } bigdecimal = { version = "0.4.2", optional = true } @@ -39,7 +36,4 @@ cookies = ["tower-cookies"] qs = ["serde_qs"] sid = ["kurtbuilds_sid"] axum = ["dep:axum", "serde_qs?/axum"] -bigdecimal = ["dep:bigdecimal"] - -[dev-dependencies] -assert_matches = "1.5.0" +bigdecimal = ["dep:bigdecimal"] \ No newline at end of file diff --git a/oasgen/examples/actix.rs b/oasgen/examples/actix.rs index 6e28dab..fa8dc04 100644 --- a/oasgen/examples/actix.rs +++ b/oasgen/examples/actix.rs @@ -1,5 +1,3 @@ -#![allow(unused)] - // We have to wrap the example in `mod` beacuse examples fail compilation without a `main`, and // forwarding to an inner mod fixes the issue. #[cfg(feature = "actix")] @@ -68,5 +66,7 @@ mod inner { } fn main() { + #[cfg(feature = "actix")] + #[cfg(feature = "swagger-ui")] inner::main().unwrap() }