Skip to content

Commit 0b31690

Browse files
gruebelcijothomas
andauthored
Add back MSRV CI job and adjust MSRVs (#150)
Co-authored-by: Cijo Thomas <[email protected]>
1 parent 9bc7e72 commit 0b31690

File tree

13 files changed

+105
-28
lines changed

13 files changed

+105
-28
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,28 @@ jobs:
5050
args: --all -- --check
5151
- name: Lint
5252
run: ./scripts/lint.sh
53-
# TODO: re-add this test
54-
# msrv:
55-
# runs-on: ubuntu-latest
56-
# steps:
57-
# - uses: actions/checkout@v4
58-
# with:
59-
# submodules: true
60-
# - uses: actions-rs/toolchain@v1
61-
# with:
62-
# profile: minimal
63-
# toolchain: 1.65.0
64-
# override: true
65-
# - name: Patch dependencies versions # some dependencies bump MSRV without major version bump
66-
# run: ./scripts/patch_dependencies.sh
67-
# - name: Run tests
68-
# run: cargo --version &&
69-
# cargo test --manifest-path=opentelemetry/Cargo.toml --features trace,metrics,testing &&
70-
# cargo test --manifest-path=opentelemetry-jaeger/Cargo.toml --features rt-tokio &&
71-
# cargo test --manifest-path=opentelemetry-zipkin/Cargo.toml
53+
msrv:
54+
strategy:
55+
matrix:
56+
rust: ["1.71.1"]
57+
runs-on: ubuntu-latest
58+
continue-on-error: true
59+
steps:
60+
- uses: actions/checkout@v4
61+
with:
62+
submodules: true
63+
- name: Set up Rust ${{ matrix.rust }}
64+
uses: actions-rs/toolchain@v1
65+
with:
66+
toolchain: ${{ matrix.rust }}
67+
override: true
68+
- uses: taiki-e/install-action@v2
69+
with:
70+
tool: cargo-msrv
71+
- name: Patch dependencies versions
72+
run: bash ./scripts/patch_dependencies.sh
73+
- name: Check MSRV for all crates
74+
run: bash ./scripts/msrv.sh ${{ matrix.rust }}
7275
cargo-deny:
7376
runs-on: ubuntu-latest
7477
continue-on-error: true # Prevent sudden announcement of a new advisory from failing ci

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ OpenTelemetry-based utilities that don't fit the primary scope of the
1717
[OpenTelemetry Rust](https://github.com/open-telemetry/opentelemetry-rust)
1818
project.
1919

20-
*Compiler support: [requires `rustc` 1.65+][msrv]*
20+
*Compiler support: [requires `rustc` 1.70+][msrv]*
2121

2222
[msrv]: #supported-rust-versions
2323

opentelemetry-aws/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ categories = [
1212
keywords = ["opentelemetry", "tracing"]
1313
license = "Apache-2.0"
1414
edition = "2021"
15-
rust-version = "1.65"
15+
rust-version = "1.70.0"
1616

1717
[package.metadata.docs.rs]
1818
all-features = true

opentelemetry-contrib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ categories = [
1212
keywords = ["opentelemetry", "tracing"]
1313
license = "Apache-2.0"
1414
edition = "2021"
15-
rust-version = "1.65"
15+
rust-version = "1.70.0"
1616

1717
[package.metadata.docs.rs]
1818
all-features = true

opentelemetry-datadog/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ categories = ["development-tools::debugging", "development-tools::profiling"]
99
keywords = ["opentelemetry", "tracing"]
1010
license = "Apache-2.0"
1111
edition = "2021"
12-
rust-version = "1.65"
12+
rust-version = "1.70.0"
1313

1414
[package.metadata.docs.rs]
1515
all-features = true

opentelemetry-etw-logs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
homepage = "https://github.com/open-telemetry/opentelemetry-rust-contrib/tree/main/opentelemetry-etw-logs"
77
repository = "https://github.com/open-telemetry/opentelemetry-rust-contrib/tree/main/opentelemetry-etw-logs"
88
readme = "README.md"
9-
rust-version = "1.65.0"
9+
rust-version = "1.70.0"
1010
keywords = ["opentelemetry", "log", "trace", "etw"]
1111
license = "Apache-2.0"
1212

opentelemetry-resource-detectors/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repository = "https://github.com/open-telemetry/opentelemetry-rust-contrib/tree/
88
readme = "README.md"
99
keywords = ["opentelemetry", "resource", "detector"]
1010
license = "Apache-2.0"
11-
rust-version = "1.65"
11+
rust-version = "1.70.0"
1212

1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1414

opentelemetry-stackdriver/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repository = "https://github.com/open-telemetry/opentelemetry-rust-contrib"
77
license = "Apache-2.0"
88
edition = "2021"
99
exclude = ["/proto"]
10-
rust-version = "1.65"
10+
rust-version = "1.71.1"
1111

1212
[dependencies]
1313
async-trait = "0.1.48"

opentelemetry-user-events-logs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
homepage = "https://github.com/open-telemetry/opentelemetry-rust-contrib/tree/main/opentelemetry-user-events-logs"
77
repository = "https://github.com/open-telemetry/opentelemetry-rust-contrib/tree/main/opentelemetry-user-events-logs"
88
readme = "README.md"
9-
rust-version = "1.65.0"
9+
rust-version = "1.70.0"
1010
keywords = ["opentelemetry", "log", "trace", "user_events"]
1111
license = "Apache-2.0"
1212

opentelemetry-zpages/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = [
1313
keywords = ["opentelemetry", "zipkin", "tracing", "async"]
1414
license = "Apache-2.0"
1515
edition = "2021"
16-
rust-version = "1.65"
16+
rust-version = "1.71.1"
1717

1818
[package.metadata.docs.rs]
1919
all-features = true

0 commit comments

Comments
 (0)