Skip to content

Commit abaf55e

Browse files
committed
switch to Rust 2021 edition
1 parent 55d095e commit abaf55e

File tree

9 files changed

+13
-10
lines changed

9 files changed

+13
-10
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
toolchain: [1.49, stable, beta]
13+
toolchain: [1.56, stable, beta]
1414
nightly: [false]
1515
include:
1616
- toolchain: nightly

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ members = [".", "./derive"]
77
name = "openapi_type"
88
version = "0.2.4"
99
authors = ["Dominic Meiser <[email protected]>"]
10-
edition = "2018"
10+
edition = "2021"
11+
rust-version = "1.56"
1112
description = "OpenAPI type information for Rust structs and enums"
1213
keywords = ["openapi", "type"]
1314
license = "Apache-2.0"

README.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<a href="https://msrd0.github.io/openapi_type/doc/openapi_type/index.html">
1010
<img alt="rustdoc" src="https://img.shields.io/badge/docs-main-blue.svg"/>
1111
</a>
12-
<a href="https://blog.rust-lang.org/2020/12/31/Rust-1.49.0.html">
13-
<img alt="Rust 1.49+" src="https://img.shields.io/badge/rustc-1.49+-orange.svg"/>
12+
<a href="https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html">
13+
<img alt="Rust 1.56+" src="https://img.shields.io/badge/rustc-1.56+-orange.svg"/>
1414
</a>
1515
<a href="https://www.apache.org/licenses/LICENSE-2.0">
1616
<img alt="License Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-blue.svg"/>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<a href="https://msrd0.github.io/openapi_type/doc/openapi_type/index.html">
1010
<img alt="rustdoc" src="https://img.shields.io/badge/docs-main-blue.svg"/>
1111
</a>
12-
<a href="https://blog.rust-lang.org/2020/12/31/Rust-1.49.0.html">
13-
<img alt="Rust 1.49+" src="https://img.shields.io/badge/rustc-1.49+-orange.svg"/>
12+
<a href="https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html">
13+
<img alt="Rust 1.56+" src="https://img.shields.io/badge/rustc-1.56+-orange.svg"/>
1414
</a>
1515
<a href="https://www.apache.org/licenses/LICENSE-2.0">
1616
<img alt="License Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-blue.svg"/>

crates-io.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# openapi_type [![Rust 1.49+](https://img.shields.io/badge/rustc-1.49+-orange.svg)](https://blog.rust-lang.org/2020/12/31/Rust-1.49.0.html) [![License Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![GitHub](https://img.shields.io/badge/Code-On%20Github-blue?logo=GitHub)](https://github.com/msrd0/openapi_type)
1+
# openapi_type [![Rust 1.56+](https://img.shields.io/badge/rustc-1.56+-orange.svg)](https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html) [![License Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![GitHub](https://img.shields.io/badge/Code-On%20Github-blue?logo=GitHub)](https://github.com/msrd0/openapi_type)
22

33
{{ readme }}
44

crates-io.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# openapi_type [![Rust 1.49+](https://img.shields.io/badge/rustc-1.49+-orange.svg)](https://blog.rust-lang.org/2020/12/31/Rust-1.49.0.html) [![License Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![GitHub](https://img.shields.io/badge/Code-On%20Github-blue?logo=GitHub)](https://github.com/msrd0/openapi_type)
1+
# openapi_type [![Rust 1.56+](https://img.shields.io/badge/rustc-1.56+-orange.svg)](https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html) [![License Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![GitHub](https://img.shields.io/badge/Code-On%20Github-blue?logo=GitHub)](https://github.com/msrd0/openapi_type)
22

33
This crate gives static type information for primitives and commonly used types from the standard library and a few other commonly used libraries like `chrono`, `time` and `uuid`. Also, it provides a derive macro for structs and enums to gain access to their static type information at runtime.
44

derive/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ workspace = ".."
55
name = "openapi_type_derive"
66
version = "0.2.5"
77
authors = ["Dominic Meiser <[email protected]>"]
8-
edition = "2018"
8+
edition = "2021"
9+
rust-version = "1.56"
910
description = "Implementation detail of the openapi_type crate"
1011
license = "Apache-2.0"
1112
repository = "https://github.com/msrd0/openapi_type"

derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![warn(missing_debug_implementations, rust_2018_idioms)]
2-
#![deny(broken_intra_doc_links)]
2+
#![deny(rustdoc::broken_intra_doc_links)]
33
#![forbid(unsafe_code)]
44
//! This crate defines the macros for `#[derive(OpenapiType)]`.
55

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![warn(missing_debug_implementations, rust_2018_idioms)]
2+
#![deny(rustdoc::broken_intra_doc_links)]
23
#![forbid(unsafe_code)]
34
#![cfg_attr(feature = "cargo-clippy", allow(clippy::tabs_in_doc_comments))]
45
#![doc = r##"

0 commit comments

Comments
 (0)