Skip to content
Merged

328 #329

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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]
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[package]
name = "masterror"
version = "0.25.0"
version = "0.25.1"
rust-version = "1.90"
edition = "2024"
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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:
Expand Down
Loading