Skip to content

Commit

Permalink
Reduce library size by reducing dependency features (#16)
Browse files Browse the repository at this point in the history
* Move tokio to dev dependencies

It is only directly needed in the examples.

Having tokio with features = [ "full" ] as a dependency means that applications
can't select less features for their usage of tokio.

* Enable only selecte features for axum

This allows users of the library to disable-default features of axum
  • Loading branch information
bachp authored Feb 15, 2024
1 parent d34b07d commit c00d47b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oasgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ required-features = ["axum"]
[dependencies]
inventory = "0.3.13"
actix-web = { version = "4.3.1", optional = true }
axum = { version = "0.7.4", optional = true, features = ["json"] }
axum = { version = "0.7.4", optional = true, default-features = false, features = ["json"] }
futures = "0.3.28"
http = "1.0.0"
indexmap = "2"
Expand All @@ -50,7 +50,6 @@ oasgen-macro = { path = "../macro", version = "0.20.1"}
serde = { version = "1.0.171", features = ["derive"] }
serde_json = "1.0.100"
serde_yaml = "0.9.22"
tokio = { version = "1.29.1", features = ["full"] }
swagger-ui2 = { version = "0.6", optional = true, path = "../swagger-ui" }
tower-cookies = { version = "0.10.0", optional = true }
regex-lite = "0.1.5"
Expand All @@ -77,3 +76,4 @@ bigdecimal = ["oasgen-core/bigdecimal"]
trybuild = "1.0.81"
actix-web = { version = "4.3.1" }
pretty_assertions = "1.4.0"
tokio = { version = "1.29.1", features = ["full"] }

0 comments on commit c00d47b

Please sign in to comment.