Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dev-dependencies to thiserror v2 #391

Merged
merged 2 commits into from
Nov 6, 2024
Merged
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
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 <[email protected]>"]
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::*;
Loading