Skip to content

Commit 3d15543

Browse files
authored
Merge pull request #410 from dtolnay/testnostd
Add CI step to test with "std" disabled
2 parents 8f2a76b + 1a226ae commit 3d15543

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
- run: cargo test --workspace --exclude thiserror_no_std_test
4242
- run: cargo test --manifest-path tests/no-std/Cargo.toml
4343
if: matrix.rust != '1.70.0'
44+
- run: cargo test --no-default-features
4445
- uses: actions/upload-artifact@v4
4546
if: matrix.rust == 'nightly' && always()
4647
with:

tests/test_backtrace.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![cfg(feature = "std")]
12
#![cfg_attr(thiserror_nightly_testing, feature(error_generic_member_access))]
23

34
use thiserror::Error;

tests/test_expr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![allow(clippy::iter_cloned_collect, clippy::uninlined_format_args)]
22

33
use core::fmt::Display;
4+
#[cfg(feature = "std")]
45
use std::path::PathBuf;
56
use thiserror::Error;
67

tests/test_option.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![cfg(feature = "std")]
12
#![cfg_attr(thiserror_nightly_testing, feature(error_generic_member_access))]
23

34
#[cfg(thiserror_nightly_testing)]

0 commit comments

Comments
 (0)