Skip to content
Merged

326 #327

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
22 changes: 21 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,28 @@ jobs:
all-features: true
secrets: inherit

no-std:
name: no_std compatibility
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- name: Install Rust (stable)
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable

- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
shared-key: no-std
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Check no_std build
run: cargo check --no-default-features

update-changelog:
needs: ci
needs: [ci, no-std]
uses: ./.github/workflows/reusable-changelog.yml
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2 changes: 1 addition & 1 deletion src/app_error/core/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT

use alloc::{borrow::Cow, sync::Arc};
use alloc::{borrow::Cow, string::String, sync::Arc};
use core::error::Error as CoreError;
#[cfg(feature = "backtrace")]
use std::backtrace::Backtrace;
Expand Down
1 change: 1 addition & 0 deletions src/app_error/core/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//
// SPDX-License-Identifier: MIT

use alloc::string::ToString;
use core::{
error::Error as CoreError,
fmt::{Formatter, Result as FmtResult},
Expand Down
2 changes: 1 addition & 1 deletion src/app_error/core/introspection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT

use alloc::borrow::Cow;
use alloc::{borrow::Cow, boxed::Box};
use core::error::Error as CoreError;

#[cfg(feature = "backtrace")]
Expand Down
Loading