Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtbuilds committed Jan 26, 2025
1 parent 55f18c9 commit 75bacf6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

12 changes: 3 additions & 9 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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 }

Expand All @@ -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"]
4 changes: 2 additions & 2 deletions oasgen/examples/actix.rs
Original file line number Diff line number Diff line change
@@ -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")]
Expand Down Expand Up @@ -68,5 +66,7 @@ mod inner {
}

fn main() {
#[cfg(feature = "actix")]
#[cfg(feature = "swagger-ui")]
inner::main().unwrap()
}

0 comments on commit 75bacf6

Please sign in to comment.