diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b89c9a..7595c13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,24 @@ jobs: secrets: inherit no-std: - name: no_std compatibility + name: no_std (${{ matrix.name }}) runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - name: "bare" + features: "--no-default-features" + - name: "std" + features: "--features std" + - name: "tracing" + features: "--no-default-features --features tracing" + - name: "metrics" + features: "--no-default-features --features metrics" + - name: "colored" + features: "--no-default-features --features colored" + - name: "all" + features: "--all-features" steps: - uses: actions/checkout@v5 @@ -39,11 +55,11 @@ jobs: - name: Cache cargo uses: Swatinem/rust-cache@v2 with: - shared-key: no-std + shared-key: no-std-${{ matrix.name }} save-if: ${{ github.ref == 'refs/heads/main' }} - - name: Check no_std build - run: cargo check --no-default-features + - name: Check ${{ matrix.name }} + run: cargo check ${{ matrix.features }} update-changelog: needs: [ci, no-std] diff --git a/Cargo.lock b/Cargo.lock index 30cb05d..c117f36 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -329,7 +329,7 @@ version = "0.1.0" dependencies = [ "axum", "axum-test", - "masterror 0.25.0", + "masterror 0.25.1", "serde", "serde_json", "tokio", @@ -390,7 +390,7 @@ checksum = "55248b47b0caf0546f7988906588779981c43bb1bc9d0c44087278f80cdb44ba" name = "basic-async" version = "0.1.0" dependencies = [ - "masterror 0.25.0", + "masterror 0.25.1", "tokio", ] @@ -793,7 +793,7 @@ dependencies = [ name = "custom-domain-errors" version = "0.1.0" dependencies = [ - "masterror 0.25.0", + "masterror 0.25.1", "serde", "thiserror", ] @@ -1948,7 +1948,7 @@ dependencies = [ [[package]] name = "masterror" -version = "0.25.0" +version = "0.25.1" dependencies = [ "actix-web", "anyhow", @@ -3397,7 +3397,7 @@ dependencies = [ name = "sqlx-database" version = "0.1.0" dependencies = [ - "masterror 0.25.0", + "masterror 0.25.1", "sqlx", "tokio", ] diff --git a/Cargo.toml b/Cargo.toml index 9e2f0de..77ed56b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "masterror" -version = "0.25.0" +version = "0.25.1" rust-version = "1.90" edition = "2024" license = "MIT" diff --git a/README.md b/README.md index 02216ee..c26ba5c 100644 --- a/README.md +++ b/README.md @@ -159,9 +159,9 @@ The build script keeps the full feature snippet below in sync with ~~~toml [dependencies] -masterror = { version = "0.25.0", default-features = false } +masterror = { version = "0.25.1", default-features = false } # or with features: -# masterror = { version = "0.25.0", features = [ +# masterror = { version = "0.25.1", features = [ # "std", "axum", "actix", "openapi", # "serde_json", "tracing", "metrics", "backtrace", # "colored", "sqlx", "sqlx-migrate", "reqwest", @@ -640,7 +640,7 @@ Enable the `colored` feature for enhanced terminal output in local mode: ~~~toml [dependencies] -masterror = { version = "0.25.0", features = ["colored"] } +masterror = { version = "0.25.1", features = ["colored"] } ~~~ With `colored` enabled, errors display with syntax highlighting: