diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2920a5ddc..ee6801e77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: matrix: toolchain: - stable - - "1.70" + - "1.70" # max version of msrv os: - ubuntu-latest - macos-latest @@ -68,6 +68,21 @@ jobs: - name: test doc no-default-features run: cargo test -p prost-build -p prost-derive -p prost-types --doc --no-default-features + msrv: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: install protoc + uses: taiki-e/install-action@v2 + with: + tool: protoc@${{ env.PROTOC_VERSION }} + - uses: taiki-e/install-action@cargo-hack + - uses: Swatinem/rust-cache@v2 + - name: check with no-default-features + run: cargo hack --rust-version --no-private --no-dev-deps check --workspace --no-default-features + - name: check with all-features + run: cargo hack --rust-version --no-private --no-dev-deps check --workspace --all-features + minimal-versions: runs-on: ubuntu-latest steps: diff --git a/Cargo.toml b/Cargo.toml index 28c942b32..d3dedbdcf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ description = "A Protocol Buffers implementation for the Rust Language." keywords = ["protobuf", "serialization"] categories = ["encoding"] edition = "2021" -rust-version = "1.70" +rust-version = "1.60" [workspace] members = [ diff --git a/README.md b/README.md index 6307ed632..7ada7f2de 100644 --- a/README.md +++ b/README.md @@ -46,8 +46,10 @@ See the [snazzy repository][snazzy] for a simple start-to-finish example. ### MSRV -`prost` follows the `tokio-rs` project's MSRV model and supports 1.70. For more -information on the tokio msrv policy you can check it out [here][tokio msrv] +`prost` follows the `tokio-rs` project's MSRV model and supports 1.70. Some +crates' MSRV might be lower than this version, see each `rust-version` field of +the manifest file. For more information on the tokio msrv policy you can check +it out [here][tokio msrv] [tokio msrv]: https://github.com/tokio-rs/tokio/#supported-rust-versions diff --git a/prost-derive/Cargo.toml b/prost-derive/Cargo.toml index daaaf113a..45d5cb464 100644 --- a/prost-derive/Cargo.toml +++ b/prost-derive/Cargo.toml @@ -12,7 +12,7 @@ documentation = "https://docs.rs/prost-derive" readme = "README.md" description = "A Protocol Buffers implementation for the Rust Language." edition = "2021" -rust-version = "1.70" +rust-version = "1.60" [lib] proc_macro = true diff --git a/prost-types/Cargo.toml b/prost-types/Cargo.toml index 34b8ddf03..805a2feab 100644 --- a/prost-types/Cargo.toml +++ b/prost-types/Cargo.toml @@ -12,7 +12,7 @@ documentation = "https://docs.rs/prost-types" readme = "README.md" description = "A Protocol Buffers implementation for the Rust Language." edition = "2021" -rust-version = "1.70" +rust-version = "1.60" [lib] doctest = false