diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d3c34d3ad..9156b0605 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,7 +22,7 @@ jobs: matrix: rust: - name: MSRV - toolchain: "1.60" + toolchain: "1.70" nightly: false - name: Stable toolchain: stable @@ -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: @@ -74,7 +74,7 @@ jobs: matrix: rust: - name: MSRV - toolchain: "1.60" + toolchain: "1.70" nightly: false - name: Nightly toolchain: nightly @@ -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 \ diff --git a/Cargo.toml b/Cargo.toml index 3d07a19c5..f71655529 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ name = "openapi_type" version = "0.4.3" authors = ["Dominic Meiser "] 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" diff --git a/README.j2 b/README.j2 index 6336eff41..ae47cd534 100644 --- a/README.j2 +++ b/README.j2 @@ -9,8 +9,8 @@ rustdoc - - Rust 1.60+ + + Rust 1.70+ License Apache-2.0 diff --git a/crates-io.j2 b/crates-io.j2 index dea61abc8..9e0fd7871 100644 --- a/crates-io.j2 +++ b/crates-io.j2 @@ -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 }} diff --git a/tests/fail/not_openapitype.stderr b/tests/fail/not_openapitype.stderr index 5e5592fa1..a9f0bed9a 100644 --- a/tests/fail/not_openapitype.stderr +++ b/tests/fail/not_openapitype.stderr @@ -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 - BTreeSet - CStr - CString - Foo - HashMap + bool + char + isize + i8 + i16 + i32 + i64 + i128 and $N others diff --git a/tests/fail/not_openapitype_generics.stderr b/tests/fail/not_openapitype_generics.stderr index 079deae6e..4439553ca 100644 --- a/tests/fail/not_openapitype_generics.stderr +++ b/tests/fail/not_openapitype_generics.stderr @@ -2,10 +2,7 @@ error[E0599]: the function or associated item `schema` exists for struct `Foo tests/fail/not_openapitype_generics.rs:11:14 | 4 | struct Foo { - | ------------- - | | - | function or associated item `schema` not found for this struct - | doesn't satisfy `Foo: OpenapiType` + | ------------- function or associated item `schema` not found for this struct because it doesn't satisfy `Foo: OpenapiType` ... 8 | struct Bar; | ---------- doesn't satisfy `Bar: OpenapiType`