Skip to content

Commit 879dd63

Browse files
authored
#328 feat: add comprehensive no_std matrix testing (#329)
Add matrix testing for all critical feature combinations: - bare (--no-default-features) - std (--features std) - tracing (no_std + tracing) - metrics (no_std + metrics) - colored (no_std + colored) - all (--all-features) Benefits: - 🛡️ Prevents regressions like #326 - ✅ Tests all feature combinations in parallel - 📊 Separate cache for each configuration - 🚀 100% confidence in no_std support Bump version: 0.25.0 → 0.25.1 Fixes #328
1 parent 2e7db3d commit 879dd63

File tree

4 files changed

+29
-13
lines changed

4 files changed

+29
-13
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,24 @@ jobs:
2626
secrets: inherit
2727

2828
no-std:
29-
name: no_std compatibility
29+
name: no_std (${{ matrix.name }})
3030
runs-on: ubuntu-latest
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
include:
35+
- name: "bare"
36+
features: "--no-default-features"
37+
- name: "std"
38+
features: "--features std"
39+
- name: "tracing"
40+
features: "--no-default-features --features tracing"
41+
- name: "metrics"
42+
features: "--no-default-features --features metrics"
43+
- name: "colored"
44+
features: "--no-default-features --features colored"
45+
- name: "all"
46+
features: "--all-features"
3147
steps:
3248
- uses: actions/checkout@v5
3349

@@ -39,11 +55,11 @@ jobs:
3955
- name: Cache cargo
4056
uses: Swatinem/rust-cache@v2
4157
with:
42-
shared-key: no-std
58+
shared-key: no-std-${{ matrix.name }}
4359
save-if: ${{ github.ref == 'refs/heads/main' }}
4460

45-
- name: Check no_std build
46-
run: cargo check --no-default-features
61+
- name: Check ${{ matrix.name }}
62+
run: cargo check ${{ matrix.features }}
4763

4864
update-changelog:
4965
needs: [ci, no-std]

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[package]
66
name = "masterror"
7-
version = "0.25.0"
7+
version = "0.25.1"
88
rust-version = "1.90"
99
edition = "2024"
1010
license = "MIT"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ The build script keeps the full feature snippet below in sync with
159159

160160
~~~toml
161161
[dependencies]
162-
masterror = { version = "0.25.0", default-features = false }
162+
masterror = { version = "0.25.1", default-features = false }
163163
# or with features:
164-
# masterror = { version = "0.25.0", features = [
164+
# masterror = { version = "0.25.1", features = [
165165
# "std", "axum", "actix", "openapi",
166166
# "serde_json", "tracing", "metrics", "backtrace",
167167
# "colored", "sqlx", "sqlx-migrate", "reqwest",
@@ -640,7 +640,7 @@ Enable the `colored` feature for enhanced terminal output in local mode:
640640

641641
~~~toml
642642
[dependencies]
643-
masterror = { version = "0.25.0", features = ["colored"] }
643+
masterror = { version = "0.25.1", features = ["colored"] }
644644
~~~
645645

646646
With `colored` enabled, errors display with syntax highlighting:

0 commit comments

Comments
 (0)