diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c1f8e6d18c..c1b799fec7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,7 +9,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@1.65.0 + + - uses: dtolnay/rust-toolchain@nightly + - run: cargo -Z minimal-versions update + - run: cargo update -p lazy_static + + - uses: dtolnay/rust-toolchain@1.60.0 id: rust-toolchain - uses: actions/cache@v3 @@ -17,9 +22,9 @@ jobs: path: | ~/.cargo target - key: ${{ runner.os }}-cargo-${{steps.rust-toolchain.outputs.cachekey}} + key: ${{runner.os}}-cargo-${{steps.rust-toolchain.outputs.cachekey}} - - run: cargo test -- --skip trybuild_ui + - run: cargo test --locked -- --skip trybuild_ui env: RUST_BACKTRACE: 1 RUST_LOG: info @@ -28,7 +33,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@1.65.0 + + - uses: dtolnay/rust-toolchain@nightly + - run: cargo -Z minimal-versions update + - run: cargo update -p lazy_static + + - uses: dtolnay/rust-toolchain@1.60.0 id: rust-toolchain - uses: actions/cache@v3 @@ -38,7 +48,7 @@ jobs: target key: ${{ runner.os }}-cargo-${{steps.rust-toolchain.outputs.cachekey}} - - run: cargo test --no-default-features --lib --tests -- --skip trybuild_ui + - run: cargo test --locked --no-default-features --lib --tests -- --skip trybuild_ui env: RUST_BACKTRACE: 1 RUST_LOG: info @@ -50,7 +60,7 @@ jobs: - uses: dtolnay/rust-toolchain@master id: rust-toolchain with: - toolchain: "1.69" + toolchain: "1.72" - uses: actions/cache@v3 with: diff --git a/Cargo.toml b/Cargo.toml index 1270346a87..3358ae0264 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ name = "gotham_formdata" version = "0.0.7" authors = ["Dominic Meiser "] edition = "2021" -rust-version = "1.65.0" +rust-version = "1.60.0" description = "Form data parsing for the gotham web framework" keywords = ["gotham", "html", "form", "urlencoded", "multipart"] categories = ["web-programming", "web-programming::http-server"] @@ -21,7 +21,7 @@ include = ["src/**", "Cargo.toml", "LICENSE", "README.md"] bytes = "1.0" form_urlencoded = "1.0" futures-util = "0.3.15" -gotham = { version = "0.7", default-features = false } +gotham = { version = "0.7.2", default-features = false } gotham_formdata_derive = { version = "0.0.7", path = "derive/" } log = "0.4" mime = "0.3.16" diff --git a/README.md b/README.md index d51338fa0d..30f7248bc9 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,8 @@ docs for main - - Rust 1.65+ + + Rust 1.60+ License Apache-2.0 diff --git a/README.tpl b/README.tpl index 5b53fff4ac..80e992a1b8 100644 --- a/README.tpl +++ b/README.tpl @@ -20,8 +20,8 @@ docs for main - - Rust 1.65+ + + Rust 1.60+ License Apache-2.0 diff --git a/tests/ui/form_data_unparsable.stderr b/tests/ui/form_data_unparsable.stderr index 149f634a68..d9957e6d60 100644 --- a/tests/ui/form_data_unparsable.stderr +++ b/tests/ui/form_data_unparsable.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `for<'de> MyType: serde::de::Deserialize<'de>` is | ^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `MyType` | = help: the following other types implement trait `serde::de::Deserialize<'de>`: - &'a Path - &'a [u8] - &'a str - () - (T0, T1) - (T0, T1, T2) - (T0, T1, T2, T3) - (T0, T1, T2, T3, T4) + bool + char + isize + i8 + i16 + i32 + i64 + i128 and $N others = note: required for `MyType` to implement `serde::de::DeserializeOwned` = note: required for `Value<'gotham_formdata_value, gotham_formdata::Error>` to implement `for<'gotham_formdata_value> Parse`