Skip to content

Commit

Permalink
Bump version to 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ralpha committed Nov 8, 2024
1 parent bea7b69 commit 7c0a49b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rocket-okapi-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rocket_okapi_codegen"
description = "Macros supporting rocket_okapi"
repository = "https://github.com/GREsau/okapi"
version = "0.8.0"
version = "0.9.0"
authors = ["Graham Esau <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down
12 changes: 12 additions & 0 deletions rocket-okapi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ This project follows the [Semantic Versioning standard](https://semver.org/).

### Security

## Version 0.9.0 (2024-xx-xx)

### Changed
- Updated `rocket` to `v0.5.1` (#149, #148)
- Updated `rocket_http` to `0.5.1`
- Updated `rocket_db_pools` to `0.2.0`
- Updated `rocket_dyn_templates` to `0.2.0`
- Updated `rocket_ws` to `0.1.1`

### Removed
- Removed `rocket_sync_db_pools::example::ExampleDb` implementation for `OpenApiFromRequest`.

## Version 0.8.0 (2024-01-14)

### Added
Expand Down
5 changes: 3 additions & 2 deletions rocket-okapi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rocket_okapi"
description = "OpenAPI (AKA Swagger) document generation for Rocket applications"
repository = "https://github.com/GREsau/okapi"
version = "0.8.0"
version = "0.9.0"
authors = ["Graham Esau <[email protected]>"]
edition = "2021"
license = "MIT"
Expand All @@ -14,7 +14,7 @@ categories = ["web-programming"]
rocket = { workspace = true }
schemars = { workspace = true }
okapi = { version = "0.7.0", path = "../okapi" }
rocket_okapi_codegen = { version = "=0.8.0", path = "../rocket-okapi-codegen" }
rocket_okapi_codegen = { version = "=0.9.0", path = "../rocket-okapi-codegen" }
serde = { workspace = true }
serde_json = { workspace = true }
log = { workspace = true }
Expand Down Expand Up @@ -54,3 +54,4 @@ mtls = ["rocket/mtls"]

[package.metadata.docs.rs]
all-features = true
features = ["rocket_dyn_templates/handlebars", "rocket_dyn_templates/tera"]
2 changes: 1 addition & 1 deletion rocket-okapi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//! rocket = { version = "0.5.1", default-features = false, features = ["json"] }
//! schemars = "0.8.16"
//! okapi = { version = "0.7.0" }
//! rocket_okapi = { version = "0.8.0", features = ["swagger"] }
//! rocket_okapi = { version = "0.9.0", features = ["swagger"] }
//! ```
//! To add documentation to a set of endpoints, a couple of steps are required. The request and
//! response types of the endpoint must implement `JsonSchema`. Secondly, the function must be
Expand Down
9 changes: 3 additions & 6 deletions rocket-okapi/src/request/from_request_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,9 @@ impl<'r> OpenApiFromRequest<'r> for rocket_dyn_templates::Metadata<'r> {

// https://docs.rs/rocket_sync_db_pools/latest/rocket_sync_db_pools/example/struct.ExampleDb.html#impl-FromRequest%3C'r%3E-for-ExampleDb

#[cfg(feature = "rocket_sync_db_pools")]
impl<'r> OpenApiFromRequest<'r> for rocket_sync_db_pools::example::ExampleDb {
fn from_request_input(_gen: &mut OpenApiGenerator, _name: String, _required: bool) -> Result {
Ok(RequestHeaderInput::None)
}
}
// `rocket_sync_db_pools::example::ExampleDb` is hidden behind very specific feature flags.
// So it can be assumed that this is never actually used apart from documentation.
// https://docs.rs/rocket_sync_db_pools/latest/src/rocket_sync_db_pools/lib.rs.html#392

// https://docs.rs/rocket_ws/latest/rocket_ws/struct.WebSocket.html#impl-FromRequest%3C'r%3E-for-WebSocket

Expand Down

0 comments on commit 7c0a49b

Please sign in to comment.