Skip to content

Commit

Permalink
Updated all crates to Rust 2021 edition
Browse files Browse the repository at this point in the history
  • Loading branch information
ralpha committed Dec 3, 2023
1 parent f9c4bde commit 42ea670
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ members = [
"examples/openapi_attributes",
"examples/raw_identifiers",
]
resolver = "2"
2 changes: 1 addition & 1 deletion examples/custom_schema/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "custom_schema"
version = "0.1.0"
authors = ["Ralph Bisschops <ralph.bisschops.dev@gmail.com>"]
edition = "2018"
edition = "2021"

[dependencies]
rocket = { version = "=0.5.0", default-features = false, features = ["json"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/dyn_templates/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
authors = [
"Ralph Bisschops <ralph.bisschops.dev@gmail.com>",
]
edition = "2018"
edition = "2021"

[dependencies]
rocket = { version = "=0.5.0", default-features = false, features = ["json"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/json-web-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "json_web_api"
version = "0.1.0"
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
edition = "2018"
edition = "2021"

[dependencies]
rocket = { version = "=0.5.0", default-features = false, features = ["json"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/raw_identifiers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "raw_identifiers"
version = "0.1.0"
authors = ["Alex Payne <apayne@esri.com>"]
edition = "2018"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion examples/secure_request_guard/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "secure_request_guard"
version = "0.1.0"
authors = ["Kristoffer Ödmark <kristoffer.odmark90@gmail.com>", "Ralph Bisschops <ralph.bisschops.dev@gmail.com>"]
edition = "2018"
edition = "2021"

[dependencies]
rocket = { version = "=0.5.0", default-features = false, features = ["json", "secrets"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/special-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "special-types"
version = "0.1.0"
authors = ["Ralph Bisschops <ralph.bisschops.dev@gmail.com>"]
edition = "2018"
edition = "2021"

[dependencies]
rocket = { version = "=0.5.0", default-features = false, features = ["json"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/streams/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "streams"
version = "0.1.0"
authors = ["Ralph Bisschops <ralph.bisschops.dev@gmail.com>"]
edition = "2018"
edition = "2021"

[dependencies]
rocket = { version = "=0.5.0", default-features = false, features = ["json"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/uuid/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = [
"Rafael Epplee <raffomania@gmail.com>",
"Ralph Bisschops <ralph.bisschops.dev@gmail.com>",
]
edition = "2018"
edition = "2021"

[dependencies]
rocket = { version = "=0.5.0", default-features = false, features = ["json", "uuid"] }
Expand Down
1 change: 1 addition & 0 deletions okapi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ This project follows the [Semantic Versioning standard](https://semver.org/).

### Changed
- `merge_paths` does correctly handle the merging of paths with double `/` in the combined path.
- Updated to Rust 2021 edition.

### Deprecated

Expand Down
2 changes: 1 addition & 1 deletion okapi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Structs for OpenAPI (AKA Swagger) documents"
repository = "https://github.com/GREsau/okapi"
version = "0.7.0"
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
edition = "2018"
edition = "2021"
license = "MIT"
readme = "../README.md"
keywords = ["rust", "openapi", "swagger"]
Expand Down
2 changes: 1 addition & 1 deletion rocket-okapi-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Macros supporting rocket_okapi"
repository = "https://github.com/GREsau/okapi"
version = "0.8.0"
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
edition = "2018"
edition = "2021"
license = "MIT"
readme = "../README.md"
keywords = ["rust", "openapi", "swagger", "rocket"]
Expand Down
1 change: 1 addition & 0 deletions rocket-okapi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ This project follows the [Semantic Versioning standard](https://semver.org/).
- `SlotsConfig` added: `operations_top`.
- Note: The default `RenderStyle` changed from `View` to `Read`.
- Note: `schema_hide_read_only` and `schema_hide_write_only` changed behavior.
- Updated all crates to Rust 2021 edition.

### Deprecated

Expand Down
2 changes: 1 addition & 1 deletion rocket-okapi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "OpenAPI (AKA Swagger) document generation for Rocket applications
repository = "https://github.com/GREsau/okapi"
version = "0.8.0"
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
edition = "2018"
edition = "2021"
license = "MIT"
readme = "../README.md"
keywords = ["rust", "openapi", "swagger", "rocket"]
Expand Down

0 comments on commit 42ea670

Please sign in to comment.