Skip to content

Commit f91c247

Browse files
authored
Merge pull request #391 from dtolnay/thiserror
Update dev-dependencies to thiserror v2
2 parents fd03a8e + 2a3901c commit f91c247

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ jobs:
6363
with:
6464
toolchain: ${{matrix.rust}}
6565
components: rust-src
66-
- run: cargo check
67-
- run: cargo check --no-default-features
68-
- run: cargo check --features backtrace
66+
- run: cargo check --manifest-path tests/crate/Cargo.toml
67+
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features
68+
- run: cargo check --manifest-path tests/crate/Cargo.toml --features backtrace
6969
if: matrix.rust != '1.65.0' && matrix.rust != '1.52.0' && matrix.rust != '1.51.0' && matrix.rust != '1.50.0' && matrix.rust != '1.39.0'
7070

7171
minimal:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ backtrace = { version = "0.3.51", optional = true }
2626
futures = { version = "0.3", default-features = false }
2727
rustversion = "1.0.6"
2828
syn = { version = "2.0", features = ["full"] }
29-
thiserror = "1.0.45"
29+
thiserror = "2"
3030
trybuild = { version = "1.0.66", features = ["diff"] }
3131

3232
[lib]

tests/crate/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "anyhow_test"
3+
version = "0.0.0"
4+
authors = ["David Tolnay <[email protected]>"]
5+
edition = "2018"
6+
publish = false
7+
8+
[lib]
9+
path = "test.rs"
10+
11+
[dependencies]
12+
anyhow = { path = "../..", default-features = false }
13+
14+
[features]
15+
default = ["std"]
16+
std = ["anyhow/std"]
17+
backtrace = ["anyhow/backtrace"]

tests/crate/test.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#![no_std]
2+
3+
pub use anyhow::*;

0 commit comments

Comments
 (0)