diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1e44302..c6b9165 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -7,6 +7,19 @@ on: pull_request: jobs: + # this checks the msrv + msrv: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: baptiste0928/cargo-install@v2 + with: + crate: cargo-msrv + - name: Verify minimum rust version of influxdb crate + run: cargo-msrv --path influxdb verify + - name: Verify minimum rust version of influxdb_derive crate + run: cargo-msrv --path influxdb_derive verify + # this checks that the readme created from rustdoc is up to date readmecheck: name: README Format Check @@ -53,9 +66,6 @@ jobs: fail-fast: false matrix: rust: - - name: MSRV - toolchain: "1.65" - nightly: false - name: Stable toolchain: stable nightly: false @@ -78,7 +88,7 @@ jobs: ~/.cargo/git ~/.cargo/registry target - key: "${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}" + key: "${{matrix.rust.toolchain}} on ${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}" - run: cargo test --lib - run: cargo test --doc diff --git a/influxdb/Cargo.toml b/influxdb/Cargo.toml index fec3c09..99e9ad7 100644 --- a/influxdb/Cargo.toml +++ b/influxdb/Cargo.toml @@ -11,6 +11,7 @@ license = "MIT" readme = "README.md" include = ["src/**/*", "tests/**/*", "Cargo.toml", "LICENSE"] repository = "https://github.com/influxdb-rs/influxdb-rust" +rust-version = "1.65" [dependencies] chrono = { version = "0.4.23", features = ["serde"], default-features = false } diff --git a/influxdb_derive/Cargo.toml b/influxdb_derive/Cargo.toml index f219d29..754948b 100644 --- a/influxdb_derive/Cargo.toml +++ b/influxdb_derive/Cargo.toml @@ -11,6 +11,7 @@ license = "MIT" readme = "README.md" include = ["src/**/*", "tests/**/*", "Cargo.toml", "LICENSE"] repository = "https://github.com/influxdb-rs/influxdb-rust" +rust-version = "1.65" [lib] proc-macro = true