Skip to content

Commit

Permalink
Bump MSRV to 1.70 and trybuild's Rust version to 1.78
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 committed May 13, 2024
1 parent 0907217 commit bb7a682
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 20 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
matrix:
rust:
- name: MSRV
toolchain: "1.60"
toolchain: "1.70"
nightly: false
- name: Stable
toolchain: stable
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.68"
toolchain: "1.78"
id: rust-toolchain
- uses: actions/cache@v4
with:
Expand All @@ -74,7 +74,7 @@ jobs:
matrix:
rust:
- name: MSRV
toolchain: "1.60"
toolchain: "1.70"
nightly: false
- name: Nightly
toolchain: nightly
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
--workspace \
--all-features \
--exclude-files 'derive/*' \
--exclude-files 'serde/*' \
--exclude-files 'serde/*' \
--exclude-files 'target/*' \
--ignore-panics --ignore-tests \
--out html --out json \
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name = "openapi_type"
version = "0.4.3"
authors = ["Dominic Meiser <[email protected]>"]
edition = "2021"
rust-version = "1.60"
rust-version = "1.70"
description = "OpenAPI type information for Rust structs and enums"
keywords = ["openapi", "type"]
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions README.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<a href="https://msrd0.github.io/openapi_type/doc/openapi_type/index.html">
<img alt="rustdoc" src="https://img.shields.io/badge/docs-main-blue.svg"/>
</a>
<a href="https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html">
<img alt="Rust 1.60+" src="https://img.shields.io/badge/rustc-1.60+-orange.svg"/>
<a href="https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html">
<img alt="Rust 1.70+" src="https://img.shields.io/badge/rustc-1.70+-orange.svg"/>
</a>
<a href="https://www.apache.org/licenses/LICENSE-2.0">
<img alt="License Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-blue.svg"/>
Expand Down
2 changes: 1 addition & 1 deletion crates-io.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# openapi_type [![Rust 1.60+](https://img.shields.io/badge/rustc-1.60+-orange.svg)](https://blog.rust-lang.org/2022/04/07/Rust-1.60.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)
# openapi_type [![Rust 1.70+](https://img.shields.io/badge/rustc-1.70+-orange.svg)](https://blog.rust-lang.org/2023/06/01/Rust-1.70.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)

{{ readme }}

Expand Down
16 changes: 8 additions & 8 deletions tests/fail/not_openapitype.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ error[E0277]: the trait bound `Bar: OpenapiType` is not satisfied
| ^^^ the trait `OpenapiType` is not implemented for `Bar`
|
= help: the following other types implement trait `OpenapiType`:
&'a T
()
BTreeMap<K, V>
BTreeSet<T>
CStr
CString
Foo
HashMap<K, V, S>
bool
char
isize
i8
i16
i32
i64
i128
and $N others
5 changes: 1 addition & 4 deletions tests/fail/not_openapitype_generics.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ error[E0599]: the function or associated item `schema` exists for struct `Foo<Ba
--> tests/fail/not_openapitype_generics.rs:11:14
|
4 | struct Foo<T> {
| -------------
| |
| function or associated item `schema` not found for this struct
| doesn't satisfy `Foo<Bar>: OpenapiType`
| ------------- function or associated item `schema` not found for this struct because it doesn't satisfy `Foo<Bar>: OpenapiType`
...
8 | struct Bar;
| ---------- doesn't satisfy `Bar: OpenapiType`
Expand Down

0 comments on commit bb7a682

Please sign in to comment.