From 53639dfd547df3af4acad714ec6334365d4f6f9e Mon Sep 17 00:00:00 2001 From: tison Date: Sat, 10 Jan 2026 09:59:46 +0800 Subject: [PATCH] feat: support reqwest 0.13 Signed-off-by: tison --- .github/workflows/ci.yml | 2 +- Cargo.toml | 8 ++++---- README.md | 10 +++++++--- rust-toolchain.toml | 2 +- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74d37b5..34b3c85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: fail-fast: false matrix: os: [ windows-latest, macos-latest, ubuntu-latest ] - rust: [ "1.82.0", "stable", "nightly" ] + rust: [ "1.85.0", "stable", "nightly" ] env: RUST_BACKTRACE: 1 steps: diff --git a/Cargo.toml b/Cargo.toml index 2109e66..383b863 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,20 +1,20 @@ [package] name = "fastrace-reqwest" -version = "0.2.0" +version = "0.3.0" categories = ["development-tools::debugging"] description = "A reqwest util for propagating trace context for fastrace" keywords = ["tracing", "fastrace", "reqwest", "traceparent", "propagation"] readme = "README.md" -edition = "2021" +edition = "2024" license = "Apache-2.0" repository = "https://github.com/fast/fastrace-reqwest" -rust-version = "1.82" +rust-version = "1.85" [dependencies] fastrace = { version = "0.7" } -reqwest = { version = "0.12", default-features = false } +reqwest = { version = "0.13", default-features = false } [dev-dependencies] axum = { version = "0.8" } diff --git a/README.md b/README.md index 0e90106..7770f35 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Crates.io](https://img.shields.io/crates/v/fastrace-reqwest.svg?style=flat-square&logo=rust)](https://crates.io/crates/fastrace-reqwest) [![Documentation](https://img.shields.io/docsrs/fastrace-reqwest?style=flat-square&logo=rust)](https://docs.rs/fastrace-reqwest/) -[![MSRV 1.82.0](https://img.shields.io/badge/MSRV-1.82.0-green?style=flat-square&logo=rust)](https://www.whatrustisit.com) +[![MSRV 1.85.0](https://img.shields.io/badge/MSRV-1.85.0-green?style=flat-square&logo=rust)](https://www.whatrustisit.com) [![CI Status](https://img.shields.io/github/actions/workflow/status/fast/fastrace-reqwest/ci.yml?style=flat-square&logo=github)](https://github.com/fast/fastrace-reqwest/actions) [![License](https://img.shields.io/crates/l/fastrace-reqwest?style=flat-square)](https://github.com/fast/fastrace-reqwest/blob/main/LICENSE) @@ -31,9 +31,13 @@ Add to your `Cargo.toml`: ```toml [dependencies] fastrace = "0.7" -fastrace-reqwest = "0.2" +fastrace-reqwest = "0.3" ``` +This works with `reqwest@0.13`. For old versions, use: + +* `fastrace-reqwest@0.2` for `reqwest@0.12` + ## Usage ### HTTP Client @@ -93,4 +97,4 @@ cargo run --example client ## License -This project is licensed under the [Apache-2.0](./LICENSE) license. +This project is licensed under the [Apache-2.0](LICENSE) license. diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 18e3f5f..f1ce2d8 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.82.0" +channel = "1.85.0" components = ["cargo", "rustfmt", "clippy", "rust-analyzer"]