Skip to content

Commit

Permalink
Update utoipa versions
Browse files Browse the repository at this point in the history
Update utoipa versions for `utoipa-swagger-ui`, `utoia-redoc`, and
`utoipa-rapidoc`.
  • Loading branch information
juhaku committed Oct 7, 2023
1 parent 21dd69d commit 50db1b0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions utoipa-rapidoc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "utoipa-rapidoc"
description = "RapiDoc for utoipa"
edition = "2021"
version = "0.1.0"
version = "1.0.0"
license = "MIT OR Apache-2.0"
readme = "README.md"
keywords = ["rapidoc", "openapi", "documentation"]
Expand All @@ -17,7 +17,7 @@ rustdoc-args = ["--cfg", "doc_cfg"]
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
utoipa = { version = "3", path = "../utoipa" }
utoipa = { version = "4", path = "../utoipa" }
actix-web = { version = "4", optional = true, default-features = false }
rocket = { version = "0.5.0-rc.3", features = ["json"], optional = true }
axum = { version = "0.6", optional = true }
4 changes: 2 additions & 2 deletions utoipa-rapidoc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ You may find fullsize examples from utoipa's Github [repository][examples].
Use RapiDoc only without any boiler plate implementation.
```toml
[dependencies]
utoipa-rapidoc = "0.1"
utoipa-rapidoc = "1"
```

Enable actix-web integration with RapiDoc.
```toml
[dependencies]
utoipa-rapidoc = { version = "0.1", features = ["actix-web"] }
utoipa-rapidoc = { version = "1", features = ["actix-web"] }
```

# Using standalone
Expand Down
4 changes: 2 additions & 2 deletions utoipa-redoc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "utoipa-redoc"
description = "Redoc for utoipa"
version = "0.1.0"
version = "1.0.0"
edition = "2021"
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand All @@ -17,7 +17,7 @@ rustdoc-args = ["--cfg", "doc_cfg"]
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
utoipa = { version = "3", path = "../utoipa" }
utoipa = { version = "4", path = "../utoipa" }
actix-web = { version = "4", optional = true, default-features = false }
rocket = { version = "0.5.0-rc.3", features = ["json"], optional = true }
axum = { version = "0.6", optional = true }
4 changes: 2 additions & 2 deletions utoipa-redoc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ You may find fullsize examples from utoipa's Github [repository][examples].
Use Redoc only without any boiler plate implementation.
```toml
[dependencies]
utoipa-redoc = "0.1"
utoipa-redoc = "1"
```

Enable actix-web integration with Redoc.
```toml
[dependencies]
utoipa-redoc = { version = "0.1", features = ["actix-web"] }
utoipa-redoc = { version = "1", features = ["actix-web"] }
```

# Using standalone
Expand Down
4 changes: 2 additions & 2 deletions utoipa-swagger-ui/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "utoipa-swagger-ui"
description = "Swagger UI for utoipa"
version = "3.1.6"
version = "4.0.0"
edition = "2021"
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand All @@ -20,7 +20,7 @@ mime_guess = { version = "2.0" }
actix-web = { version = "4", optional = true, default-features = false }
rocket = { version = "0.5.0-rc.3", features = ["json"], optional = true }
axum = { version = "0.6", optional = true }
utoipa = { version = "3", path = "../utoipa" }
utoipa = { version = "4", path = "../utoipa" }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }

Expand Down
4 changes: 2 additions & 2 deletions utoipa-swagger-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ more details at [serve](https://docs.rs/utoipa-swagger-ui/latest/utoipa_swagger_
Use only the raw types without any boilerplate implementation.
```toml
[dependencies]
utoipa-swagger-ui = "3"
utoipa-swagger-ui = "4"
```

Enable actix-web framework with Swagger UI you could define the dependency as follows.
```toml
[dependencies]
utoipa-swagger-ui = { version = "3", features = ["actix-web"] }
utoipa-swagger-ui = { version = "4", features = ["actix-web"] }
```

**Note!** Also remember that you already have defined `utoipa` dependency in your `Cargo.toml`
Expand Down

0 comments on commit 50db1b0

Please sign in to comment.