Skip to content

Commit

Permalink
Merge pull request #391 from dtolnay/thiserror
Browse files Browse the repository at this point in the history
Update dev-dependencies to thiserror v2
  • Loading branch information
dtolnay authored Nov 6, 2024
2 parents fd03a8e + 2a3901c commit f91c247
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ jobs:
with:
toolchain: ${{matrix.rust}}
components: rust-src
- run: cargo check
- run: cargo check --no-default-features
- run: cargo check --features backtrace
- run: cargo check --manifest-path tests/crate/Cargo.toml
- run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features
- run: cargo check --manifest-path tests/crate/Cargo.toml --features backtrace
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'

minimal:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ backtrace = { version = "0.3.51", optional = true }
futures = { version = "0.3", default-features = false }
rustversion = "1.0.6"
syn = { version = "2.0", features = ["full"] }
thiserror = "1.0.45"
thiserror = "2"
trybuild = { version = "1.0.66", features = ["diff"] }

[lib]
Expand Down
17 changes: 17 additions & 0 deletions tests/crate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "anyhow_test"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>"]
edition = "2018"
publish = false

[lib]
path = "test.rs"

[dependencies]
anyhow = { path = "../..", default-features = false }

[features]
default = ["std"]
std = ["anyhow/std"]
backtrace = ["anyhow/backtrace"]
3 changes: 3 additions & 0 deletions tests/crate/test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#![no_std]

pub use anyhow::*;

0 comments on commit f91c247

Please sign in to comment.